Class ProcessLauncher

    • Method Detail

      • getPublishedProcessKey

        public PublishedProcessKey getPublishedProcessKey()
        Returns the publication identifier associated to the workflow launcher.
        Since:
        5.7.1-fixN
      • setPriority

        public void setPriority​(Integer priority)
        Specifies the priority of the new workflow instance to be launched. Default priority is null.
      • isForegroundSubworkflow

        public boolean isForegroundSubworkflow()
        Indicates whether the sub-workflow is considered has a foreground sub-workflow.
        Since:
        6.0.0
      • setInputParameter

        public void setInputParameter​(String aName,
                                      String aValue)
        Initializes an input variable of the data context of the new workflow instance to be launched.
        Parameters:
        aName - name of a data context variable. This name must match an input variable of the data context of the workflow model or else an exception will be thrown at the workflow launch.
        See Also:
        launchProcess(), launchProcessWithResult()
      • getInputParameterString

        public String getInputParameterString​(String aName)
        Returns the value of the specified input parameter.
      • getInputParameterDefaultString

        public String getInputParameterDefaultString​(String aName)
        Returns the default value of the specified input parameter as defined in the workflow definition.
      • launchProcessWithResult

        public ProcessLauncherResult launchProcessWithResult()
                                                      throws OperationException
        Starts a new workflow instance. This method can be called several times. A new workflow instance will be created every time.

        This method is equivalent to launchProcess() but returns a ProcessLauncherResult. This allows the caller to retrieve the key of the created workflow instance and, if the synchronous mode is enabled ("automatically opens the first step"), the first created work item.

        The permissions will be checked if and only if the EBX® property ebx.manager.workflow.launcher.checkPermission.activated is set to true.

        Throws:
        IllegalArgumentException - if a specified input parameter name is not declared in the workflow definition's data context, or the corresponding variable is not declared as being an input parameter.
        IllegalStateException - if this method is called to launch a sub-workflow. Use SubWorkflowsCreationContext.launchSubWorkflows() instead.
        OperationException
        Since:
        5.5.1
        See Also:
        ProcessLauncherResult