Instance Method

initWithContentsOfURL:error:

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

Declaration

- (instancetype)initWithContentsOfURL:(NSURL *)fileURL error:(NSError * _Nullable *)outError;

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