com.smartgwt.client.util.workflow
Class Task

java.lang.Object
  extended by com.smartgwt.client.core.BaseClass
      extended by com.smartgwt.client.util.workflow.ProcessElement
          extended by com.smartgwt.client.util.workflow.Task
Direct Known Subclasses:
Process, 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.


Field Summary
 
Fields inherited from class com.smartgwt.client.core.BaseClass
config, id, scClassName
 
Constructor Summary
Task()
           
Task(JavaScriptObject jsObj)
           
 
Method Summary
 JavaScriptObject create()
           
 String getInputField()
          Field in the process state which is provided as input data to this task.
 String[] getInputFieldList()
          List of multiple fields from the process state which are provided as input data to this task.
static Task getOrCreateRef(JavaScriptObject jsObj)
           
 String getOutputField()
          Field in the process state which this task writes outputs to.
 String[] getOutputFieldList()
          List of multiple fields from the process state which this task will write to.
 void setInputField(String inputField)
          Field in the process state which is provided as input data to this task.
 void setInputFieldList(String... inputFieldList)
          List of multiple fields from the process state which are provided as input data to this task.
 void setOutputField(String outputField)
          Field in the process state which this task writes outputs to.
 void setOutputFieldList(String... outputFieldList)
          List of multiple fields from the process state which this task will write to.
 
Methods inherited from class com.smartgwt.client.util.workflow.ProcessElement
convertToJavaScriptArray, getID, getJsObj, getNextElement, getOrCreateJsObj, getProcessElements, isCreated, onInit, setAttribute, setID, setJavaScriptObject, setNextElement
 
Methods inherited from class com.smartgwt.client.core.BaseClass
asSGWTComponent, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getRef, getScClassName, hasAutoAssignedID, internalSetID, internalSetID, onBind, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setProperty, setProperty, setProperty, setProperty, setScClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Task

public Task()

Task

public Task(JavaScriptObject jsObj)
Method Detail

getOrCreateRef

public static Task getOrCreateRef(JavaScriptObject jsObj)

create

public JavaScriptObject create()
Overrides:
create in class ProcessElement

setInputField

public void setInputField(String inputField)
                   throws IllegalStateException
Field in the process state which is provided as input data to this task. See TaskIO.

Parameters:
inputField - Default value is null
Throws:
IllegalStateException - this property cannot be changed after the underlying component has been created

getInputField

public String getInputField()
Field in the process state which is provided as input data to this task. See TaskIO.

Returns:
String

setInputFieldList

public void 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 - Default value is null
Throws:
IllegalStateException - this property cannot be changed after the underlying component has been created

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:
String...

setOutputField

public void setOutputField(String outputField)
                    throws IllegalStateException
Field in the process state which this task writes outputs to. See TaskIO.

Parameters:
outputField - Default value is null
Throws:
IllegalStateException - this property cannot be changed after the underlying component has been created

getOutputField

public String getOutputField()
Field in the process state which this task writes outputs to. See TaskIO.

Returns:
String

setOutputFieldList

public void setOutputFieldList(String... outputFieldList)
                        throws IllegalStateException
List of multiple fields from the process state which this task will write to. See TaskIO.

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

Parameters:
outputFieldList - Default value is null
Throws:
IllegalStateException - this property cannot be changed after the underlying component has been created

getOutputFieldList

public String[] getOutputFieldList()
List of multiple fields from the process state which this task will write to. See TaskIO.

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

Returns:
String...