org.jbpm.graph.def
Class Transition

java.lang.Object
  extended by org.jbpm.graph.def.GraphElement
      extended by org.jbpm.graph.def.Transition
All Implemented Interfaces:
Serializable, Identifiable

public class Transition
extends GraphElement

See Also:
Serialized Form

Field Summary
protected  String condition
           
protected  Node from
           
static String[] supportedEventTypes
          Deprecated. arrays are mutable and thus vulnerable to external manipulation. use getSupportedEventTypes() instead
protected  Node to
           
 
Fields inherited from class org.jbpm.graph.def.GraphElement
description, events, exceptionHandlers, name, processDefinition
 
Constructor Summary
Transition()
           
Transition(String name)
           
 
Method Summary
 boolean equals(Object o)
           
 String getCondition()
          the condition expression for this transition.
 Node getFrom()
           
 GraphElement getParent()
           
 String[] getSupportedEventTypes()
          indicative set of event types supported by this graph element.
 Node getTo()
           
 int hashCode()
           
 boolean isConditionEnforced()
           
 void removeConditionEnforcement()
          Deprecated. call setConditionEnforced(false) instead
 void setCondition(String conditionExpression)
           
 void setConditionEnforced(boolean conditionEnforced)
           
 void setFrom(Node from)
          sets the from node unidirectionally.
 void setName(String name)
           
 void setTo(Node to)
          sets the to node unidirectionally.
 void take(ExecutionContext executionContext)
          passes execution over this transition.
 String toString()
           
 
Methods inherited from class org.jbpm.graph.def.GraphElement
addEvent, addExceptionHandler, createAsyncActionExecutionJob, executeAction, findExceptionHandler, fireAndPropagateEvent, fireEvent, getDescription, getEvent, getEvents, getExceptionHandlers, getId, getName, getParentChain, getParents, getProcessDefinition, hasEvent, hasEvents, raiseException, removeEvent, removeExceptionHandler, reorderExceptionHandler, setDescription, setProcessDefinition
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

from

protected Node from

to

protected Node to

condition

protected String condition

supportedEventTypes

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

Transition

public Transition()

Transition

public Transition(String name)
Method Detail

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.

Specified by:
getSupportedEventTypes in class GraphElement

getFrom

public Node getFrom()

setFrom

public void setFrom(Node from)
sets the from node unidirectionally. use Node.addLeavingTransition(Transition) to get bidirectional relations mgmt.


setTo

public void setTo(Node to)
sets the to node unidirectionally. use Node.addArrivingTransition(Transition) to get bidirectional relations mgmt.


getTo

public Node getTo()

getCondition

public String getCondition()
the condition expression for this transition.


setCondition

public void setCondition(String conditionExpression)

isConditionEnforced

public boolean isConditionEnforced()

setConditionEnforced

public void setConditionEnforced(boolean conditionEnforced)

removeConditionEnforcement

public void removeConditionEnforcement()
Deprecated. call setConditionEnforced(false) instead


take

public void take(ExecutionContext executionContext)
passes execution over this transition.


equals

public boolean equals(Object o)
Overrides:
equals in class GraphElement

hashCode

public int hashCode()
Overrides:
hashCode in class GraphElement

toString

public String toString()
Overrides:
toString in class GraphElement

setName

public void setName(String name)
Overrides:
setName in class GraphElement

getParent

public GraphElement getParent()
Overrides:
getParent in class GraphElement


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