org.obe.xpdl.model.transition
Class Split

java.lang.Object
  extended byorg.obe.util.AbstractBean
      extended byorg.obe.xpdl.model.transition.Split
All Implemented Interfaces:
java.beans.beancontext.BeanContextChild, java.io.Serializable

public final class Split
extends AbstractBean

A split represents a location in a workflow process where execution can split or change paths based on the outcome of a condition. Two types of splits are supported: AND and XOR. AND splits result in multiple threads executing at the same time. XOR splits result in a continuation of the current thread, albeit on one of several possible paths. Non-exclusive splits are also possible by using an AND split in conjuction with conditions.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static java.lang.String TRANSITION_REFERENCE
           
static java.lang.String TYPE
           
 
Constructor Summary
Split()
          Construct a new Split.
 
Method Summary
 void add(java.lang.String transitionReference)
           
 java.lang.String[] getTransitionReference()
          Get a list of transition references.
 java.lang.String getTransitionReference(int i)
           
 SplitType getType()
          Gets the split type.
 void remove(java.lang.String transitionReference)
           
 void setTransitionReference(int i, java.lang.String transitionReference)
           
 void setTransitionReference(java.lang.String[] transitionReferences)
           
 void setType(SplitType type)
          Sets the split type.
 java.lang.String toString()
           
 
Methods inherited from class org.obe.util.AbstractBean
add, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clear, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, get, get, getBeanContext, getListModel, hasChangeListeners, hasVetoListeners, remove, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, set, set, setBeanContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRANSITION_REFERENCE

public static final java.lang.String TRANSITION_REFERENCE
See Also:
Constant Field Values

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values
Constructor Detail

Split

public Split()
Construct a new Split.

Method Detail

getType

public SplitType getType()
Gets the split type.

Returns:
The split type

setType

public void setType(SplitType type)
Sets the split type.

Parameters:
type - The split type

add

public void add(java.lang.String transitionReference)
         throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

remove

public void remove(java.lang.String transitionReference)
            throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getTransitionReference

public java.lang.String[] getTransitionReference()
Get a list of transition references. Transition references are used in XOR splits to determine which transitions are part of the possible threads.

Returns:
The transition references

getTransitionReference

public java.lang.String getTransitionReference(int i)

setTransitionReference

public void setTransitionReference(java.lang.String[] transitionReferences)
                            throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

setTransitionReference

public void setTransitionReference(int i,
                                   java.lang.String transitionReference)
                            throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

toString

public java.lang.String toString()


SourceForge.net Logo OBE-1.0 Copyright (C) 2002-2006 Adrian Price. All Rights Reserved.