org.jbpm.pvm.impl
Class TransitionImpl

java.lang.Object
  extended by org.jbpm.pvm.impl.ProcessElementImpl
      extended by org.jbpm.pvm.impl.ObservableElementImpl
          extended by org.jbpm.pvm.impl.TransitionImpl
All Implemented Interfaces:
java.io.Serializable, ObservableElement, ProcessElement, Transition
Direct Known Subclasses:
ProcessModificationsImpl.AddedTransition

public class TransitionImpl
extends ObservableElementImpl
implements Transition

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  NodeImpl destination
           
protected  ObjectReference<Condition> guardConditionReference
           
protected  boolean isTakeAsync
           
protected  NodeImpl source
           
protected  ObjectReference<Condition> waitConditionReference
           
 
Fields inherited from class org.jbpm.pvm.impl.ObservableElementImpl
description, events, name
 
Fields inherited from class org.jbpm.pvm.impl.ProcessElementImpl
dbid, dbversion, exceptionHandlers, processDefinition, properties
 
Fields inherited from interface org.jbpm.pvm.Transition
EVENT_TRANSITION_TAKE
 
Method Summary
 EventImpl createEvent()
           
 NodeImpl getDestination()
          the node in which this transition arrives.
 EventImpl getEvent()
          the event that is fired when this transition is being taken.
 Condition getGuardCondition()
          the condition that indicates if this transition can be taken or not.
 ObjectReference<Condition> getGuardConditionReference()
          see Guard conditions
 ObservableElementImpl getParent()
          the first common parent between the source and the destination node.
 NodeImpl getSource()
          the node from which this transition leaves.
 Condition getWaitCondition()
          the condition that is evaluated while the transition is taken and determines whether this transition should propagate to the destination node or behave as a wait state.
 ObjectReference<Condition> getWaitConditionReference()
          see Wait conditions
 boolean isTakeAsync()
           
 void makeDefault()
           
 void setDestination(NodeImpl destination)
           
 void setGuardConditionReference(ObjectReference<Condition> guardConditionReference)
          see Guard conditions
 void setName(java.lang.String name)
           
 void setSource(NodeImpl source)
           
 void setTakeAsync(boolean isTakeAsync)
           
 void setWaitConditionReference(ObjectReference<Condition> waitConditionReference)
           
 void setWaitConditionReferenceConditionReference(ObjectReference<Condition> waitConditionReference)
          see Wait conditions
 java.lang.String toString()
           
 
Methods inherited from class org.jbpm.pvm.impl.ObservableElementImpl
addEvent, createEvent, getDescription, getEvent, getEvents, getName, hasEvent, setDescription, setEvents
 
Methods inherited from class org.jbpm.pvm.impl.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.jbpm.pvm.ObservableElement
getDescription, getEvent, getEvents, getName, hasEvent
 
Methods inherited from interface org.jbpm.pvm.ProcessElement
getDbid, getExceptionHandlers, getProcessDefinition, getProperty, getPropertyKeys
 

Field Detail

source

protected NodeImpl source

destination

protected NodeImpl destination

guardConditionReference

protected ObjectReference<Condition> guardConditionReference

waitConditionReference

protected ObjectReference<Condition> waitConditionReference

isTakeAsync

protected boolean isTakeAsync
Method Detail

makeDefault

public void makeDefault()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

createEvent

public EventImpl createEvent()

getParent

public ObservableElementImpl getParent()
the first common parent between the source and the destination node. The source and destination itself are included in the search except if source and destination are equal. In that case (self-transition), then it's the parent of the node.

Specified by:
getParent in interface ObservableElement
Overrides:
getParent in class ObservableElementImpl

setName

public void setName(java.lang.String name)
Overrides:
setName in class ObservableElementImpl

getGuardCondition

public Condition getGuardCondition()
Description copied from interface: Transition
the condition that indicates if this transition can be taken or not.

Specified by:
getGuardCondition in interface Transition

getWaitCondition

public Condition getWaitCondition()
Description copied from interface: Transition
the condition that is evaluated while the transition is taken and determines whether this transition should propagate to the destination node or behave as a wait state. See Transitions as wait states.

Specified by:
getWaitCondition in interface Transition

getEvent

public EventImpl getEvent()
Description copied from interface: Transition
the event that is fired when this transition is being taken. This corresponds to the Transition.EVENT_TRANSITION_TAKE entry of the events in the process element event map.

Specified by:
getEvent in interface Transition

getSource

public NodeImpl getSource()
Description copied from interface: Transition
the node from which this transition leaves.

Specified by:
getSource in interface Transition

setSource

public void setSource(NodeImpl source)

getDestination

public NodeImpl getDestination()
Description copied from interface: Transition
the node in which this transition arrives.

Specified by:
getDestination in interface Transition

setDestination

public void setDestination(NodeImpl destination)

getGuardConditionReference

public ObjectReference<Condition> getGuardConditionReference()
see Guard conditions


setGuardConditionReference

public void setGuardConditionReference(ObjectReference<Condition> guardConditionReference)
see Guard conditions


getWaitConditionReference

public ObjectReference<Condition> getWaitConditionReference()
see Wait conditions


setWaitConditionReferenceConditionReference

public void setWaitConditionReferenceConditionReference(ObjectReference<Condition> waitConditionReference)
see Wait conditions


isTakeAsync

public boolean isTakeAsync()

setTakeAsync

public void setTakeAsync(boolean isTakeAsync)

setWaitConditionReference

public void setWaitConditionReference(ObjectReference<Condition> waitConditionReference)