org.jwarp.flow.process
Interface IActivity

All Superinterfaces:
IWorkflowObject
All Known Implementing Classes:
Activity

public interface IActivity
extends IWorkflowObject

This is the implementation class of an activity. An activity is a part of a workflow containing several work to be done. All the work within the activity must normally finished so the activity is able to determine the final activity status.

Version:
1.0
Author:
Anatole Tresch

Field Summary
static int ACTIVE
          Constant indicating that the transitions is firing, that means executing.
static int BLOCKED
          Constant indicating that this transition can not fire.
static int COMPLETED
          Constant indicating that the transition has fired successfully.
static int CREATED
          Constant indicating that this transition is not yet initialised.
static int READY
          Constant indicating that the transition is ready to fire, but was not activated yet for execution.
static int TYPE_EXTERNAL
           
static int TYPE_SUBFLOW
           
static int TYPE_TOOL
           
static int TYPE_USER
           
 
Method Summary
 int getActivityType()
           
 java.util.Date getCreationTime()
           
 java.util.Date getEndTime()
           
 IParticipant getParticipant()
          Returns the participant of this transition.
 IRole getRole()
          Returns the activities's role.
 java.util.Date getStartTime()
           
 int getStatus()
          Return the activiy's overall status
 ITransition getTransition()
          Returns the participant of this transition.
 void run(IWorkflowContext context)
          Run this activity
 
Methods inherited from interface org.jwarp.flow.IWorkflowObject
getDescription, getID, getName
 

Field Detail

TYPE_EXTERNAL

public static final int TYPE_EXTERNAL

TYPE_SUBFLOW

public static final int TYPE_SUBFLOW

TYPE_TOOL

public static final int TYPE_TOOL

TYPE_USER

public static final int TYPE_USER

CREATED

public static final int CREATED
Constant indicating that this transition is not yet initialised.

BLOCKED

public static final int BLOCKED
Constant indicating that this transition can not fire.

READY

public static final int READY
Constant indicating that the transition is ready to fire, but was not activated yet for execution.

ACTIVE

public static final int ACTIVE
Constant indicating that the transitions is firing, that means executing.

COMPLETED

public static final int COMPLETED
Constant indicating that the transition has fired successfully.
Method Detail

getActivityType

public int getActivityType()

getRole

public IRole getRole()
Returns the activities'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.

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

getTransition

public ITransition getTransition()
Returns the participant of this transition. If the participant is human or external then external input is needed.
Returns:
The participant

getStatus

public int getStatus()
Return the activiy's overall status
Returns:
The status

run

public void run(IWorkflowContext context)
         throws ProcessInitException,
                ProcessException
Run this activity
Throws:
ActivityInitException - If the activity could not be started
ActivityException - If an error during activity executino occured

getCreationTime

public java.util.Date getCreationTime()

getStartTime

public java.util.Date getStartTime()

getEndTime

public java.util.Date getEndTime()

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