@StableMinor(version="12.5", sinceVersion="10.3") public interface IProcess extends Serializable
Modifier and Type | Method and Description |
---|---|
IStepOutcome |
executeNextStep()
Executes the next step of this process and returns the outcome.
|
String |
getId()
Returns the identifier of this process.
|
Integer |
getLastExecutedStep()
Returns the last executed step.
|
String |
getOwner()
Returns the owner of this process.
|
String |
getOwnerUser()
Returns the owner user identifier of this process.
|
ProcessState |
getState()
Returns the process state.
|
List<IStep> |
getSteps()
Returns an unmodifiable list of the steps.
|
String |
getTitle()
Returns the title of this process.
|
IStepOutcome |
ignoreNextStep()
Ignores the next step of this process.
|
void |
stop()
Stops the process.
|
boolean |
tryToExecuteUntilTheEnd()
Tries to execute the process until the end.
|
String getId()
String getTitle()
String getOwner()
String getOwnerUser()
IStepOutcome ignoreNextStep() throws PortalException
callback handler
, the
process completed
callback
will be invoked.MandatoryStepIgnoredException
- if the next step is a mandatory one.ProcessNotOwnedException
- if the process has been taken by other user.PortalException
- if other error occur.IStepOutcome executeNextStep() throws PortalException
StepOutcomeStatus.SUCCESS
this process (and all of it's steps)
will be removed.callback handler
, the
process completed
callback
will be invoked.ProcessNotOwnedException
- if the process has been taken by other user.PortalException
- if other error occur.void stop() throws PortalException
callback
handler
, the process
stopped callback
will be invoked.
It is possible that this process can not be stopped with proper cleanup and inconsistent states may happen. Do not use it unless you know what you are doing.
ProcessNotOwnedException
- if the process has been taken by other user.PortalException
- if other error occur.boolean tryToExecuteUntilTheEnd() throws PortalException, InterruptedException
callback handler
,
the process completed
callback
will be invoked.PortalException
InterruptedException
List<IStep> getSteps() throws PortalException
PortalException
Integer getLastExecutedStep() throws PortalException
PortalException
ProcessState getState()
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.