getProcessDefinition(String processDefinitionIdentifier)
returns a process definition object for the specified process definition.
Attention: These methods were introduced in SDK version 1.3.
Parameters
- String processDefinitionIdentifier
- The identifier for the process definition.
Returns
A process definition object.
Example
// get process definition for specific identifier
String processDefinitionIdentifier = "activitiAdhoc:1:4";
ProcessDefinition adhoc = workflowService.getProcessDefinition(processDefinitionIdentifier);
Log.d(TAG, "Process definition by identifier...");
Log.d(TAG, "identifier: "+adhoc.getIdentifier());
Log.d(TAG, "key: "+adhoc.getKey());
Log.d(TAG, "name: "+adhoc.getName());
Log.d(TAG, "version: "+adhoc.getVersion());
Returns output such as the following:
Process definition by identifier...
identifier: activitiAdhoc:1:4
key: activitiAdhoc
name: Adhoc Activiti Process
version: 1