Initializer

init(contentsOf:)

Creates and initializes a workflow based on the contents of the specified file.

Declaration

convenience init(contentsOf fileURL: URL) throws

Parameters

fileURL

URL that specifies the location of a workflow file.

outError

If the workflow file can’t be found, or if an error occurs in initializing the workflow, upon return contains an instance of NSError that describes the problem.

Return Value

The initialized workflow object. On error, returns nil.

Discussion