org.jbpm.graph.node
Class ProcessState

java.lang.Object
  extended by org.jbpm.graph.def.GraphElement
      extended by org.jbpm.graph.def.Node
          extended by org.jbpm.graph.node.ProcessState
All Implemented Interfaces:
Serializable, Identifiable, Parsable

public class ProcessState
extends Node

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jbpm.graph.def.Node
Node.NodeType
 
Field Summary
protected  ProcessDefinition subProcessDefinition
           
protected  String subProcessName
           
static String[] supportedEventTypes
          Deprecated. arrays are mutable and thus vulnerable to external manipulation. use getSupportedEventTypes() instead
protected  Set variableAccesses
           
 
Fields inherited from class org.jbpm.graph.def.Node
action, arrivingTransitions, isAsync, isAsyncExclusive, leavingTransitions, superState
 
Fields inherited from class org.jbpm.graph.def.GraphElement
description, events, exceptionHandlers, name, processDefinition
 
Constructor Summary
ProcessState()
           
ProcessState(String name)
           
 
Method Summary
protected  void addNodeLog(Token token)
           
 void execute(ExecutionContext executionContext)
          override this method to customize the node behaviour.
 ProcessDefinition getSubProcessDefinition()
           
static SubProcessResolver getSubProcessResolver()
           
 String[] getSupportedEventTypes()
          indicative set of event types supported by this graph element.
 void leave(ExecutionContext executionContext, Transition transition)
          called by the implementation of this node to continue execution over the given transition.
 void read(org.dom4j.Element processStateElement, JpdlXmlReader jpdlReader)
           
static void setDefaultSubProcessResolver(SubProcessResolver subProcessResolver)
          Deprecated. set configuration entry jbpm.sub.process.resolver instead
 void setSubProcessDefinition(ProcessDefinition subProcessDefinition)
           
 
Methods inherited from class org.jbpm.graph.def.Node
addArrivingTransition, addLeavingTransition, createAsyncContinuationJob, enter, generateNextLeavingTransitionName, getAction, getArrivingTransitions, getDefaultLeavingTransition, getFullyQualifiedName, getLeavingTransition, getLeavingTransitions, getLeavingTransitionsList, getLeavingTransitionsMap, getNameExt, getNodes, getNodeType, getParent, getProcessDefinition, getSuperState, hasLeavingTransition, hasNoLeavingTransitions, isAsync, isAsyncExclusive, isSuperStateNode, leave, leave, removeArrivingTransition, removeLeavingTransition, reorderLeavingTransition, setAction, setAsync, setAsyncExclusive, setName, write
 
Methods inherited from class org.jbpm.graph.def.GraphElement
addEvent, addExceptionHandler, createAsyncActionExecutionJob, equals, executeAction, findExceptionHandler, fireAndPropagateEvent, fireEvent, getDescription, getEvent, getEvents, getExceptionHandlers, getId, getName, getParentChain, getParents, hasEvent, hasEvents, hashCode, raiseException, removeEvent, removeExceptionHandler, reorderExceptionHandler, setDescription, setProcessDefinition, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

subProcessDefinition

protected ProcessDefinition subProcessDefinition

variableAccesses

protected Set variableAccesses

subProcessName

protected String subProcessName

supportedEventTypes

public static final String[] supportedEventTypes
Deprecated. arrays are mutable and thus vulnerable to external manipulation. use getSupportedEventTypes() instead
Constructor Detail

ProcessState

public ProcessState()

ProcessState

public ProcessState(String name)
Method Detail

setDefaultSubProcessResolver

public static void setDefaultSubProcessResolver(SubProcessResolver subProcessResolver)
Deprecated. set configuration entry jbpm.sub.process.resolver instead


getSubProcessResolver

public static SubProcessResolver getSubProcessResolver()

getSupportedEventTypes

public String[] getSupportedEventTypes()
Description copied from class: GraphElement
indicative set of event types supported by this graph element. this is currently only used by the process designer to know which event types to show on a given graph element. in process definitions and at runtime, there are no constraints on the event-types.

Overrides:
getSupportedEventTypes in class Node

read

public void read(org.dom4j.Element processStateElement,
                 JpdlXmlReader jpdlReader)
Specified by:
read in interface Parsable
Overrides:
read in class Node

execute

public void execute(ExecutionContext executionContext)
Description copied from class: Node
override this method to customize the node behaviour.

Overrides:
execute in class Node

leave

public void leave(ExecutionContext executionContext,
                  Transition transition)
Description copied from class: Node
called by the implementation of this node to continue execution over the given transition.

Overrides:
leave in class Node

addNodeLog

protected void addNodeLog(Token token)
Overrides:
addNodeLog in class Node

getSubProcessDefinition

public ProcessDefinition getSubProcessDefinition()

setSubProcessDefinition

public void setSubProcessDefinition(ProcessDefinition subProcessDefinition)


Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.