org.jbpm.graph.exe
Class ExecutionContext
java.lang.Object
org.jbpm.graph.exe.ExecutionContext
public class ExecutionContext
- extends Object
token
protected Token token
event
protected Event event
eventSource
protected GraphElement eventSource
action
protected Action action
exception
protected Throwable exception
transition
protected Transition transition
transitionSource
protected Node transitionSource
task
protected Task task
timer
protected Timer timer
taskInstance
protected TaskInstance taskInstance
subProcessInstance
protected ProcessInstance subProcessInstance
ExecutionContext
public ExecutionContext(Token token)
ExecutionContext
public ExecutionContext(ExecutionContext other)
getNode
public Node getNode()
getProcessDefinition
public ProcessDefinition getProcessDefinition()
setAction
public void setAction(Action action)
getProcessInstance
public ProcessInstance getProcessInstance()
toString
public String toString()
- Overrides:
toString in class Object
setVariable
public void setVariable(String name,
Object value)
- set a process variable.
getVariable
public Object getVariable(String name)
- get a process variable.
leaveNode
public void leaveNode()
- leave this node over the default transition. This method is only available
on node actions. Not on actions that are executed on events. Actions on
events cannot change the flow of execution.
leaveNode
public void leaveNode(String transitionName)
- leave this node over the given transition. This method is only available on
node actions. Not on actions that are executed on events. Actions on events
cannot change the flow of execution.
leaveNode
public void leaveNode(Transition transition)
- leave this node over the given transition. This method is only available on
node actions. Not on actions that are executed on events. Actions on events
cannot change the flow of execution.
getDefinition
public ModuleDefinition getDefinition(Class clazz)
getInstance
public ModuleInstance getInstance(Class clazz)
getContextInstance
public ContextInstance getContextInstance()
getTaskMgmtInstance
public TaskMgmtInstance getTaskMgmtInstance()
getJbpmContext
public JbpmContext getJbpmContext()
setTaskInstance
public void setTaskInstance(TaskInstance taskInstance)
getToken
public Token getToken()
getAction
public Action getAction()
getEvent
public Event getEvent()
setEvent
public void setEvent(Event event)
getException
public Throwable getException()
setException
public void setException(Throwable exception)
getTransition
public Transition getTransition()
setTransition
public void setTransition(Transition transition)
getTransitionSource
public Node getTransitionSource()
setTransitionSource
public void setTransitionSource(Node transitionSource)
getEventSource
public GraphElement getEventSource()
setEventSource
public void setEventSource(GraphElement eventSource)
getTask
public Task getTask()
setTask
public void setTask(Task task)
getTaskInstance
public TaskInstance getTaskInstance()
getSubProcessInstance
public ProcessInstance getSubProcessInstance()
setSubProcessInstance
public void setSubProcessInstance(ProcessInstance subProcessInstance)
getTimer
public Timer getTimer()
setTimer
public void setTimer(Timer timer)
pushCurrentContext
public static void pushCurrentContext(ExecutionContext executionContext)
popCurrentContext
public static void popCurrentContext(ExecutionContext executionContext)
currentExecutionContext
public static ExecutionContext currentExecutionContext()
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.