Class Task

All Implemented Interfaces:
HasHandlers
Direct Known Subclasses:
ScriptTask, ServiceTask, StateTask, UserTask

public class Task extends ProcessElement
A Task is an abstract superclass for Process and for all Task types that can be involved in a Process, such as a ServiceTask.
  • Constructor Details

  • Method Details

    • getOrCreateRef

      public static Task getOrCreateRef(JavaScriptObject jsObj)
    • create

      public JavaScriptObject create()
      Overrides:
      create in class ProcessElement
    • setInputField

      public Task setInputField(String inputField) throws IllegalStateException
      Field in the process state which is provided as input data to this task. See TaskIO.
      Parameters:
      inputField - New inputField value. Default value is null
      Returns:
      Task instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the underlying component has been created
      See Also:
    • getInputField

      public String getInputField()
      Field in the process state which is provided as input data to this task. See TaskIO.
      Returns:
      Current inputField value. Default value is null
      See Also:
    • setInputFieldList

      public Task setInputFieldList(String... inputFieldList) throws IllegalStateException
      List of multiple fields from the process state which are provided as input data to this task. See TaskIO.

      If inputField is also specified, it will be implicitly added to the inputFieldList if it is not already present.

      Parameters:
      inputFieldList - New inputFieldList value. Default value is null
      Returns:
      Task instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the underlying component has been created
      See Also:
    • getInputFieldList

      public String[] getInputFieldList()
      List of multiple fields from the process state which are provided as input data to this task. See TaskIO.

      If inputField is also specified, it will be implicitly added to the inputFieldList if it is not already present.

      Returns:
      Current inputFieldList value. Default value is null
      See Also:
    • setOutputExpression

      public Task setOutputExpression(String outputExpression) throws IllegalStateException
      Special expression to write task output directly into a DataBoundComponent. See TaskIO.
      Parameters:
      outputExpression - New outputExpression value. Default value is null
      Returns:
      Task instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the underlying component has been created
      See Also:
    • getOutputExpression

      public String getOutputExpression()
      Special expression to write task output directly into a DataBoundComponent. See TaskIO.
      Returns:
      Current outputExpression value. Default value is null
      See Also:
    • setOutputField

      public Task setOutputField(String outputField) throws IllegalStateException
      Field in the process state where this task writes outputs. See TaskIO.
      Parameters:
      outputField - New outputField value. Default value is null
      Returns:
      Task instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the underlying component has been created
      See Also:
    • getOutputField

      public String getOutputField()
      Field in the process state where this task writes outputs. See TaskIO.
      Returns:
      Current outputField value. Default value is null
      See Also:
    • setOutputFieldList

      public Task setOutputFieldList(String... outputFieldList) throws IllegalStateException
      List of multiple fields in the process state where this task will write outputs. See TaskIO.

      If outputField is also specified, it will be implicitly added to the outputFieldList if it is not already present.

      Parameters:
      outputFieldList - New outputFieldList value. Default value is null
      Returns:
      Task instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the underlying component has been created
      See Also:
    • getOutputFieldList

      public String[] getOutputFieldList()
      List of multiple fields in the process state where this task will write outputs. See TaskIO.

      If outputField is also specified, it will be implicitly added to the outputFieldList if it is not already present.

      Returns:
      Current outputFieldList value. Default value is null
      See Also: