getProcessDefinitions returns a list of process
definitions.
Attention: These methods were introduced in SDK version 1.3.
public List<ProcessDefinition> getProcessDefinitions()
public List<ProcessDefinition>
getProcessDefinitions() returns a list of process
definitions.
Parameters
None.
Returns
A List<ProcessDefinitions> a list of process definitions.
Example
public PagingResult<ProcessDefinition> getProcessDefinitions(ListingContext listingContext)
public PagingResult<ProcessDefinition>
getProcessDefinitions(ListingContext listingContext) returns a paged list of
process definitions.
Parameters
- ListingContext listingContext
- The listing context to use to control paging of results. See ListingContext for further information.
Returns
A PagingResult<ProcessDefinition> a paged list of process definitions.
Example
// Get WorkflowService WorkflowService workflowService = session.getServiceRegistry().getWorkflowService(); // get process definitions List<ProcessDefinition> processDefinitions = workflowService.getProcessDefinitions(); Log.d(TAG, "Process definitions..."); for (ProcessDefinition pd : processDefinitions){ Log.d(TAG, "identifier: "+pd.getIdentifier()); Log.d(TAG, "key: "+pd.getKey()); Log.d(TAG, "name: "+pd.getName()); Log.d(TAG, "version: "+pd.getVersion()); }
Returns output such as the following:
Process definitions... identifier: activitiAdhoc:1:4 key: activitiAdhoc name: Adhoc Activiti Process version: 1 identifier: activitiParallelGroupReview:1:20 key: activitiParallelGroupReview name: Parallel Group Review And Approve Activiti Process version: 1 identifier: activitiParallelReview:1:16 key: activitiParallelReview name: Parallel Review And Approve Activiti Process version: 1 identifier: activitiReview:1:8 key: activitiReview name: Review And Approve Activiti Process version: 1 identifier: activitiReviewPooled:1:12 key: activitiReviewPooled name: Pooled Review And Approve Activiti Process version: 1