public class CompletingActivityStateImpl extends OnFinishConnectorState
| Modifier and Type | Field and Description |
|---|---|
protected StateBehaviors |
stateBehaviors |
ID_ACTIVITY_EXECUTING, ID_ACTIVITY_FAILED, ID_ACTIVITY_READY| Constructor and Description |
|---|
CompletingActivityStateImpl(StateBehaviors stateBehaviors) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConnectors(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance) |
protected void |
beforeConnectors(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance) |
int |
getId() |
java.lang.String |
getName() |
SStateCategory |
getStateCategory()
Get the state's category
|
java.lang.String |
getSystemComment(SFlowNodeInstance flowNodeInstance)
Add a system comment "User XYZ has XYZ(state change) task XYZ(task name)"
|
boolean |
hit(SProcessDefinition processDefinition,
SFlowNodeInstance parentInstance,
SFlowNodeInstance childInstance)
Called when a children of the flow node parentInstance finish
|
boolean |
isInterrupting() |
boolean |
isStable() |
boolean |
isTerminal()
Checks whether the state is a terminal one.
|
boolean |
mustAddSystemComment(SFlowNodeInstance flowNodeInstance)
Return true if flowNodeInstance instance of SHumanTaskInstance
|
boolean |
shouldExecuteState(SProcessDefinition processDefinition,
SFlowNodeInstance flowNodeInstance) |
getConnectorEventexecuteprotected final StateBehaviors stateBehaviors
public CompletingActivityStateImpl(StateBehaviors stateBehaviors)
public int getId()
public java.lang.String getName()
public boolean isInterrupting()
public boolean isStable()
public boolean isTerminal()
Statepublic boolean hit(SProcessDefinition processDefinition, SFlowNodeInstance parentInstance, SFlowNodeInstance childInstance)
Statepublic boolean shouldExecuteState(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance)
public SStateCategory getStateCategory()
Statepublic boolean mustAddSystemComment(SFlowNodeInstance flowNodeInstance)
FlowNodeStatepublic java.lang.String getSystemComment(SFlowNodeInstance flowNodeInstance)
FlowNodeStateprotected void afterConnectors(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityStateExecutionException
afterConnectors in class OnEnterOrOnFinishConnectorStateSActivityStateExecutionExceptionprotected void beforeConnectors(SProcessDefinition processDefinition, SFlowNodeInstance flowNodeInstance) throws SActivityStateExecutionException
beforeConnectors in class OnEnterOrOnFinishConnectorStateSActivityStateExecutionException