Package com.webmethods.bpm.process
Interface IBpmProcess
public interface IBpmProcess
Represents Ad-hoc workflow process instance
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Process cancelledstatic final int
Process successfully completedstatic final int
Process failedstatic final int
Process Resumedstatic final int
Process started and runningstatic final int
Process suspendedstatic final int
Process status underfined (for newly created processes) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds error to this stepAdds new step to the process instanceaddTransition
(String fromStepID, String toStepID) Adds transition for this process instancevoid
deleteStep
(String stepID) Deletes a step from processReturns user who created a processReturns process creation dateReturns list of errors attached to this stepgetID()
Returns unique ID for this process instanceReturns user who modified a processReturns process modification dategetName()
Returns name for this process instanceReturns parent process instance ID (if set)Returns parent process stepID (if set)Returns process definition for this instanceint
Returns status of this process instanceReturns step by its ID or null if not foundgetSteps()
Returns list of stepsReturns list of transitionsvoid
Sets name for this process instancevoid
setStatus
(int status) Sets status for process instance
-
Field Details
-
PROCESS_STATUS_UNDEFINED
static final int PROCESS_STATUS_UNDEFINEDProcess status underfined (for newly created processes)- See Also:
-
PROCESS_STATUS_STARTED
static final int PROCESS_STATUS_STARTEDProcess started and running- See Also:
-
PROCESS_STATUS_ENDED
static final int PROCESS_STATUS_ENDEDProcess successfully completed- See Also:
-
PROCESS_STATUS_FAILED
static final int PROCESS_STATUS_FAILEDProcess failed- See Also:
-
PROCESS_STATUS_SUSPENDED
static final int PROCESS_STATUS_SUSPENDEDProcess suspended- See Also:
-
PROCESS_STATUS_RESUMED
static final int PROCESS_STATUS_RESUMEDProcess Resumed- See Also:
-
PROCESS_STATUS_CANCELLED
static final int PROCESS_STATUS_CANCELLEDProcess cancelled- See Also:
-
-
Method Details
-
getProcessDefinition
Returns process definition for this instance- Throws:
Exception
-
getID
String getID()Returns unique ID for this process instance -
getParentProcessID
String getParentProcessID()Returns parent process instance ID (if set) -
getParentStepID
String getParentStepID()Returns parent process stepID (if set) -
getCreatedDate
Date getCreatedDate()Returns process creation date -
getLastModifiedDate
Date getLastModifiedDate()Returns process modification date -
getCreatedBy
String getCreatedBy()Returns user who created a process -
getLastModifiedBy
String getLastModifiedBy()Returns user who modified a process -
getName
String getName()Returns name for this process instance -
setName
Sets name for this process instance -
getStatus
int getStatus()Returns status of this process instance -
setStatus
void setStatus(int status) Sets status for process instance -
getStep
Returns step by its ID or null if not found- Parameters:
stepID
-- Throws:
Exception
-
addStep
Adds new step to the process instance- Parameters:
stepID
-- Throws:
Exception
-
deleteStep
Deletes a step from process- Parameters:
stepID
-- Throws:
Exception
-
addTransition
Adds transition for this process instance- Parameters:
fromStepID
-toStepID
-- Throws:
Exception
-
getTransitions
Returns list of transitions- Throws:
Exception
-
getSteps
Returns list of steps- Throws:
Exception
-
getErrors
Returns list of errors attached to this step- Throws:
Exception
-
addError
Adds error to this step- Throws:
Exception
-