- (AlfrescoRequest
*)retrieveProcessDefinitionsWithCompletionBlock:(AlfrescoArrayCompletionBlock)completionBlock
- retrieves all supported workflow process definitions.
Parameters
- (AlfrescoArrayCompletionBlock) completionBlock
- The block that is called passing in the process definitions on completion of the operation. The completion block has the format typedef void (^AlfrescoArrayCompletionBlock)(NSArray *array, NSError *error).
Returns
(AlfrescoRequest *)
Example
// create process definition service SkyVaultWorkflowProcessDefinitionService *workflowProcessDefinitionService = [[AlfrescoWorkflowProcessDefinitionService alloc] initWithSession:self.session]; // list process definitions available [workflowProcessDefinitionService retrieveProcessDefinitionsWithCompletionBlock:^(NSArray *array, NSError *error) { if (array == nil) { NSLog(@"Failed to retrieve process definitions: %@", error); } else { // for each item in the array print out some information for (AlfrescoWorkflowProcessDefinition *pd in array) { NSLog(@"---> Description: %@\n", pd.description); NSLog(@"---> Identifier: %@\n", pd.identifier); NSLog(@"---> Version: %@\n", pd.version); NSLog(@"---> Name: %@\n", pd.name); NSLog(@"---> processDescription: %@\n", pd.processDescription); } } }];