Class TaskResultModifications

java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.util.workflow.TaskResultModifications
All Implemented Interfaces:
HasHandlers

public class TaskResultModifications extends DataClass
Result object for Process.beforeTaskCommit().
  • Constructor Details

    • TaskResultModifications

      public TaskResultModifications()
    • TaskResultModifications

      public TaskResultModifications(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static TaskResultModifications getOrCreateRef(JavaScriptObject jsObj)
    • setErrors

      public TaskResultModifications setErrors(Map errors)
      Global validation errors to attach to the current Task. If provided, the engine treats this as a validation failure (without advancing), merges these errors into the Task's error record, and triggers the normal retry logic (e.g., CoTTask CoTTask.maxRetries). The structure may be a DataSource-style validation response or a simple Array of { field, message } objects.
      Parameters:
      errors - New errors value. Default value is null
      Returns:
      TaskResultModifications instance, for chaining setter calls
    • getErrors

      public Map getErrors()
      Global validation errors to attach to the current Task. If provided, the engine treats this as a validation failure (without advancing), merges these errors into the Task's error record, and triggers the normal retry logic (e.g., CoTTask CoTTask.maxRetries). The structure may be a DataSource-style validation response or a simple Array of { field, message } objects.
      Returns:
      Current errors value. Default value is null
    • setOutputs

      public TaskResultModifications setOutputs(Map outputs)
      Optional replacement for the Task's outputs. If provided, this replaces the outputs produced by the Task for the purposes of subsequent validation, state updates, history, and routing.
      Parameters:
      outputs - New outputs value. Default value is null
      Returns:
      TaskResultModifications instance, for chaining setter calls
    • getOutputs

      public Map getOutputs()
      Optional replacement for the Task's outputs. If provided, this replaces the outputs produced by the Task for the purposes of subsequent validation, state updates, history, and routing.
      Returns:
      Current outputs value. Default value is null
    • setStateUpdates

      public TaskResultModifications setStateUpdates(Map stateUpdates)
      Additional declarative updates to apply to state before routing. Keys use SetterPath semantics.
      Parameters:
      stateUpdates - New stateUpdates value. Default value is null
      Returns:
      TaskResultModifications instance, for chaining setter calls
    • getStateUpdates

      public Map getStateUpdates()
      Additional declarative updates to apply to state before routing. Keys use SetterPath semantics.
      Returns:
      Current stateUpdates value. Default value is null