Package org.bonitasoft.engine.command
Class MultipleStartPointsProcessCommand
java.lang.Object
org.bonitasoft.engine.command.RuntimeCommand
org.bonitasoft.engine.command.AbstractStartProcessCommand
org.bonitasoft.engine.command.MultipleStartPointsProcessCommand
- All Implemented Interfaces:
Command<ServiceAccessor>
This command starts the process in the specified activity(ies). Connectors on process start will be executed.
It can be executed using the 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<String, Serializable>) 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
FieldsFields inherited from class org.bonitasoft.engine.command.AbstractStartProcessCommand
CONTEXT, OPERATIONS, PROCESS_CONTRACT_INPUTS, PROCESS_DEFINITION_ID, STARTED_BY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.bonitasoft.engine.command.AbstractStartProcessCommand
executeMethods inherited from class org.bonitasoft.engine.command.RuntimeCommand
getIntegerMandatoryParameter, getLongMandatoryParameter, getMandatoryParameter, getMandatoryParameter, getMapMandatoryParameter, getParameter, getParameter, getParameter, getStringMandatoryParameter
-
Field Details
-
ACTIVITY_NAMES
- See Also:
-
-
Constructor Details
-
MultipleStartPointsProcessCommand
public MultipleStartPointsProcessCommand()
-
-
Method Details
-
getActivityNames
protected List<String> getActivityNames(Map<String, Serializable> parameters) throws SCommandParameterizationException- Specified by:
getActivityNamesin classAbstractStartProcessCommand- Throws:
SCommandParameterizationException
-