Package org.bonitasoft.engine.command
Class MultipleStartPointsProcessCommand
- java.lang.Object
-
- org.bonitasoft.engine.command.TenantCommand
-
- org.bonitasoft.engine.command.system.CommandWithParameters
-
- org.bonitasoft.engine.command.AbstractStartProcessCommand
-
- org.bonitasoft.engine.command.MultipleStartPointsProcessCommand
-
- All Implemented Interfaces:
Command<TenantServiceAccessor>
public class MultipleStartPointsProcessCommand extends AbstractStartProcessCommand
This command starts the process in the specified activity(ies). Connectors on process start will be executed.It can be executed using the
Parameters:CommandAPI.execute(String, java.util.Map). Example:commandAPI.execute("multipleStartPointsProcessCommand", parameters)- started_by: the user id (long) is used as the process starter. It's a mandatory parameter.
- process_definition_id: the process definition id (long) identifies the process to start. It's a mandatory parameter.
- activity_names: list of activity names (ArrayList
) defining where the process will start the execution. It's a mandatory parameter. - operations: the operations (ArrayList
) are executed when the process starts (set variables and documents). It's an optional parameter. - context: the context (HashMap
) is used during operations execution. It's an optional parameter.
Use this command carefully: note that no validation will be done concerning the start points coherence.
- Since:
- 6.5.0
- Author:
- Elias Ricken de Medeiros
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACTIVITY_NAMES-
Fields inherited from class org.bonitasoft.engine.command.AbstractStartProcessCommand
CONTEXT, OPERATIONS, PROCESS_CONTRACT_INPUTS, PROCESS_DEFINITION_ID, STARTED_BY
-
-
Constructor Summary
Constructors Constructor Description MultipleStartPointsProcessCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.AbstractStartProcessCommand
execute
-
Methods inherited from class org.bonitasoft.engine.command.system.CommandWithParameters
getIntegerMandadoryParameter, getLongMandadoryParameter, getMandatoryParameter, getParameter, getParameter, getStringMandadoryParameter
-
-
-
-
Field Detail
-
ACTIVITY_NAMES
public static final java.lang.String ACTIVITY_NAMES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActivityNames
protected java.util.List<java.lang.String> getActivityNames(java.util.Map<java.lang.String,java.io.Serializable> parameters) throws SCommandParameterizationException- Specified by:
getActivityNamesin classAbstractStartProcessCommand- Throws:
SCommandParameterizationException
-
-