|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.orchestra.pvm.internal.model.ProcessElementImpl
org.ow2.orchestra.pvm.internal.model.ObservableElementImpl
org.ow2.orchestra.pvm.internal.model.CompositeElementImpl
org.ow2.orchestra.pvm.internal.model.ProcessDefinitionImpl
public class ProcessDefinitionImpl
| Field Summary | |
|---|---|
protected Map<String,Blob> |
attachments
the attachments TODO move the attachments to a separate DeploymentUnit type |
protected Date |
deploymentTime
time this process was deployed |
protected String |
id
the unique id (e.g. combination of name and versionnumber) for this process definition. |
protected NodeImpl |
initial
the node which is executed when the process starts |
protected String |
key
user provided short reference for the process definition that has the same scope as the name. |
protected 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.orchestra.pvm.internal.model.CompositeElementImpl |
|---|
hasTimerDefinitions, hasVariableDefinitions, nodes, nodesMap, timerDefinitions, variableDefinitions |
| Fields inherited from class org.ow2.orchestra.pvm.internal.model.ObservableElementImpl |
|---|
description, events, name |
| Fields inherited from class org.ow2.orchestra.pvm.internal.model.ProcessElementImpl |
|---|
dbid, dbversion, exceptionHandlers, processDefinition, properties |
| Constructor Summary | |
|---|---|
ProcessDefinitionImpl()
|
|
| Method Summary | |
|---|---|
void |
addAttachment(String name,
byte[] bytes)
|
void |
addAttachment(String name,
InputStream inputStream)
|
ClientProcessInstance |
beginProcessInstance()
|
ClientProcessInstance |
beginProcessInstance(String key)
|
ClientProcessInstance |
createProcessInstance()
|
ClientProcessInstance |
createProcessInstance(String key)
|
ClientProcessInstance |
createProcessInstance(String key,
Execution superProcessExecution)
|
byte[] |
getAttachmentBytes(String name)
|
InputStream |
getAttachmentInputStream(String name)
|
Date |
getDeploymentTime()
|
String |
getId()
the unique id for this process definition. |
NodeImpl |
getInitial()
the initial node of this process definition |
String |
getKey()
the user defined short representation of the name. |
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(Date deploymentTime)
|
void |
setId(String id)
|
void |
setInitial(NodeImpl initial)
|
void |
setKey(String key)
|
void |
setPackageName(String packageName)
|
void |
setVersion(int version)
|
String |
toString()
|
| Methods inherited from class org.ow2.orchestra.pvm.internal.model.CompositeElementImpl |
|---|
addNode, createNode, createNode, createTimerDefinition, createVariableDefinition, findNode, getNode, getNodes, getNodesMap, getTimerDefinitions, getVariableDefinitions, hasNode, hasNodes, removeNode |
| Methods inherited from class org.ow2.orchestra.pvm.internal.model.ObservableElementImpl |
|---|
addEvent, createEvent, getDescription, getEvent, getEvents, getName, getParent, hasEvent, setDescription, setEvents, setName |
| Methods inherited from class org.ow2.orchestra.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.ow2.orchestra.pvm.ProcessDefinition |
|---|
getDescription, getName |
| Methods inherited from interface org.ow2.orchestra.pvm.model.CompositeElement |
|---|
findNode, getNode, getNodes, getNodesMap, hasNode, hasNodes |
| Methods inherited from interface org.ow2.orchestra.pvm.model.ObservableElement |
|---|
getDbid, getName, getParent, getProcessDefinition, getProperty, getPropertyKeys, hasEvent |
| Field Detail |
|---|
public static final int UNASSIGNED_VERSION
protected String key
protected String id
protected int version
protected String packageName
protected Date deploymentTime
protected NodeImpl initial
protected Map<String,Blob> attachments
| Constructor Detail |
|---|
public ProcessDefinitionImpl()
| Method Detail |
|---|
public ClientProcessInstance createProcessInstance()
createProcessInstance in interface ClientProcessDefinitionpublic ClientProcessInstance createProcessInstance(String key)
createProcessInstance in interface ClientProcessDefinition
public ClientProcessInstance createProcessInstance(String key,
Execution superProcessExecution)
public ClientProcessInstance beginProcessInstance()
beginProcessInstance in interface ClientProcessDefinitionpublic ClientProcessInstance beginProcessInstance(String key)
beginProcessInstance in interface ClientProcessDefinitionprotected ExecutionImpl newProcessInstance()
public void addAttachment(String name,
InputStream inputStream)
public void addAttachment(String name,
byte[] bytes)
public byte[] getAttachmentBytes(String name)
public InputStream getAttachmentInputStream(String name)
public String toString()
toString in class Objectpublic NodeImpl getInitial()
OpenProcessDefinition
getInitial in interface OpenProcessDefinitionpublic void setInitial(NodeImpl initial)
public int getVersion()
ProcessDefinitionname.
getVersion in interface ProcessDefinitionpublic void setVersion(int version)
public Date getDeploymentTime()
public void setDeploymentTime(Date deploymentTime)
public String getPackageName()
ProcessDefinition
getPackageName in interface ProcessDefinitionpublic void setPackageName(String packageName)
public String getKey()
ProcessDefinition
getKey in interface ProcessDefinitionpublic void setKey(String key)
public String getId()
ProcessDefinition
getId in interface ProcessDefinitionpublic void setId(String id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||