public abstract class AbstractStartProcessCommand extends CommandWithParameters
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTEXT |
static java.lang.String |
OPERATIONS |
static java.lang.String |
PROCESS_CONTRACT_INPUTS |
static java.lang.String |
PROCESS_DEFINITION_ID |
static java.lang.String |
STARTED_BY |
| Constructor and Description |
|---|
AbstractStartProcessCommand() |
| Modifier and Type | Method and Description |
|---|---|
java.io.Serializable |
execute(java.util.Map<java.lang.String,java.io.Serializable> parameters,
TenantServiceAccessor serviceAccessor)
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 abstract java.util.List<java.lang.String> |
getActivityNames(java.util.Map<java.lang.String,java.io.Serializable> parameters) |
getIntegerMandadoryParameter, getLongMandadoryParameter, getMandatoryParameter, getParameter, getParameter, getStringMandadoryParameterpublic static final java.lang.String STARTED_BY
public static final java.lang.String PROCESS_DEFINITION_ID
public static final java.lang.String OPERATIONS
public static final java.lang.String CONTEXT
public static final java.lang.String PROCESS_CONTRACT_INPUTS
public java.io.Serializable execute(java.util.Map<java.lang.String,java.io.Serializable> parameters,
TenantServiceAccessor serviceAccessor)
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
commandserviceAccessor - 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 abstract java.util.List<java.lang.String> getActivityNames(java.util.Map<java.lang.String,java.io.Serializable> parameters)
throws SCommandParameterizationException