public class ExecuteActionsAndTerminateTask extends ExecuteActionsBaseEntry
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTIVITY_INSTANCE_ID_KEY |
static java.lang.String |
USER_ID_KEY |
CONNECTORS_LIST_KEY, OPERATIONS_INPUT_KEY, OPERATIONS_LIST_KEY, PROCESS_DEFINITION_ID_KEY| Constructor and Description |
|---|
ExecuteActionsAndTerminateTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSystemCommentOnProcessInstanceWhenExecutingTaskFor(SFlowNodeInstance flowNodeInstance,
long executerUserId,
long executerSubstituteUserId) |
java.io.Serializable |
execute(java.util.Map<java.lang.String,java.io.Serializable> parameters,
TenantServiceAccessor tenantAccessor)
Method that is called by the engine on the server side when the client calls
CommandAPI.execute(String, Map) with the name or id of this
command. |
protected void |
executeActivity(SFlowNodeInstance flowNodeInstance,
long executerUserId) |
protected java.lang.Long |
getActivityInstanceId(java.util.Map<java.lang.String,java.io.Serializable> parameters) |
protected java.lang.Long |
getExecuteByUserId(java.util.Map<java.lang.String,java.io.Serializable> parameters) |
protected java.util.List<org.bonitasoft.engine.operation.Operation> |
getOperations(java.util.Map<java.lang.String,java.io.Serializable> parameters) |
protected java.util.Map<java.lang.String,java.io.Serializable> |
getOperationsContext(java.util.Map<java.lang.String,java.io.Serializable> parameters) |
protected void |
updateActivityInstanceVariables(java.util.List<org.bonitasoft.engine.operation.Operation> operations,
java.util.Map<java.lang.String,java.io.Serializable> operationsContext,
long activityInstanceId,
java.lang.Long processDefinitionID) |
getTenantAccessor, getTenantId, loggetIntegerMandadoryParameter, getLongMandadoryParameter, getMandatoryParameter, getParameter, getParameter, getStringMandadoryParameterpublic static final java.lang.String ACTIVITY_INSTANCE_ID_KEY
public static final java.lang.String USER_ID_KEY
public java.io.Serializable execute(java.util.Map<java.lang.String,java.io.Serializable> parameters,
TenantServiceAccessor tenantAccessor)
throws SCommandParameterizationException,
SCommandExecutionException
CommandCommandAPI.execute(String, Map) with the name or id of this
command.
Implementors of commands must put here the code to be executed on the server sideparameters - a map of parameters that can be used by the command and that is given by the client when executing the
commandtenantAccessor - the TenantServiceAccessor or PlatformServiceAccessor that provides access to the engine's server-side
servicesSCommandParameterizationException - can be thrown if insufficient or wrong parameters are given by the clientSCommandExecutionException - can be thrown when something unexpected happens while executing the commandprotected java.lang.Long getExecuteByUserId(java.util.Map<java.lang.String,java.io.Serializable> parameters)
protected java.lang.Long getActivityInstanceId(java.util.Map<java.lang.String,java.io.Serializable> parameters)
throws SCommandParameterizationException
protected java.util.List<org.bonitasoft.engine.operation.Operation> getOperations(java.util.Map<java.lang.String,java.io.Serializable> parameters)
throws SCommandParameterizationException
protected java.util.Map<java.lang.String,java.io.Serializable> getOperationsContext(java.util.Map<java.lang.String,java.io.Serializable> parameters)
throws SCommandParameterizationException
protected void updateActivityInstanceVariables(java.util.List<org.bonitasoft.engine.operation.Operation> operations,
java.util.Map<java.lang.String,java.io.Serializable> operationsContext,
long activityInstanceId,
java.lang.Long processDefinitionID)
throws SOperationExecutionException
SOperationExecutionExceptionprotected void executeActivity(SFlowNodeInstance flowNodeInstance, long executerUserId) throws SFlowNodeReadException, SFlowNodeExecutionException
protected void addSystemCommentOnProcessInstanceWhenExecutingTaskFor(SFlowNodeInstance flowNodeInstance, long executerUserId, long executerSubstituteUserId)