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
Result object for
Process.beforeTaskCommit()
.-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGlobal validation errors to attach to the current Task.static TaskResultModifications
getOrCreateRef
(JavaScriptObject jsObj) Optional replacement for the Task's outputs.Additional declarative updates to apply tostate
before routing.Global validation errors to attach to the current Task.setOutputs
(Map outputs) Optional replacement for the Task's outputs.setStateUpdates
(Map stateUpdates) Additional declarative updates to apply tostate
before routing.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
TaskResultModifications
public TaskResultModifications() -
TaskResultModifications
-
-
Method Details
-
getOrCreateRef
-
setErrors
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
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
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
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
Additional declarative updates to apply tostate
before routing. Keys use SetterPath semantics.- Parameters:
stateUpdates
- New stateUpdates value. Default value is null- Returns:
TaskResultModifications
instance, for chaining setter calls
-
getStateUpdates
Additional declarative updates to apply tostate
before routing. Keys use SetterPath semantics.- Returns:
- Current stateUpdates value. Default value is null
-