You are here

retrieveProcessWithIdentifier

- (AlfrescoRequest *)retrieveProcessWithIdentifier:(NSString *)processIdentifier completionBlock:(AlfrescoProcessCompletionBlock *)completionBlock - Returns a process for a given process identifier.

Parameters

(NSString *) processIdentifier
The process ID to scan for.
(AlfrescoProcessCompletionBlock *)completionBlock
Completion block with the format typedef void (^AlfrescoProcessCompletionBlock)(AlfrescoWorkflowProcess *process, NSError *error);.

Returns

(AlfrescoRequest *)

Example


    NSString *identifier = @"864";
    [workflowProcessService retrieveProcessWithIdentifier:identifier completionBlock:^(AlfrescoWorkflowProcess *process, NSError *error) {
        
        if (process == nil)
        {
            NSLog(@"ERROR: %@", error);
        }
        else
        {
            NSLog(@"PROCESS: X---> processDefinitionIdentifier: %@\n", process.processDefinitionIdentifier);
            NSLog(@"PROCESS: X---> startedAt: %@\n", process.startedAt);
            NSLog(@"PROCESS: X---> priority: %@\n", process.priority);
            NSLog(@"PROCESS: X---> processDescription: %@\n", process.processDescription);
        }
    }];