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


Field Summary
protected  IParticipant participant
           
protected  int priority
           
protected  IRole role
           
 
Fields inherited from class org.jwarp.flow.AWorkflowObject
description, id, name, workflow
 
Constructor Summary
ActivityFactory(int id, java.lang.String name)
           
 
Method Summary
 void addExceptionListener(IExceptionListener handler)
           
 IActivity createActivity(ITransition transition, IWorkflowContext context)
           
 java.util.Iterator getEndStates()
           
 java.util.Iterator getExceptionListeners()
           
 IParticipant getParticipant()
          Returns the participant of this transition.
 int getPriority()
           
 IRole getRole()
          Returns the transition's role.
 void removeAllExceptionListeners()
           
 void removeExceptionListener(IExceptionListener listener)
           
 void setParticipant(IParticipant participant)
           
 void setPriority(int priority)
           
 void setRole(IRole role)
           
 
Methods inherited from class org.jwarp.flow.AWorkflowObject
getDescription, getID, getName, getWorkflow, setDescription, setName, setWorkflow
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jwarp.flow.process.IActivityFactory
getDescription, getName
 

Field Detail

role

protected IRole role

participant

protected IParticipant participant

priority

protected int priority
Constructor Detail

ActivityFactory

public ActivityFactory(int id,
                       java.lang.String name)
Method Detail

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

©   O R C A   S y s t e m s