|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.pvm.internal.model.ProcessElementImpl
org.jbpm.pvm.internal.model.ObservableElementImpl
org.jbpm.pvm.internal.model.ScopeElementImpl
org.jbpm.pvm.internal.model.CompositeElementImpl
org.jbpm.pvm.internal.model.ProcessDefinitionImpl
public class ProcessDefinitionImpl
| Field Summary | |
|---|---|
protected long |
deploymentDbid
ref to the deployment |
protected java.util.Date |
deploymentTime
time this process was deployed |
protected java.lang.String |
id
the unique id (e.g. combination of name and versionnumber) for this process definition. |
protected java.lang.String |
imageResourceName
|
protected ActivityImpl |
initial
the activity which is executed when the process starts |
protected boolean |
isSuspended
propagated from deployment to process definition during deploy |
protected java.lang.String |
key
user provided short reference for the process definition that has the same scope as the name. |
protected java.lang.String |
packageName
optional package name similar to the Java package name. |
protected java.util.Map<java.lang.String,TaskDefinitionImpl> |
taskDefinitions
|
static int |
UNASSIGNED_VERSION
|
protected int |
version
the version number of the process definitions with the same name. |
| Fields inherited from class org.jbpm.pvm.internal.model.CompositeElementImpl |
|---|
activities, activitiesMap |
| Fields inherited from class org.jbpm.pvm.internal.model.ScopeElementImpl |
|---|
timerDefinitions, variableDefinitions |
| Fields inherited from class org.jbpm.pvm.internal.model.ObservableElementImpl |
|---|
description, events, name |
| Fields inherited from class org.jbpm.pvm.internal.model.ProcessElementImpl |
|---|
dbid, dbversion, exceptionHandlers, processDefinition, properties |
| Constructor Summary | |
|---|---|
ProcessDefinitionImpl()
|
|
| Method Summary | |
|---|---|
void |
addTaskDefinitionImpl(TaskDefinitionImpl taskDefinition)
|
ClientProcessInstance |
createProcessInstance()
creates a new process instances. |
ClientProcessInstance |
createProcessInstance(java.lang.String key)
creates a new process instances with a given key. |
ClientProcessInstance |
createProcessInstance(java.lang.String key,
Execution superProcessExecution)
creates a new process instances with a given key. |
java.lang.String |
getDeploymentId()
|
java.util.Date |
getDeploymentTime()
|
java.lang.String |
getId()
|
java.lang.String |
getImageResourceName()
|
ActivityImpl |
getInitial()
the initial activity of this process definition |
java.lang.String |
getKey()
|
java.lang.String |
getPackageName()
|
TaskDefinitionImpl |
getTaskDefinition(java.lang.String name)
|
int |
getVersion()
|
boolean |
isSuspended()
|
protected ExecutionImpl |
newProcessInstance()
|
void |
setDeploymentDbid(long deploymentDbid)
|
void |
setDeploymentTime(java.util.Date deploymentTime)
|
void |
setId(java.lang.String id)
|
void |
setImageResourceName(java.lang.String imageResourceName)
|
void |
setInitial(ActivityImpl initial)
|
void |
setKey(java.lang.String key)
|
void |
setPackageName(java.lang.String packageName)
|
void |
setSuspended(boolean isSuspended)
|
void |
setVersion(int version)
|
ClientProcessInstance |
startProcessInstance()
creates the process instance and immediately start its execution. |
ClientProcessInstance |
startProcessInstance(java.lang.String key)
creates the process instance with the given key and immediately start its execution. |
java.lang.String |
toString()
|
| Methods inherited from class org.jbpm.pvm.internal.model.CompositeElementImpl |
|---|
addActivity, createActivity, createActivity, findActivity, getActivities, getActivitiesMap, getActivity, hasActivities, hasActivity, removeActivity |
| Methods inherited from class org.jbpm.pvm.internal.model.ScopeElementImpl |
|---|
addTimerDefinition, createTimerDefinition, createVariableDefinition, getTimerDefinitions, getVariableDefinitions, hasTimerDefinitions, hasVariableDefinitions, isLocalScope |
| Methods inherited from class org.jbpm.pvm.internal.model.ObservableElementImpl |
|---|
addEvent, createEvent, getDescription, getEvent, getEvents, getName, getParent, hasEvent, setDescription, setName |
| Methods inherited from class org.jbpm.pvm.internal.model.ProcessElementImpl |
|---|
addExceptionHandler, addProperty, createExceptionHandler, getDbid, getExceptionHandlers, getProcessDefinition, getProperties, getProperty, getPropertyKeys, setExceptionHandlers, setProcessDefinition, setProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jbpm.api.ProcessDefinition |
|---|
getDescription, getName |
| Methods inherited from interface org.jbpm.pvm.internal.model.CompositeElement |
|---|
findActivity, getActivities, getActivitiesMap, getActivity, hasActivities, hasActivity |
| Methods inherited from interface org.jbpm.pvm.internal.model.ObservableElement |
|---|
getDbid, getName, getParent, getProcessDefinition, getProperty, getPropertyKeys, hasEvent |
| Field Detail |
|---|
public static final int UNASSIGNED_VERSION
protected java.lang.String key
protected java.lang.String id
protected int version
protected java.lang.String packageName
protected java.util.Date deploymentTime
protected long deploymentDbid
protected boolean isSuspended
protected ActivityImpl initial
protected java.util.Map<java.lang.String,TaskDefinitionImpl> taskDefinitions
protected java.lang.String imageResourceName
| Constructor Detail |
|---|
public ProcessDefinitionImpl()
| Method Detail |
|---|
public ClientProcessInstance createProcessInstance()
ClientProcessDefinitionvariables can be set
before execution is started. Invoke ClientProcessInstance.start()
to start execution of the process.
createProcessInstance in interface ClientProcessDefinitionpublic ClientProcessInstance createProcessInstance(java.lang.String key)
ClientProcessDefinitionvariables can be set
before execution is started. Invoke ClientProcessInstance.start()
to start execution of the process.
createProcessInstance in interface ClientProcessDefinitionkey - is a user provided reference that uniquely identifies this
process instance in the scope of the process name.
public ClientProcessInstance createProcessInstance(java.lang.String key,
Execution superProcessExecution)
ClientProcessDefinitionvariables can be set
before execution is started. Invoke ClientProcessInstance.start()
to start execution of the process.
createProcessInstance in interface ClientProcessDefinitionkey - is a user provided reference that uniquely identifies this
process instance in the scope of the process name. key is allowed to be null.public ClientProcessInstance startProcessInstance()
ClientProcessDefinition
startProcessInstance in interface ClientProcessDefinitionpublic ClientProcessInstance startProcessInstance(java.lang.String key)
ClientProcessDefinition
startProcessInstance in interface ClientProcessDefinitionkey - is a user provided reference that uniquely identifies this
process instance in the scope of the process name.protected ExecutionImpl newProcessInstance()
public void addTaskDefinitionImpl(TaskDefinitionImpl taskDefinition)
public TaskDefinitionImpl getTaskDefinition(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDeploymentId()
getDeploymentId in interface ProcessDefinitionpublic ActivityImpl getInitial()
OpenProcessDefinition
getInitial in interface OpenProcessDefinitionpublic void setInitial(ActivityImpl initial)
public int getVersion()
getVersion in interface ProcessDefinitionpublic void setVersion(int version)
public java.util.Date getDeploymentTime()
public void setDeploymentTime(java.util.Date deploymentTime)
public java.lang.String getPackageName()
public void setPackageName(java.lang.String packageName)
public java.lang.String getKey()
getKey in interface ProcessDefinitionpublic void setKey(java.lang.String key)
public java.lang.String getId()
getId in interface ProcessDefinitionpublic void setId(java.lang.String id)
public void setDeploymentDbid(long deploymentDbid)
public java.lang.String getImageResourceName()
getImageResourceName in interface ProcessDefinitionpublic void setImageResourceName(java.lang.String imageResourceName)
public boolean isSuspended()
isSuspended in interface ProcessDefinitionpublic void setSuspended(boolean isSuspended)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||