org.jwarp.flow.process
Class Activity

java.lang.Object
  |
  +--org.jwarp.flow.AWorkflowObject
        |
        +--org.jwarp.flow.process.Activity
All Implemented Interfaces:
IActivity, IWorkflowObject

public class Activity
extends AWorkflowObject
implements IActivity


Field Summary
protected  java.util.Date creationDate
          The dateTime when the transition was created.
protected  java.util.Date endDate
          The dateTime when the transition started.
protected  int id
          The id.
protected  ITransition owner
          The owning process
protected  int priority
           
protected  IProcess process
          The owning process
protected  java.util.Date startDate
          The dateTime when the transition finished.
protected  int status
          The current state of the transition.
protected  int type
           
 
Fields inherited from class org.jwarp.flow.AWorkflowObject
description, name, workflow
 
Fields inherited from interface org.jwarp.flow.process.IActivity
ACTIVE, BLOCKED, COMPLETED, CREATED, READY, TYPE_EXTERNAL, TYPE_SUBFLOW, TYPE_TOOL, TYPE_USER
 
Constructor Summary
Activity(int id, java.lang.String name, java.lang.String description, IProcess process)
           
Activity(ITransition t)
          Creates a new activity instance given the passed metaData information.
 
Method Summary
protected  void checkRun()
           
 int getActivityType()
           
 java.util.Date getCreationTime()
           
 java.util.Date getEndTime()
           
 IParticipant getParticipant()
          Returns the participant of this transition.
 java.util.Iterator getPendingWorkItems()
           
 int getPriority()
           
 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.
 java.util.Iterator getWorkItems()
           
 void run(IWorkflowContext context)
          Run this activity
 
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.IWorkflowObject
getDescription, getID, getName
 

Field Detail

status

protected int status
The current state of the transition.

owner

protected ITransition owner
The owning process

process

protected IProcess process
The owning process

startDate

protected java.util.Date startDate
The dateTime when the transition finished.

endDate

protected java.util.Date endDate
The dateTime when the transition started.

creationDate

protected java.util.Date creationDate
The dateTime when the transition was created.

id

protected int id
The id.

type

protected int type

priority

protected int priority
Constructor Detail

Activity

public Activity(int id,
                java.lang.String name,
                java.lang.String description,
                IProcess process)

Activity

public Activity(ITransition t)
Creates a new activity instance given the passed metaData information.
Method Detail

getActivityType

public int getActivityType()
Specified by:
getActivityType in interface IActivity

getStatus

public int getStatus()
Description copied from interface: IActivity
Return the activiy's overall status
Specified by:
getStatus in interface IActivity
Following copied from interface: org.jwarp.flow.process.IActivity
Returns:
The status

checkRun

protected void checkRun()
                 throws ProcessInitException

run

public void run(IWorkflowContext context)
         throws ProcessInitException,
                ProcessException
Description copied from interface: IActivity
Run this activity
Specified by:
run in interface IActivity
Following copied from interface: org.jwarp.flow.process.IActivity
Throws:
ActivityInitException - If the activity could not be started
ActivityException - If an error during activity executino occured

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.
Specified by:
getRole in interface IActivity

getParticipant

public IParticipant getParticipant()
Returns the participant of this transition. If the participant is human or external then external input is needed.
Specified by:
getParticipant in interface IActivity
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.
Specified by:
getTransition in interface IActivity
Returns:
The participant

getWorkItems

public java.util.Iterator getWorkItems()

getPendingWorkItems

public java.util.Iterator getPendingWorkItems()

getCreationTime

public java.util.Date getCreationTime()
Specified by:
getCreationTime in interface IActivity

getStartTime

public java.util.Date getStartTime()
Specified by:
getStartTime in interface IActivity

getEndTime

public java.util.Date getEndTime()
Specified by:
getEndTime in interface IActivity

getPriority

public int getPriority()

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