|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.graph.def.GraphElement
org.jbpm.graph.def.ProcessDefinition
| Field Summary | |
protected java.util.Map |
actions
|
protected java.util.Map |
definitions
|
protected boolean |
isTerminationImplicit
|
protected java.util.List |
nodes
|
protected StartState |
startState
|
static java.lang.String[] |
supportedEventTypes
|
protected int |
version
|
| Fields inherited from class org.jbpm.graph.def.GraphElement |
events, exceptionHandlers, name, processDefinition |
| Constructor Summary | |
ProcessDefinition()
|
|
ProcessDefinition(java.lang.String name)
|
|
ProcessDefinition(java.lang.String[] nodes,
java.lang.String[] transitions)
|
|
| Method Summary | |
Action |
addAction(Action action)
creates a bidirectional relation between this process definition and the given action. |
ModuleDefinition |
addDefinition(ModuleDefinition moduleDefinition)
|
Node |
addNode(Node node)
adds the given node to this node-collection. |
java.lang.Object |
createInstance()
|
static ProcessDefinition |
createNewProcessDefinition()
|
ProcessInstance |
createProcessInstance()
|
static Node |
findNode(NodeCollection nodeCollection,
java.lang.String hierarchicalName)
|
Node |
findNode(java.lang.String hierarchicalName)
finds the node by the given hierarchical name. |
java.lang.String |
generateNodeName()
generates a new name for a node to be added to this collection. |
static java.lang.String |
generateNodeName(java.util.List nodes)
|
Action |
getAction(java.lang.String name)
|
java.util.Map |
getActions()
|
ContextDefinition |
getContextDefinition()
|
ModuleDefinition |
getDefinition(java.lang.Class clazz)
|
java.util.Map |
getDefinitions()
|
FileDefinition |
getFileDefinition()
|
Node |
getNode(java.lang.String name)
retrieves a node by name. |
java.util.List |
getNodes()
is the ordered list of nodes. |
java.util.Map |
getNodesMap()
maps node-names to nodes. |
GraphElement |
getParent()
|
StartState |
getStartState()
|
java.lang.String[] |
getSupportedEventTypes()
indicative set of event types supported by this graph element. |
TaskMgmtDefinition |
getTaskMgmtDefinition()
|
int |
getVersion()
|
boolean |
hasActions()
|
boolean |
hasNode(java.lang.String name)
is true if this node-collection contains a node with the given name, false otherwise. |
boolean |
isTerminationImplicit()
|
static ProcessDefinition |
parseParResource(java.lang.String parResource)
parse a process definition from a process archive resource. |
static ProcessDefinition |
parseParZipInputStream(java.util.zip.ZipInputStream zipInputStream)
parse a process definition from a process archive zip-stream. |
static ProcessDefinition |
parseXmlInputStream(java.io.InputStream inputStream)
parse a process definition from an xml input stream. |
static ProcessDefinition |
parseXmlReader(java.io.Reader reader)
parse a process definition from an xml reader. |
static ProcessDefinition |
parseXmlResource(java.lang.String xmlResource)
parse a process definition from an xml resource file. |
static ProcessDefinition |
parseXmlString(java.lang.String xml)
parse a process definition from an xml string. |
void |
removeAction(Action action)
removes the bidirectional relation between this process definition and the given action. |
ModuleDefinition |
removeDefinition(ModuleDefinition moduleDefinition)
|
Node |
removeNode(Node node)
removes the given node from this node-collection. |
void |
reorderNode(int oldIndex,
int newIndex)
changes the order of the nodes : the node on oldIndex is removed and inserted in the newIndex. |
void |
setDefinitions(java.util.Map definitions)
|
void |
setProcessDefinition(ProcessDefinition processDefinition)
|
void |
setStartState(StartState startState)
|
void |
setTerminationImplicit(boolean isTerminationImplicit)
|
void |
setVersion(int version)
|
| Methods inherited from class org.jbpm.graph.def.GraphElement |
addEvent, addExceptionHandler, findExceptionHandler, fireAndPropagateEvent, fireEvent, getEvent, getEvents, getExceptionHandlers, getId, getName, getParentChain, getParents, getProcessDefinition, hasEvent, hasEvents, raiseException, removeEvent, removeExceptionHandler, reorderExceptionHandler, setName, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int version
protected boolean isTerminationImplicit
protected StartState startState
protected java.util.List nodes
protected java.util.Map actions
protected java.util.Map definitions
public static final java.lang.String[] supportedEventTypes
| Constructor Detail |
public ProcessDefinition()
public ProcessDefinition(java.lang.String name)
public ProcessDefinition(java.lang.String[] nodes,
java.lang.String[] transitions)
| Method Detail |
public java.lang.String[] getSupportedEventTypes()
GraphElement
getSupportedEventTypes in class GraphElementpublic static ProcessDefinition createNewProcessDefinition()
public ProcessInstance createProcessInstance()
public void setProcessDefinition(ProcessDefinition processDefinition)
setProcessDefinition in class GraphElementpublic static ProcessDefinition parseXmlString(java.lang.String xml)
JpdlException - if parsing reported an error.public static ProcessDefinition parseXmlResource(java.lang.String xmlResource)
JpdlException - if parsing reported an error.public static ProcessDefinition parseXmlInputStream(java.io.InputStream inputStream)
JpdlException - if parsing reported an error.public static ProcessDefinition parseXmlReader(java.io.Reader reader)
JpdlException - if parsing reported an error.public static ProcessDefinition parseParZipInputStream(java.util.zip.ZipInputStream zipInputStream)
JpdlException - if parsing reported an error.public static ProcessDefinition parseParResource(java.lang.String parResource)
JpdlException - if parsing reported an error.public java.util.List getNodes()
NodeCollection
getNodes in interface NodeCollectionpublic java.util.Map getNodesMap()
NodeCollection
getNodesMap in interface NodeCollectionpublic Node getNode(java.lang.String name)
NodeCollection
getNode in interface NodeCollectionpublic boolean hasNode(java.lang.String name)
NodeCollection
hasNode in interface NodeCollectionpublic Node addNode(Node node)
NodeCollection
addNode in interface NodeCollectionpublic Node removeNode(Node node)
NodeCollection
removeNode in interface NodeCollection
public void reorderNode(int oldIndex,
int newIndex)
NodeCollection
reorderNode in interface NodeCollectionpublic java.lang.String generateNodeName()
NodeCollection
generateNodeName in interface NodeCollectionpublic Node findNode(java.lang.String hierarchicalName)
NodeCollection
findNode in interface NodeCollectionpublic static java.lang.String generateNodeName(java.util.List nodes)
public static Node findNode(NodeCollection nodeCollection, java.lang.String hierarchicalName)
public void setStartState(StartState startState)
public GraphElement getParent()
getParent in class GraphElementpublic Action addAction(Action action)
java.lang.IllegalArgumentException - if action is null or if action.getName() is null.public void removeAction(Action action)
java.lang.IllegalArgumentException - if action is null or if the action was not present in the actions of this process definition.public Action getAction(java.lang.String name)
public java.util.Map getActions()
public boolean hasActions()
public java.lang.Object createInstance()
public ModuleDefinition addDefinition(ModuleDefinition moduleDefinition)
public ModuleDefinition removeDefinition(ModuleDefinition moduleDefinition)
public ModuleDefinition getDefinition(java.lang.Class clazz)
public ContextDefinition getContextDefinition()
public FileDefinition getFileDefinition()
public TaskMgmtDefinition getTaskMgmtDefinition()
public java.util.Map getDefinitions()
public void setDefinitions(java.util.Map definitions)
public int getVersion()
public void setVersion(int version)
public StartState getStartState()
public boolean isTerminationImplicit()
public void setTerminationImplicit(boolean isTerminationImplicit)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||