| |
|
| java.lang.Object org.jbpm.graph.exe.ProcessInstance
Constructor Summary | |
public | ProcessInstance() | public | ProcessInstance(ProcessDefinition processDefinition) creates a new process instance for the given process definition,
puts the root-token (=main path of execution) in the start state
and executes the initial node. | public | ProcessInstance(ProcessDefinition processDefinition, Map variables) creates a new process instance for the given process definition,
puts the root-token (=main path of execution) in the start state
and executes the initial node. | public | ProcessInstance(ProcessDefinition processDefinition, Map variables, String key) creates a new process instance for the given process definition,
puts the root-token (=main path of execution) in the start state
and executes the initial node. |
cascadeProcessInstances | protected List cascadeProcessInstances(Code) | | not persisted
|
isSuspended | protected boolean isSuspended(Code) | | |
superProcessToken | protected Token superProcessToken(Code) | | |
transientInstances | protected Map transientInstances(Code) | | |
ProcessInstance | public ProcessInstance()(Code) | | |
ProcessInstance | public ProcessInstance(ProcessDefinition processDefinition)(Code) | | creates a new process instance for the given process definition,
puts the root-token (=main path of execution) in the start state
and executes the initial node. In case the initial node is a
start-state, it will behave as a wait state.
For each of the optional module definitions contained in the
ProcessDefinition , the corresponding module instance
will be created.
throws: JbpmException - if processDefinition is null. |
ProcessInstance | public ProcessInstance(ProcessDefinition processDefinition, Map variables)(Code) | | creates a new process instance for the given process definition,
puts the root-token (=main path of execution) in the start state
and executes the initial node. In case the initial node is a
start-state, it will behave as a wait state.
For each of the optional module definitions contained in the
ProcessDefinition , the corresponding module instance
will be created.
Parameters: variables - will be inserted into the context variables after the context submodule has been created and before the process-start event is fired, which is also before the execution of the initial node. throws: JbpmException - if processDefinition is null. |
ProcessInstance | public ProcessInstance(ProcessDefinition processDefinition, Map variables, String key)(Code) | | creates a new process instance for the given process definition,
puts the root-token (=main path of execution) in the start state
and executes the initial node. In case the initial node is a
start-state, it will behave as a wait state.
For each of the optional module definitions contained in the
ProcessDefinition , the corresponding module instance
will be created.
Parameters: variables - will be inserted into the context variables after the context submodule has been created and before the process-start event is fired, which is also before the execution of the initial node. throws: JbpmException - if processDefinition is null. |
end | public void end()(Code) | | ends (=cancels) this process instance and all the tokens in it.
|
findAllTokens | public List findAllTokens()(Code) | | collects all instances for this process instance.
|
findToken | public Token findToken(String tokenPath)(Code) | | looks up the token in the tree, specified by the slash-separated token path.
Parameters: tokenPath - is a slash-separated name that specifies a token in the tree. the specified token or null if the token is not found. |
getContextInstance | public ContextInstance getContextInstance()(Code) | | process instance extension for process variableInstances.
|
getId | public long getId()(Code) | | |
getLoggingInstance | public LoggingInstance getLoggingInstance()(Code) | | process instance extension for logging. Probably you don't need to access
the logging instance directly. Mostly,
Token.addLog(ProcessLog) is
sufficient and more convenient.
|
getRuntimeActions | public List getRuntimeActions()(Code) | | is the list of all runtime actions.
|
getSuperProcessToken | public Token getSuperProcessToken()(Code) | | |
getTaskMgmtInstance | public TaskMgmtInstance getTaskMgmtInstance()(Code) | | process instance extension for managing the tasks and actors.
|
getVersion | public int getVersion()(Code) | | |
hasEnded | public boolean hasEnded()(Code) | | tells if this process instance is still active or not.
|
isSuspended | public boolean isSuspended()(Code) | | |
isTerminatedImplicitly | public boolean isTerminatedImplicitly()(Code) | | calculates if this process instance has still options to continue.
|
removeCascadeProcessInstances | public Collection removeCascadeProcessInstances()(Code) | | |
resume | public void resume()(Code) | | resumes a suspended execution. All timers that have been suspended might fire
if the duedate has been passed. If an admin resumes a process instance, the option
should be offered to update, remove and create the timers and messages related to
this process instance.
See Also: ProcessInstance.suspend() |
setKey | public void setKey(String key)(Code) | | set the unique business key
|
setRootToken | public void setRootToken(Token rootToken)(Code) | | |
setSuperProcessToken | public void setSuperProcessToken(Token superProcessToken)(Code) | | |
setVersion | public void setVersion(int version)(Code) | | |
signal | public void signal()(Code) | | instructs the main path of execution to continue by taking the default
transition on the current node.
throws: IllegalStateException - if the token is not active. |
signal | public void signal(String transitionName)(Code) | | instructs the main path of execution to continue by taking the specified
transition on the current node.
throws: IllegalStateException - if the token is not active. |
signal | public void signal(Transition transition)(Code) | | instructs the main path of execution to continue by taking the specified
transition on the current node.
throws: IllegalStateException - if the token is not active. |
suspend | public void suspend()(Code) | | suspends this execution. This will make sure that tasks, timers and
messages related to this process instance will not show up in database
queries.
See Also: ProcessInstance.resume() See Also: |
|
|
|