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
|
|
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. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.
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 startedActivityException - 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()