Package org.camunda.bpm.engine.cdi
Class CurrentProcessInstance
java.lang.Object
org.camunda.bpm.engine.cdi.CurrentProcessInstance
Allows to access executions and tasks of a managed process instance via
dependency injection. A process instance can be managed, using the
BusinessProcess
-bean.
The producer methods provided by this class have been extracted from the
BusinessProcess
-bean in order to allow for specializing it.- Author:
- Falko Menge
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the currently associated execution or 'null'Returns theProcessInstance
currently associated or 'null'Returns the id of the currently associated process instance or 'null'getTask()
Returns the currently associatedTask
or 'null'Returns the id of the task associated with the current conversation or 'null'.
-
Constructor Details
-
CurrentProcessInstance
public CurrentProcessInstance()
-
-
Method Details
-
getProcessInstance
Returns theProcessInstance
currently associated or 'null'- Throws:
ProcessEngineCdiException
- if noExecution
is associated. UseBusinessProcess.isAssociated()
to check whether an association exists.
-
getProcessInstanceId
Returns the id of the currently associated process instance or 'null' -
getExecution
Returns the currently associated execution or 'null' -
getExecutionId
- See Also:
-
getTask
Returns the currently associatedTask
or 'null'- Throws:
ProcessEngineCdiException
- if noTask
is associated. UseBusinessProcess.isTaskAssociated()
to check whether an association exists.
-
getTaskId
Returns the id of the task associated with the current conversation or 'null'.
-