Class Task
java.lang.Object
com.smartgwt.client.core.BaseClass
com.smartgwt.client.util.workflow.ProcessElement
com.smartgwt.client.util.workflow.Task
- All Implemented Interfaces:
- HasHandlers
- Direct Known Subclasses:
- ScriptTask,- ServiceTask,- StateTask,- UserTask
A Task is an abstract superclass for 
Process and for all Task types that can
 be involved in a Process, such as a ServiceTask.- 
Field SummaryFields inherited from class com.smartgwt.client.core.BaseClassconfig, configOnly, factoryCreated, factoryProperties, id, scClassName
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate()Field in theprocess statewhich is provided as input data to this task.String[]List of multiple fields from theprocess statewhich are provided as input data to this task.static TaskgetOrCreateRef(JavaScriptObject jsObj) Special expression to write task output directly into aDataBoundComponent.Field in theprocess statewhere this task writes outputs.String[]List of multiple fields in theprocess statewhere this task will write outputs.setInputField(String inputField) Field in theprocess statewhich is provided as input data to this task.setInputFieldList(String... inputFieldList) List of multiple fields from theprocess statewhich are provided as input data to this task.setOutputExpression(String outputExpression) Special expression to write task output directly into aDataBoundComponent.setOutputField(String outputField) Field in theprocess statewhere this task writes outputs.setOutputFieldList(String... outputFieldList) List of multiple fields in theprocess statewhere this task will write outputs.Methods inherited from class com.smartgwt.client.util.workflow.ProcessElementcompleteElement, convertToJavaScriptArray, executeElement, getBindOutput, getClassDescription, getComponentReferences, getDescription, getDynamicValue, getEditorType, getElementDescription, getForceSingle, getID, getInvalidTaskMessage, getJsObj, getMockMode, getNextElement, getOrCreateJsObj, getPassThruOutput, getProcessElements, getSupportsMultipleInputRecords, getTextFormulaValue, getTypeTitle, getUndefinedComponentMessage, getUnresolvedComponentMessage, getWaitDuration, getWaitFor, getWaitLocator, isCreated, isValid, objectReferencesLastTaskOutput, onInit, reset, setAttribute, setBindOutput, setClassDescription, setDescription, setEditorType, setForceSingle, setID, setJavaScriptObject, setMockMode, setNextElement, setPassThruOutput, setSupportsMultipleInputRecords, setTypeTitle, setUndefinedComponentMessage, setUnresolvedComponentMessage, setWaitDuration, setWaitFor, setWaitLocator, updateGlobalIDInCriteria, updateGlobalIDInTextFormula, updateGlobalIDInValueProperty, updateGlobalIDInValues, updateGlobalIDReferences, updateLastElementBindingReferences, updateLastElementInCriteria, updateLastElementInValueProperty, updateLastElementInValuesMethods inherited from class com.smartgwt.client.core.BaseClassaddDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, asSGWTComponent, clearDynamicProperty, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getRef, getRuleScope, getScClassName, getTestInstance, hasAutoAssignedID, hasDynamicProperty, internalSetID, internalSetID, isConfigOnly, isFactoryCreated, onBind, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setFactoryCreated, setProperty, setProperty, setProperty, setProperty, setRuleScope, setScClassName
- 
Constructor Details- 
Taskpublic Task()
- 
Task
 
- 
- 
Method Details- 
getOrCreateRef
- 
create- Overrides:
- createin class- ProcessElement
 
- 
setInputFieldField in theprocess statewhich is provided as input data to this task. SeeTaskIO.- Parameters:
- inputField- New inputField value. Default value is null
- Returns:
- Taskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
- See Also:
 
- 
getInputFieldField in theprocess statewhich is provided as input data to this task. SeeTaskIO.- Returns:
- Current inputField value. Default value is null
- See Also:
 
- 
setInputFieldListList of multiple fields from theprocess statewhich are provided as input data to this task. SeeTaskIO.If inputFieldis also specified, it will be implicitly added to theinputFieldListif it is not already present.- Parameters:
- inputFieldList- New inputFieldList value. Default value is null
- Returns:
- Taskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
- See Also:
 
- 
getInputFieldListList of multiple fields from theprocess statewhich are provided as input data to this task. SeeTaskIO.If inputFieldis also specified, it will be implicitly added to theinputFieldListif it is not already present.- Returns:
- Current inputFieldList value. Default value is null
- See Also:
 
- 
setOutputExpressionSpecial expression to write task output directly into aDataBoundComponent. SeeTaskIO.- Parameters:
- outputExpression- New outputExpression value. Default value is null
- Returns:
- Taskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
- See Also:
 
- 
getOutputExpressionSpecial expression to write task output directly into aDataBoundComponent. SeeTaskIO.- Returns:
- Current outputExpression value. Default value is null
- See Also:
 
- 
setOutputFieldField in theprocess statewhere this task writes outputs. SeeTaskIO.- Parameters:
- outputField- New outputField value. Default value is null
- Returns:
- Taskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
- See Also:
 
- 
getOutputFieldField in theprocess statewhere this task writes outputs. SeeTaskIO.- Returns:
- Current outputField value. Default value is null
- See Also:
 
- 
setOutputFieldListList of multiple fields in theprocess statewhere this task will write outputs. SeeTaskIO.If outputFieldis also specified, it will be implicitly added to theoutputFieldListif it is not already present.- Parameters:
- outputFieldList- New outputFieldList value. Default value is null
- Returns:
- Taskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
- See Also:
 
- 
getOutputFieldListList of multiple fields in theprocess statewhere this task will write outputs. SeeTaskIO.If outputFieldis also specified, it will be implicitly added to theoutputFieldListif it is not already present.- Returns:
- Current outputFieldList value. Default value is null
- See Also:
 
 
-