|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessDefinition
a graph (or tree) structure that can be executed.
ProcessDefinition is a base implementation that can be leveraged to build graph based execution languages. While the ProcessDefinition class is concrete and can be used as-is (e.g. by aggregation), most likely processDefinition languages will inherit from this ProcessDefinition and create more specialized implementations.
The specialized processDefinition language classes can extend this ProcessDefinition with new datastructures relevant for that perticular processDefinition language.
A processDefinition contains a set of nodes. Nodes can be connected with transitions or nodes can have nested nodes. But the transitions and nested nodes can be combined.
To create a new execution for a given processDefinition, see startExecution()
.
Field Summary | |
---|---|
static java.lang.String |
EVENT_PROCESS_END
|
static java.lang.String |
EVENT_PROCESS_START
|
Method Summary | |
---|---|
java.util.Date |
getDeploymentTime()
time this process definition got deployed. |
Node |
getInitial()
the initial node that will be executed when a new process starts. |
java.lang.String |
getPackageName()
the package name of this process. |
java.util.List<VariableDefinition> |
getVariableDefinitions()
variable declarations. |
int |
getVersion()
automatically assigned during deployment of a process that represents the sequence number for process definitions with the same name . |
Execution |
startExecution()
start a new main path of execution for this process definition |
Execution |
startExecution(java.util.Map<java.lang.String,java.lang.Object> variables)
start a new main path of execution for this process definition. |
Execution |
startExecution(java.lang.String key)
start a new main path of execution for this process definition. |
Execution |
startExecution(java.lang.String key,
java.util.Map<java.lang.String,java.lang.Object> variables)
start a new main path of execution for this process definition. |
Methods inherited from interface org.jbpm.pvm.CompositeElement |
---|
findNode, getNode, getNodes, getNodesMap, hasNode, hasNodes |
Methods inherited from interface org.jbpm.pvm.ObservableElement |
---|
getDescription, getEvent, getEvents, getName, getParent, hasEvent |
Methods inherited from interface org.jbpm.pvm.ProcessElement |
---|
getDbid, getExceptionHandlers, getProcessDefinition, getProperty, getPropertyKeys |
Field Detail |
---|
static final java.lang.String EVENT_PROCESS_START
static final java.lang.String EVENT_PROCESS_END
Method Detail |
---|
java.lang.String getPackageName()
int getVersion()
name
.
Execution startExecution()
Execution startExecution(java.util.Map<java.lang.String,java.lang.Object> variables)
variables
- is a set of variables that is set as process variables
before the process actually starts executing.Execution startExecution(java.lang.String key)
key
- is a user defined identifier for this new execution which
has to be unique within the scope of this process definition.Execution startExecution(java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> variables)
key
- is a user defined identifier for this new execution which
has to be unique within the scope of this process definition.variables
- is a set of variables that is set as process variables
before the process actually starts executing.Node getInitial()
java.util.List<VariableDefinition> getVariableDefinitions()
java.util.Date getDeploymentTime()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |