org.jwarp.flow.process
Interface IProcess

All Superinterfaces:
IWorkflowObject
All Known Subinterfaces:
IWorkflow
All Known Implementing Classes:
Process

public interface IProcess
extends IWorkflowObject


Field Summary
static int STATUS_BLOCKED
          Constant indicating that this transition can not fire.
static int STATUS_COMPLETED
          Constant indicating that the transition has fired successfully.
static int STATUS_COMPLETED_ERROR
           
static int STATUS_CREATED
          Constant indicating that this transition is not yet initialised.
static int STATUS_RUNNING
          Constant indicating that the transitions is firing, that means executing.
static int STATUS_SUSPENDED
          Constant indicating that the transition is ready to fire, but was not activated yet for execution.
 
Method Summary
 void abort(IWorkflowContext context)
          Abort the process instance.
 java.util.Iterator getActivities()
          Returns all the started activities.
 java.util.Date getCreationTime()
           
 java.util.Date getEndTime()
           
 int getPriority()
           
 java.util.Date getStartTime()
           
 int getStatus()
          Returns the current status of the process instance.
 void start(IWorkflowContext context)
          Start the process instance.
 
Methods inherited from interface org.jwarp.flow.IWorkflowObject
getDescription, getID, getName
 

Field Detail

STATUS_CREATED

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

STATUS_BLOCKED

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

STATUS_SUSPENDED

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

STATUS_RUNNING

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

STATUS_COMPLETED

public static final int STATUS_COMPLETED
Constant indicating that the transition has fired successfully.

STATUS_COMPLETED_ERROR

public static final int STATUS_COMPLETED_ERROR
Method Detail

getStatus

public int getStatus()
Returns the current status of the process instance.
Returns:
the status

getActivities

public java.util.Iterator getActivities()
Returns all the started activities.
Returns:
the started activities

start

public void start(IWorkflowContext context)
           throws ProcessInitException,
                  ProcessException,
                  java.lang.SecurityException
Start the process instance.
Parameters:
The - workflow context.

abort

public void abort(IWorkflowContext context)
           throws ProcessException,
                  java.lang.SecurityException
Abort the process instance.
Parameters:
The - workflow context.

getPriority

public int getPriority()

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