|
||||||||||
| 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 java.util.Map<java.lang.String,Blob> |
attachments
the attachments TODO move the attachments to a separate DeploymentUnit type |
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 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.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(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.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 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
protected java.util.Map<java.lang.String,Blob> attachments
| Constructor Detail |
|---|
public ProcessDefinitionImpl()
| Method Detail |
|---|
public ClientProcessInstance createProcessInstance()
createProcessInstance in interface ClientProcessDefinitionpublic 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 ClientProcessDefinitionpublic ClientProcessInstance beginProcessInstance(java.lang.String key)
beginProcessInstance in interface ClientProcessDefinitionprotected 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.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 java.util.Date getDeploymentTime()
public void setDeploymentTime(java.util.Date deploymentTime)
public java.lang.String getPackageName()
ProcessDefinition
getPackageName in interface ProcessDefinitionpublic void setPackageName(java.lang.String packageName)
public java.lang.String getKey()
ProcessDefinition
getKey in interface ProcessDefinitionpublic void setKey(java.lang.String key)
public java.lang.String getId()
ProcessDefinition
getId in interface ProcessDefinitionpublic void setId(java.lang.String id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||