public class CurrentProcessInstance extends Object
BusinessProcess
-bean.
The producer methods provided by this class have been extracted from the
BusinessProcess
-bean in order to allow for specializing it.Constructor and Description |
---|
CurrentProcessInstance() |
Modifier and Type | Method and Description |
---|---|
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'.
|
@Produces @Named @Typed(value=ProcessInstance.class) 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()
Copyright © 2020. All rights reserved.