org.obe.xpdl.model.workflow
Class WorkflowProcess

java.lang.Object
  extended byorg.obe.util.AbstractBean
      extended byorg.obe.xpdl.model.misc.AbstractWFElement
          extended byorg.obe.xpdl.model.misc.ResourceContainer
              extended byorg.obe.xpdl.model.workflow.WorkflowProcess
All Implemented Interfaces:
java.beans.beancontext.BeanContextChild, CalendarRef, Graph, Invokable, java.io.Serializable

public final class WorkflowProcess
extends ResourceContainer
implements Graph, Invokable

See Also:
Serialized Form

Field Summary
static java.lang.String ACCESS_LEVEL
           
static java.lang.String ACTIVITY
           
static java.lang.String ACTIVITY_SET
           
static java.lang.String COMPLETION_STRATEGY
           
static java.lang.String FORMAL_PARAMETER
           
static java.lang.String PACKAGE
           
static java.lang.String PACKAGE_ID
           
static java.lang.String PROCESS_DEFINITION_ID
           
static java.lang.String PROCESS_HEADER
           
static java.lang.String STATE
           
static java.lang.String TRANSITION
           
static java.lang.String TRIGGER
           
 
Fields inherited from class org.obe.xpdl.model.misc.ResourceContainer
APPLICATION, ASSIGNMENT_STRATEGY, CALENDAR, DATA_FIELD, EMPTY_APPLICATION, EMPTY_DATA_FIELD, EMPTY_PARTICIPANT, PARTICIPANT, REDEFINABLE_HEADER
 
Constructor Summary
WorkflowProcess()
           
WorkflowProcess(java.lang.String id, java.lang.String name, XPDLPackage pkg, ProcessHeader processHeader)
          Construct a new WorkflowProcess.
 
Method Summary
 void accept(PackageVisitor visitor)
           
 void add(Activity activity)
           
 void add(ActivitySet activitySet)
           
 void add(FormalParameter formalParameter)
           
 void add(Transition transition)
           
 AccessLevel getAccessLevel()
          Get the workflow process access level.
 Activity[] getActivity()
           
 Activity getActivity(int i)
           
 Activity getActivity(java.lang.String id)
           
 ActivitySet[] getActivitySet()
           
 ActivitySet getActivitySet(int i)
           
 ActivitySet getActivitySet(java.lang.String id)
           
 java.lang.String getCompletionStrategy()
           
 FormalParameter[] getFormalParameter()
           
 FormalParameter getFormalParameter(int i)
           
 FormalParameter getFormalParameter(java.lang.String id)
           
 XPDLPackage getPackage()
           
 java.lang.String getPackageId()
           
 java.lang.String getProcessDefinitionId()
           
 ProcessHeader getProcessHeader()
           
 int getState()
           
 Transition[] getTransition()
           
 Transition getTransition(int i)
           
 Transition getTransition(java.lang.String id)
           
 Trigger getTrigger()
           
 void remove(Activity activity)
           
 void remove(ActivitySet activitySet)
           
 void remove(FormalParameter formalParameter)
           
 void remove(Transition transition)
           
 void resolveReferences()
           
 void setAccessLevel(AccessLevel accessLevel)
          Set the workflow process access level.
 void setActivity(Activity[] activities)
           
 void setActivity(int i, Activity activity)
           
 void setActivitySet(ActivitySet[] activitySet)
           
 void setActivitySet(int i, ActivitySet activitySet)
           
 void setCompletionStrategy(java.lang.String completionStrategy)
           
 void setFormalParameter(FormalParameter[] formalParameters)
           
 void setFormalParameter(int i, FormalParameter formalParameter)
           
 void setPackage(XPDLPackage pkg)
           
 void setPkg(XPDLPackage pkg)
           
 void setProcessHeader(ProcessHeader processHeader)
           
 void setState(int state)
           
 void setTransition(int i, Transition transition)
           
 void setTransition(Transition[] transitions)
           
 void setTrigger(Trigger trigger)
           
 java.lang.String toString()
           
 
Methods inherited from class org.obe.xpdl.model.misc.ResourceContainer
add, add, add, getApplication, getApplication, getApplication, getAssignmentStrategy, getCalendar, getDataField, getDataField, getDataField, getParticipant, getParticipant, getParticipant, getRedefinableHeader, remove, remove, remove, setApplication, setApplication, setAssignmentStrategy, setCalendar, setDataField, setDataField, setParticipant, setParticipant, setRedefinableHeader
 
Methods inherited from class org.obe.xpdl.model.misc.AbstractWFElement
createExtendedAttributes, equals, getDescription, getExtendedAttributes, getId, getName, hashCode, setDescription, setExtendedAttributes, setId, setName
 
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, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ACCESS_LEVEL

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

ACTIVITY

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

ACTIVITY_SET

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

COMPLETION_STRATEGY

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

FORMAL_PARAMETER

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

PACKAGE

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

PACKAGE_ID

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

PROCESS_DEFINITION_ID

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

PROCESS_HEADER

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

STATE

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

TRANSITION

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

TRIGGER

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

WorkflowProcess

public WorkflowProcess()

WorkflowProcess

public WorkflowProcess(java.lang.String id,
                       java.lang.String name,
                       XPDLPackage pkg,
                       ProcessHeader processHeader)
Construct a new WorkflowProcess.

Parameters:
id - The id
name - The name
processHeader - The Workflow process header
Method Detail

accept

public void accept(PackageVisitor visitor)
Specified by:
accept in interface Graph
Overrides:
accept in class ResourceContainer

getTrigger

public Trigger getTrigger()

setTrigger

public void setTrigger(Trigger trigger)

getAccessLevel

public AccessLevel getAccessLevel()
Get the workflow process access level.

Returns:
The access level

setAccessLevel

public void setAccessLevel(AccessLevel accessLevel)
Set the workflow process access level.

Parameters:
accessLevel - The access level

add

public void add(Activity activity)
         throws java.beans.PropertyVetoException
Specified by:
add in interface Graph
Throws:
java.beans.PropertyVetoException

remove

public void remove(Activity activity)
            throws java.beans.PropertyVetoException
Specified by:
remove in interface Graph
Throws:
java.beans.PropertyVetoException

getActivity

public Activity[] getActivity()
Specified by:
getActivity in interface Graph

getActivity

public Activity getActivity(int i)
Specified by:
getActivity in interface Graph

getActivity

public Activity getActivity(java.lang.String id)
Specified by:
getActivity in interface Graph

setActivity

public void setActivity(Activity[] activities)
                 throws java.beans.PropertyVetoException
Specified by:
setActivity in interface Graph
Throws:
java.beans.PropertyVetoException

setActivity

public void setActivity(int i,
                        Activity activity)
                 throws java.beans.PropertyVetoException
Specified by:
setActivity in interface Graph
Throws:
java.beans.PropertyVetoException

add

public void add(ActivitySet activitySet)
         throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

remove

public void remove(ActivitySet activitySet)
            throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getActivitySet

public ActivitySet[] getActivitySet()

getActivitySet

public ActivitySet getActivitySet(int i)

getActivitySet

public ActivitySet getActivitySet(java.lang.String id)

setActivitySet

public void setActivitySet(ActivitySet[] activitySet)
                    throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

setActivitySet

public void setActivitySet(int i,
                           ActivitySet activitySet)
                    throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getCompletionStrategy

public java.lang.String getCompletionStrategy()

setCompletionStrategy

public void setCompletionStrategy(java.lang.String completionStrategy)

add

public void add(FormalParameter formalParameter)
         throws java.beans.PropertyVetoException
Specified by:
add in interface Invokable
Throws:
java.beans.PropertyVetoException

remove

public void remove(FormalParameter formalParameter)
            throws java.beans.PropertyVetoException
Specified by:
remove in interface Invokable
Throws:
java.beans.PropertyVetoException

getFormalParameter

public FormalParameter[] getFormalParameter()
Specified by:
getFormalParameter in interface Invokable

getFormalParameter

public FormalParameter getFormalParameter(int i)
Specified by:
getFormalParameter in interface Invokable

getFormalParameter

public FormalParameter getFormalParameter(java.lang.String id)
Specified by:
getFormalParameter in interface Invokable

setFormalParameter

public void setFormalParameter(FormalParameter[] formalParameters)
                        throws java.beans.PropertyVetoException
Specified by:
setFormalParameter in interface Invokable
Throws:
java.beans.PropertyVetoException

setFormalParameter

public void setFormalParameter(int i,
                               FormalParameter formalParameter)
                        throws java.beans.PropertyVetoException
Specified by:
setFormalParameter in interface Invokable
Throws:
java.beans.PropertyVetoException

getPackage

public XPDLPackage getPackage()

setPackage

public void setPackage(XPDLPackage pkg)

getPackageId

public java.lang.String getPackageId()

getProcessDefinitionId

public java.lang.String getProcessDefinitionId()

getProcessHeader

public ProcessHeader getProcessHeader()

setProcessHeader

public void setProcessHeader(ProcessHeader processHeader)

getState

public int getState()

setState

public void setState(int state)

add

public void add(Transition transition)
         throws java.beans.PropertyVetoException
Specified by:
add in interface Graph
Throws:
java.beans.PropertyVetoException

remove

public void remove(Transition transition)
            throws java.beans.PropertyVetoException
Specified by:
remove in interface Graph
Throws:
java.beans.PropertyVetoException

getTransition

public Transition[] getTransition()
Specified by:
getTransition in interface Graph

getTransition

public Transition getTransition(int i)
Specified by:
getTransition in interface Graph

getTransition

public Transition getTransition(java.lang.String id)
Specified by:
getTransition in interface Graph

setTransition

public void setTransition(Transition[] transitions)
                   throws java.beans.PropertyVetoException
Specified by:
setTransition in interface Graph
Throws:
java.beans.PropertyVetoException

setTransition

public void setTransition(int i,
                          Transition transition)
                   throws java.beans.PropertyVetoException
Specified by:
setTransition in interface Graph
Throws:
java.beans.PropertyVetoException

setPkg

public void setPkg(XPDLPackage pkg)

resolveReferences

public void resolveReferences()

toString

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


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