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 TypeMethodDescriptionValidation errors to attach to the current Task, in the standard format used byDSResponse.errors: an Object where each property name is a field name of the Task's outputs and each value is the error information for that field.static TaskResultModificationsgetOrCreateRef(JavaScriptObject jsObj) Optional replacement for the Task's outputs.Additional declarative updates to apply tostatebefore routing.Validation errors to attach to the current Task, in the standard format used byDSResponse.errors: an Object where each property name is a field name of the Task's outputs and each value is the error information for that field.setOutputs(Map outputs) Optional replacement for the Task's outputs.setStateUpdates(Map stateUpdates) Additional declarative updates to apply tostatebefore 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
Validation errors to attach to the current Task, in the standard format used byDSResponse.errors: an Object where each property name is a field name of the Task's outputs and each value is the error information for that field.Returning
errorsrejects the outputs: nothing is committed tostateand the process does not advance. For a CoTTask, the errors are automatically fed back to the AI in the next prompt (introduced by the errorsPrimer) and the task is retried, up to CoTTask.maxRetries, so there is normally nothing further to do. SeeAIRetriesExhaustedfor what happens when retries run out.- Parameters:
errors- New errors value. Default value is null- Returns:
TaskResultModificationsinstance, for chaining setter calls
-
getErrors
Validation errors to attach to the current Task, in the standard format used byDSResponse.errors: an Object where each property name is a field name of the Task's outputs and each value is the error information for that field.Returning
errorsrejects the outputs: nothing is committed tostateand the process does not advance. For a CoTTask, the errors are automatically fed back to the AI in the next prompt (introduced by the errorsPrimer) and the task is retried, up to CoTTask.maxRetries, so there is normally nothing further to do. SeeAIRetriesExhaustedfor what happens when retries run out.- 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:
TaskResultModificationsinstance, 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
- Parameters:
stateUpdates- New stateUpdates value. Default value is null- Returns:
TaskResultModificationsinstance, for chaining setter calls
-
getStateUpdates
- Returns:
- Current stateUpdates value. Default value is null
-