Class AdvancedStartProcessCommand

All Implemented Interfaces:
Command<ServiceAccessor>

public class AdvancedStartProcessCommand extends AbstractStartProcessCommand
This command starts the process in the specified activity (if you need to specify several activities as start points, please, use MultipleStartPointsProcessCommand). Connectors on process start will be executed.

It can be executed using the CommandAPI.execute(String, java.util.Map). Example: commandAPI.execute("advancedStartProcessCommand", parameters)

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_name: the name of the activity (String) 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.
Limitations:
  • It is not possible to start the execution of a process from a gateway, a boundary event or an event sub-process
  • The process must be started when there is only one active branch. Otherwise use MultipleStartPointsProcessCommand
Example: start -> step1 -> gateway1 -> (step2 || step3) -> gateway2 -> step4 -> end
  • Ok: start from "start" or "step1" or "step4" or "end"
  • All other start points are invalid.
Author:
Vincent Elcrin
See Also: