|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.cdi.CurrentProcessInstance
public class 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.
| Constructor Summary | |
|---|---|
CurrentProcessInstance()
|
|
| Method Summary | |
|---|---|
Execution |
getExecution()
Returns the currently associated execution or 'null' |
String |
getExecutionId()
|
ProcessInstance |
getProcessInstance()
Returns the ProcessInstance currently associated or 'null' |
String |
getProcessInstanceId()
Returns the id of the currently associated process instance or 'null' |
Task |
getTask()
Returns the currently associated Task or 'null' |
String |
getTaskId()
Returns the id of the task associated with the current conversation or 'null'. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CurrentProcessInstance()
| Method Detail |
|---|
@Produces @Named public ProcessInstance getProcessInstance()
ProcessInstance currently associated or 'null'
ProcessEngineCdiException - if no Execution is associated. Use
BusinessProcess.isAssociated() to check whether an
association exists.@Produces @Named public String getProcessInstanceId()
@Produces @Named public Execution getExecution()
@Produces @Named public String getExecutionId()
BusinessProcess.getExecution()@Produces @Named public Task getTask()
Task or 'null'
ProcessEngineCdiException - if no Task is associated. Use
BusinessProcess.isTaskAssociated() to check whether an
association exists.@Produces @Named public String getTaskId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||