public class ExecuteActionsAndTerminateTask extends ExecuteActionsBaseEntry
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVITY_INSTANCE_ID_KEY |
static 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(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long executerUserId,
long executerSubstituteUserId) |
Serializable |
execute(Map<String,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(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long executerUserId) |
protected Long |
getActivityInstanceId(Map<String,Serializable> parameters) |
protected Long |
getExecuteByUserId(Map<String,Serializable> parameters) |
protected List<Operation> |
getOperations(Map<String,Serializable> parameters) |
protected Map<String,Serializable> |
getOperationsContext(Map<String,Serializable> parameters) |
protected void |
updateActivityInstanceVariables(List<Operation> operations,
Map<String,Serializable> operationsContext,
long activityInstanceId,
Long processDefinitionID) |
getTenantAccessor, getTenantId, loggetIntegerMandadoryParameter, getLongMandadoryParameter, getMandatoryParameter, getParameter, getParameter, getStringMandadoryParameterpublic static final String ACTIVITY_INSTANCE_ID_KEY
public static final String USER_ID_KEY
public Serializable execute(Map<String,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 Long getExecuteByUserId(Map<String,Serializable> parameters)
protected Long getActivityInstanceId(Map<String,Serializable> parameters) throws SCommandParameterizationException
protected List<Operation> getOperations(Map<String,Serializable> parameters) throws SCommandParameterizationException
protected Map<String,Serializable> getOperationsContext(Map<String,Serializable> parameters) throws SCommandParameterizationException
protected void updateActivityInstanceVariables(List<Operation> operations, Map<String,Serializable> operationsContext, long activityInstanceId, Long processDefinitionID) throws org.bonitasoft.engine.core.operation.exception.SOperationExecutionException
org.bonitasoft.engine.core.operation.exception.SOperationExecutionExceptionprotected void executeActivity(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long executerUserId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeExecutionException
org.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeReadExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SFlowNodeExecutionExceptionprotected void addSystemCommentOnProcessInstanceWhenExecutingTaskFor(org.bonitasoft.engine.core.process.instance.model.SFlowNodeInstance flowNodeInstance,
long executerUserId,
long executerSubstituteUserId)
Copyright © 2016 Bonitasoft S.A.. All rights reserved.