public class Process extends Object implements Serializable, IProcess
Modifier and Type | Method and Description |
---|---|
IStepOutcome |
executeNextStep()
Executes the next step of this process and returns the outcome.
|
Date |
getCreationDate()
Returns the creationDate.
|
String |
getId()
Returns the identifier of this process.
|
Integer |
getLastExecutedStep()
Returns the last executed step.
|
Date |
getLastExecutedStepDate()
Returns the lastExecutedStepDate.
|
IStep |
getNextStep()
Returns the next step to be executed.
|
String |
getOwner()
Returns the owner of this process.
|
String |
getOwnerUser()
Returns the owner user identifier of this process.
|
IProcessCallbackHandler |
getProcessCallbackHandler()
Converts the Process Callback Handler from bytes to object and returns it.
|
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.
|
public IStepOutcome executeNextStep() throws PortalException
IProcess
StepOutcomeStatus.SUCCESS
this process (and all of it's steps)
will be removed.callback handler
, the
process completed
callback
will be invoked.executeNextStep
in interface IProcess
ProcessNotOwnedException
- if the process has been taken by other user.PortalException
- if other error occur.public IStepOutcome ignoreNextStep() throws PortalException
IProcess
callback handler
, the
process completed
callback
will be invoked.ignoreNextStep
in interface IProcess
MandatoryStepIgnoredException
- if the next step is a mandatory one.ProcessNotOwnedException
- if the process has been taken by other user.PortalException
- if other error occur.public boolean tryToExecuteUntilTheEnd() throws PortalException, InterruptedException
IProcess
callback handler
,
the process completed
callback
will be invoked.tryToExecuteUntilTheEnd
in interface IProcess
PortalException
InterruptedException
public Date getLastExecutedStepDate()
public Date getCreationDate()
public String getTitle()
IProcess
public String getId()
public IStep getNextStep()
null
will be returned.public String getOwnerUser()
IProcess
getOwnerUser
in interface IProcess
public String getOwner()
IProcess
public List<IStep> getSteps()
IProcess
public ProcessState getState()
IProcess
public Integer getLastExecutedStep() throws PortalException
IProcess
getLastExecutedStep
in interface IProcess
PortalException
public void stop() throws PortalException
IProcess
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.
stop
in interface IProcess
ProcessNotOwnedException
- if the process has been taken by other user.PortalException
- if other error occur.public IProcessCallbackHandler getProcessCallbackHandler() throws PortalException
PortalException
- if any error occurs during the process.LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.