org.jbpm.graph.node
Class StartState

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

public class StartState
extends Node

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jbpm.graph.def.Node
Node.NodeType
 
Field Summary
static String[] supportedEventTypes
          Deprecated. arrays are mutable and thus vulnerable to external manipulation; call getSupportedEventTypes() instead
 
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
StartState()
           
StartState(String name)
           
 
Method Summary
 Transition addArrivingTransition(Transition t)
          add a bidirection relation between this node and the given arriving transition.
 void execute(ExecutionContext executionContext)
          override this method to customize the node behaviour.
 String getName()
           
 Node.NodeType getNodeType()
           
 String[] getSupportedEventTypes()
          indicative set of event types supported by this graph element.
 void read(org.dom4j.Element startStateElement, JpdlXmlReader jpdlReader)
           
 void setArrivingTransitions(Map arrivingTransitions)
          Deprecated. start states do not have arriving transitions
 void write(org.dom4j.Element nodeElement)
           
 
Methods inherited from class org.jbpm.graph.def.Node
addLeavingTransition, addNodeLog, createAsyncContinuationJob, enter, generateNextLeavingTransitionName, getAction, getArrivingTransitions, getDefaultLeavingTransition, getFullyQualifiedName, getLeavingTransition, getLeavingTransitions, getLeavingTransitionsList, getLeavingTransitionsMap, getNameExt, getNodes, getParent, getProcessDefinition, getSuperState, hasLeavingTransition, hasNoLeavingTransitions, isAsync, isAsyncExclusive, isSuperStateNode, leave, leave, leave, removeArrivingTransition, removeLeavingTransition, reorderLeavingTransition, setAction, setAsync, setAsyncExclusive, setName
 
Methods inherited from class org.jbpm.graph.def.GraphElement
addEvent, addExceptionHandler, createAsyncActionExecutionJob, equals, executeAction, findExceptionHandler, fireAndPropagateEvent, fireEvent, getDescription, getEvent, getEvents, getExceptionHandlers, getId, 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

supportedEventTypes

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

StartState

public StartState()

StartState

public StartState(String name)
Method Detail

getName

public String getName()
Overrides:
getName in class GraphElement

getNodeType

public Node.NodeType getNodeType()
Overrides:
getNodeType in class Node

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 startStateElement,
                 JpdlXmlReader jpdlReader)
Specified by:
read in interface Parsable
Overrides:
read in class Node

write

public void write(org.dom4j.Element nodeElement)
Specified by:
write in interface Parsable
Overrides:
write 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

addArrivingTransition

public Transition addArrivingTransition(Transition t)
Description copied from class: Node
add a bidirection relation between this node and the given arriving transition.

Overrides:
addArrivingTransition in class Node

setArrivingTransitions

public void setArrivingTransitions(Map arrivingTransitions)
Deprecated. start states do not have arriving transitions

Throws:
UnsupportedOperationException - to prevent invocation


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