Package org.bonitasoft.engine.command
Class AbstractStartProcessCommand
- java.lang.Object
-
- org.bonitasoft.engine.command.TenantCommand
-
- org.bonitasoft.engine.command.system.CommandWithParameters
-
- org.bonitasoft.engine.command.AbstractStartProcessCommand
-
- All Implemented Interfaces:
Command<TenantServiceAccessor>
- Direct Known Subclasses:
AdvancedStartProcessCommand,MultipleStartPointsProcessCommand
public abstract class AbstractStartProcessCommand extends CommandWithParameters
- Author:
- Elias Ricken de Medeiros
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTEXTstatic java.lang.StringOPERATIONSstatic java.lang.StringPROCESS_CONTRACT_INPUTSstatic java.lang.StringPROCESS_DEFINITION_IDstatic java.lang.StringSTARTED_BY
-
Constructor Summary
Constructors Constructor Description AbstractStartProcessCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.io.Serializableexecute(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 callsCommandAPI.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)-
Methods inherited from class org.bonitasoft.engine.command.system.CommandWithParameters
getIntegerMandadoryParameter, getLongMandadoryParameter, getMandatoryParameter, getParameter, getParameter, getStringMandadoryParameter
-
-
-
-
Field Detail
-
STARTED_BY
public static final java.lang.String STARTED_BY
- See Also:
- Constant Field Values
-
PROCESS_DEFINITION_ID
public static final java.lang.String PROCESS_DEFINITION_ID
- See Also:
- Constant Field Values
-
OPERATIONS
public static final java.lang.String OPERATIONS
- See Also:
- Constant Field Values
-
CONTEXT
public static final java.lang.String CONTEXT
- See Also:
- Constant Field Values
-
PROCESS_CONTRACT_INPUTS
public static final java.lang.String PROCESS_CONTRACT_INPUTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public java.io.Serializable execute(java.util.Map<java.lang.String,java.io.Serializable> parameters, TenantServiceAccessor serviceAccessor) throws SCommandParameterizationException, SCommandExecutionExceptionDescription copied from interface:CommandMethod that is called by the engine on the server side when the client callsCommandAPI.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 side- Parameters:
parameters- 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 services- Returns:
- a result that will be returned to the client
- Throws:
SCommandParameterizationException- can be thrown if insufficient or wrong parameters are given by the clientSCommandExecutionException- can be thrown when something unexpected happens while executing the command
-
getActivityNames
protected abstract java.util.List<java.lang.String> getActivityNames(java.util.Map<java.lang.String,java.io.Serializable> parameters) throws SCommandParameterizationException
-
-