Class StartProcessTask

All Implemented Interfaces:
HasHandlers

public class StartProcessTask extends ScriptTask
Task that executes another Process inside the current one. A process cannot be embedded within another process as a normal task element. Instead, a StartProcessTask is used to provide the input state, execute the inner process, then write the output back into the calling process state.
  • Constructor Details

    • StartProcessTask

      public StartProcessTask()
    • StartProcessTask

      public StartProcessTask(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static StartProcessTask getOrCreateRef(JavaScriptObject jsObj)
    • create

      public JavaScriptObject create()
      Overrides:
      create in class ScriptTask
    • setProcess

      public StartProcessTask setProcess(Process process)
      The Process to be run by this task. Input state is created from inputFieldList and container process state is updated from the inner process state using outputFieldList.

      This property can be an instance of the target process or an ID. For an ID, the process will be looked up in your screen if this task is part of one and, otherwise, it will be looked up globally via Process.getProcess().

      Parameters:
      process - New process value. Default value is null
      Returns:
      StartProcessTask instance, for chaining setter calls
    • getProcess

      public Process getProcess()
      The Process to be run by this task. Input state is created from inputFieldList and container process state is updated from the inner process state using outputFieldList.

      This property can be an instance of the target process or an ID. For an ID, the process will be looked up in your screen if this task is part of one and, otherwise, it will be looked up globally via Process.getProcess().

      Overrides:
      getProcess in class ScriptTask
      Returns:
      Current process value. Default value is null
    • setProcess

      public StartProcessTask setProcess(String process)
      The Process to be run by this task. Input state is created from inputFieldList and container process state is updated from the inner process state using outputFieldList.

      This property can be an instance of the target process or an ID. For an ID, the process will be looked up in your screen if this task is part of one and, otherwise, it will be looked up globally via Process.getProcess().

      Parameters:
      process - New process value. Default value is null
      Returns:
      StartProcessTask instance, for chaining setter calls
    • getProcessAsString

      public String getProcessAsString()
      The Process to be run by this task. Input state is created from inputFieldList and container process state is updated from the inner process state using outputFieldList.

      This property can be an instance of the target process or an ID. For an ID, the process will be looked up in your screen if this task is part of one and, otherwise, it will be looked up globally via Process.getProcess().

      Returns:
      Current process value. Default value is null