public interface IBpmProcess
Modifier and Type | Field and Description |
---|---|
static int |
PROCESS_STATUS_CANCELLED
Process cancelled
|
static int |
PROCESS_STATUS_ENDED
Process successfully completed
|
static int |
PROCESS_STATUS_FAILED
Process failed
|
static int |
PROCESS_STATUS_RESUMED
Process Resumed
|
static int |
PROCESS_STATUS_STARTED
Process started and running
|
static int |
PROCESS_STATUS_SUSPENDED
Process suspended
|
static int |
PROCESS_STATUS_UNDEFINED
Process status underfined (for newly created processes)
|
Modifier and Type | Method and Description |
---|---|
void |
addError(String errorMessage,
String errorStackTrace,
String serviceName)
Adds error to this step
|
IBpmProcessStep |
addStep(String stepID)
Adds new step to the process instance
|
IBpmProcessTransition |
addTransition(String fromStepID,
String toStepID)
Adds transition for this process instance
|
void |
deleteStep(String stepID)
Deletes a step from process
|
String |
getCreatedBy()
Returns user who created a process
|
Date |
getCreatedDate()
Returns process creation date
|
List<IBpmProcessError> |
getErrors()
Returns list of errors attached to this step
|
String |
getID()
Returns unique ID for this process instance
|
String |
getLastModifiedBy()
Returns user who modified a process
|
Date |
getLastModifiedDate()
Returns process modification date
|
String |
getName()
Returns name for this process instance
|
String |
getParentProcessID()
Returns parent process instance ID (if set)
|
String |
getParentStepID()
Returns parent process stepID (if set)
|
IBpmProcessDefinition |
getProcessDefinition()
Returns process definition for this instance
|
int |
getStatus()
Returns status of this process instance
|
IBpmProcessStep |
getStep(String stepID)
Returns step by its ID or null if not found
|
List<IBpmProcessStep> |
getSteps()
Returns list of steps
|
List<IBpmProcessTransition> |
getTransitions()
Returns list of transitions
|
void |
setName(String name)
Sets name for this process instance
|
void |
setStatus(int status)
Sets status for process instance
|
static final int PROCESS_STATUS_UNDEFINED
static final int PROCESS_STATUS_STARTED
static final int PROCESS_STATUS_ENDED
static final int PROCESS_STATUS_FAILED
static final int PROCESS_STATUS_SUSPENDED
static final int PROCESS_STATUS_RESUMED
static final int PROCESS_STATUS_CANCELLED
IBpmProcessDefinition getProcessDefinition() throws Exception
Exception
String getID()
String getParentProcessID()
String getParentStepID()
Date getCreatedDate()
Date getLastModifiedDate()
String getCreatedBy()
String getLastModifiedBy()
String getName()
void setName(String name)
int getStatus()
void setStatus(int status)
IBpmProcessStep getStep(String stepID) throws Exception
stepID
- Exception
IBpmProcessStep addStep(String stepID) throws Exception
stepID
- Exception
void deleteStep(String stepID) throws Exception
stepID
- Exception
IBpmProcessTransition addTransition(String fromStepID, String toStepID) throws Exception
fromStepID
- toStepID
- Exception
List<IBpmProcessTransition> getTransitions() throws Exception
Exception
List<IBpmProcessStep> getSteps() throws Exception
Exception
List<IBpmProcessError> getErrors() throws Exception
Exception