org.jbpm.pvm.internal.model
Class TransitionImpl

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

public class TransitionImpl
extends ObservableElementImpl
implements Transition

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  Condition condition
           
protected  ActivityImpl destination
           
protected  ActivityImpl source
           
protected  java.lang.Integer sourceIndex
           
 
Fields inherited from class org.jbpm.pvm.internal.model.ObservableElementImpl
description, events, name
 
Fields inherited from class org.jbpm.pvm.internal.model.ProcessElementImpl
dbid, dbversion, exceptionHandlers, processDefinition, properties
 
Method Summary
 EventImpl createEvent()
           
 Condition getCondition()
           
 ActivityImpl getDestination()
           
 EventImpl getEvent()
           
 ObservableElementImpl getParent()
          the first common parent between the source and the destination activity.
 ActivityImpl getSource()
           
 java.lang.Integer getSourceIndex()
           
 void makeDefault()
           
 void setCondition(Condition condition)
           
 void setDestination(ActivityImpl destination)
           
 void setName(java.lang.String name)
           
 void setSource(ActivityImpl source)
           
 void setSourceIndex(java.lang.Integer sourceIndex)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jbpm.pvm.internal.model.ObservableElementImpl
addEvent, createEvent, getDescription, getEvent, getEvents, getName, hasEvent, setDescription
 
Methods inherited from class org.jbpm.pvm.internal.model.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.api.model.Transition
getName
 
Methods inherited from interface org.jbpm.pvm.internal.model.ObservableElement
getDbid, getProcessDefinition, getProperty, getPropertyKeys
 

Field Detail

source

protected ActivityImpl source

sourceIndex

protected java.lang.Integer sourceIndex

destination

protected ActivityImpl destination

condition

protected Condition condition
Method Detail

makeDefault

public void makeDefault()

toString

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

createEvent

public EventImpl createEvent()

getEvent

public EventImpl getEvent()

getParent

public ObservableElementImpl getParent()
the first common parent between the source and the destination activity. 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 activity.

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

setName

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

getSource

public ActivityImpl getSource()
Specified by:
getSource in interface Transition

setSource

public void setSource(ActivityImpl source)

getDestination

public ActivityImpl getDestination()
Specified by:
getDestination in interface Transition

setDestination

public void setDestination(ActivityImpl destination)

getSourceIndex

public java.lang.Integer getSourceIndex()

setSourceIndex

public void setSourceIndex(java.lang.Integer sourceIndex)

getCondition

public Condition getCondition()

setCondition

public void setCondition(Condition condition)


Copyright © 2010 JBoss Community. All Rights Reserved.