|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.bonita.pvm.internal.model.ProcessElementImpl
org.ow2.bonita.pvm.internal.model.ObservableElementImpl
org.ow2.bonita.pvm.internal.model.CompositeElementImpl
org.ow2.bonita.pvm.internal.model.PVMProcessDefinitionImpl
public class PVMProcessDefinitionImpl
Field Summary | |
---|---|
protected java.util.Date |
deploymentTime
time this process was deployed |
protected java.lang.String |
id
the unique id (e.g. |
protected NodeImpl |
initial
the node which is executed when the process starts |
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. |
static int |
UNASSIGNED_VERSION
|
protected int |
version
the version number of the process definitions with the same name. |
Fields inherited from class org.ow2.bonita.pvm.internal.model.CompositeElementImpl |
---|
hasTimerDefinitions, hasVariableDefinitions, nodes, nodesMap, timerDefinitions, variableDefinitions |
Fields inherited from class org.ow2.bonita.pvm.internal.model.ObservableElementImpl |
---|
description, events, name |
Fields inherited from class org.ow2.bonita.pvm.internal.model.ProcessElementImpl |
---|
dbid, dbversion, exceptionHandlers, processDefinition, properties |
Constructor Summary | |
---|---|
PVMProcessDefinitionImpl()
|
Method Summary | |
---|---|
void |
addAttachment(java.lang.String name,
byte[] bytes)
|
void |
addAttachment(java.lang.String name,
java.io.InputStream inputStream)
|
ClientProcessInstance |
beginProcessInstance()
|
ClientProcessInstance |
beginProcessInstance(java.lang.String key)
|
ClientProcessInstance |
createProcessInstance()
|
ClientProcessInstance |
createProcessInstance(java.lang.String key)
|
ClientProcessInstance |
createProcessInstance(java.lang.String key,
Execution superProcessExecution)
|
byte[] |
getAttachmentBytes(java.lang.String name)
|
java.io.InputStream |
getAttachmentInputStream(java.lang.String name)
|
java.util.Date |
getDeploymentTime()
|
java.lang.String |
getId()
the unique id for this process definition. |
NodeImpl |
getInitial()
the initial node of this process definition |
java.lang.String |
getKey()
the user defined short representation of the name. |
java.lang.String |
getPackageName()
the optional package name of this process. |
int |
getVersion()
automatically assigned during deployment of a process that represents the sequence number for process definitions with the same name . |
protected ExecutionImpl |
newProcessInstance()
|
void |
setDeploymentTime(java.util.Date deploymentTime)
|
void |
setId(java.lang.String id)
|
void |
setInitial(NodeImpl initial)
|
void |
setKey(java.lang.String key)
|
void |
setPackageName(java.lang.String packageName)
|
void |
setVersion(int version)
|
java.lang.String |
toString()
|
Methods inherited from class org.ow2.bonita.pvm.internal.model.CompositeElementImpl |
---|
addNode, createNode, createNode, createTimerDefinition, createVariableDefinition, findNode, getNode, getNodes, getNodesMap, getTimerDefinitions, getVariableDefinitions, hasNode, hasNodes, removeNode |
Methods inherited from class org.ow2.bonita.pvm.internal.model.ObservableElementImpl |
---|
addEvent, createEvent, getDescription, getEvent, getEvents, getName, getParent, hasEvent, setDescription, setEvents, setName |
Methods inherited from class org.ow2.bonita.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 |
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 NodeImpl initial
Constructor Detail |
---|
public PVMProcessDefinitionImpl()
Method Detail |
---|
public ClientProcessInstance createProcessInstance()
createProcessInstance
in interface ClientProcessDefinition
public ClientProcessInstance createProcessInstance(java.lang.String key)
createProcessInstance
in interface ClientProcessDefinition
public ClientProcessInstance createProcessInstance(java.lang.String key, Execution superProcessExecution)
public ClientProcessInstance beginProcessInstance()
beginProcessInstance
in interface ClientProcessDefinition
public ClientProcessInstance beginProcessInstance(java.lang.String key)
beginProcessInstance
in interface ClientProcessDefinition
protected ExecutionImpl newProcessInstance()
public void addAttachment(java.lang.String name, java.io.InputStream inputStream)
public void addAttachment(java.lang.String name, byte[] bytes)
public byte[] getAttachmentBytes(java.lang.String name)
public java.io.InputStream getAttachmentInputStream(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public NodeImpl getInitial()
OpenProcessDefinition
getInitial
in interface OpenProcessDefinition
public void setInitial(NodeImpl initial)
public int getVersion()
ProcessDefinition
name
.
getVersion
in interface ProcessDefinition
public void setVersion(int version)
public java.util.Date getDeploymentTime()
public void setDeploymentTime(java.util.Date deploymentTime)
public java.lang.String getPackageName()
ProcessDefinition
getPackageName
in interface ProcessDefinition
public void setPackageName(java.lang.String packageName)
public java.lang.String getKey()
ProcessDefinition
getKey
in interface ProcessDefinition
public void setKey(java.lang.String key)
public java.lang.String getId()
ProcessDefinition
getId
in interface ProcessDefinition
public void setId(java.lang.String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |