org.jwarp.flow.process
Class ActivityFactory
java.lang.Object
|
+--org.jwarp.flow.AWorkflowObject
|
+--org.jwarp.flow.process.ActivityFactory
- All Implemented Interfaces:
- IActivityFactory, IExceptionProvider, IWorkflowObject
- public class ActivityFactory
- extends AWorkflowObject
- implements IActivityFactory
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
role
protected IRole role
participant
protected IParticipant participant
priority
protected int priority
ActivityFactory
public ActivityFactory(int id,
java.lang.String name)
getRole
public IRole getRole()
- Returns the transition's role. The role determines also indirectly which persons
can execute the transitions or the transitions forms. In a order case there are
customers, sales persons, sticks and invoicing as possible roles. In othe workflows there are others.
setRole
public void setRole(IRole role)
getParticipant
public IParticipant getParticipant()
- Returns the participant of this transition. If the participant is human or external then external input is needed.
- Returns:
- The participant
setParticipant
public void setParticipant(IParticipant participant)
createActivity
public IActivity createActivity(ITransition transition,
IWorkflowContext context)
throws java.lang.SecurityException
- Specified by:
createActivity in interface IActivityFactory
getPriority
public int getPriority()
setPriority
public void setPriority(int priority)
getEndStates
public java.util.Iterator getEndStates()
addExceptionListener
public void addExceptionListener(IExceptionListener handler)
- Specified by:
addExceptionListener in interface IExceptionProvider
getExceptionListeners
public java.util.Iterator getExceptionListeners()
- Specified by:
getExceptionListeners in interface IExceptionProvider
removeAllExceptionListeners
public void removeAllExceptionListeners()
- Specified by:
removeAllExceptionListeners in interface IExceptionProvider
removeExceptionListener
public void removeExceptionListener(IExceptionListener listener)
- Specified by:
removeExceptionListener in interface IExceptionProvider