Package com.webmethods.bpm.process
Interface IBpmProcessStep
public interface IBpmProcessStep
Interface which represents process instance step
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Process cancelledstatic final int
Step successfully completedstatic final int
Step failedstatic final int
Process Resumedstatic final int
Step was startedstatic final int
Process suspendedstatic final int
Step status is undefined (for newly added steps) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds error to this stepvoid
addTaskUser
(String taskUser) Adds a task user for this stepReturns custom fields for this stepDate/time when this step was endedReturns list of errors attached to this stepgetName()
Returns step nameReturns process instance for this stepDate/time when this step was startedint
Returns status of this stepReturns step definition for this stepReturns this stepIDReturns taskID for this stepReturns task status for this stepReturns taskTypeID for this stepReturns list of all task users for this stepvoid
removeTaskUser
(String taskUser) Removes task user from this stepvoid
Sets step namevoid
setStatus
(int status) Sets status of this stepvoid
Sets taskID for this stepvoid
setTaskStatus
(String taskStatus) Sets task status for this stepvoid
setTaskTypeID
(String taskTypeID) Sets taskTypeID for this step
-
Field Details
-
STEP_STATUS_UNDEFINED
static final int STEP_STATUS_UNDEFINEDStep status is undefined (for newly added steps)- See Also:
-
STEP_STATUS_STARTED
static final int STEP_STATUS_STARTEDStep was started- See Also:
-
STEP_STATUS_ENDED
static final int STEP_STATUS_ENDEDStep successfully completed- See Also:
-
STEP_STATUS_FAILED
static final int STEP_STATUS_FAILEDStep failed- See Also:
-
STEP_STATUS_SUSPENDED
static final int STEP_STATUS_SUSPENDEDProcess suspended- See Also:
-
STEP_STATUS_RESUMED
static final int STEP_STATUS_RESUMEDProcess Resumed- See Also:
-
STEP_STATUS_CANCELLED
static final int STEP_STATUS_CANCELLEDProcess cancelled- See Also:
-
-
Method Details
-
getProcess
IBpmProcess getProcess()Returns process instance for this step -
getStepDefinition
Returns step definition for this step- Throws:
Exception
-
getStepID
Returns this stepID- Throws:
Exception
-
getStartDate
Date/time when this step was started- Throws:
Exception
-
getEndDate
Date/time when this step was ended- Throws:
Exception
-
getStatus
int getStatus()Returns status of this step -
setStatus
void setStatus(int status) Sets status of this step- Parameters:
status
-
-
getName
String getName()Returns step name -
setName
Sets step name -
getTaskID
String getTaskID()Returns taskID for this step -
setTaskID
Sets taskID for this step- Parameters:
taskID
-
-
getTaskStatus
String getTaskStatus()Returns task status for this step -
setTaskStatus
Sets task status for this step- Parameters:
taskStatus
-
-
getTaskTypeID
String getTaskTypeID()Returns taskTypeID for this step -
setTaskTypeID
Sets taskTypeID for this step- Parameters:
taskTypeID
-
-
getTaskUsers
Returns list of all task users for this step- Returns:
-
addTaskUser
Adds a task user for this step- Parameters:
taskUser
-
-
removeTaskUser
Removes task user from this step- Parameters:
taskUser
-
-
getCustomFields
IBpmProcessCustomFields getCustomFields()Returns custom fields for this step -
getErrors
Returns list of errors attached to this step- Throws:
Exception
-
addError
Adds error to this step- Throws:
Exception
-