public class ComponentTask extends ProcessElement
Note: This task is not for direct use - use one of the subclasses instead.
config, configOnly, factoryCreated, factoryProperties, id, scClassName
Constructor and Description |
---|
ComponentTask() |
ComponentTask(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.core.client.JavaScriptObject |
create() |
java.lang.String |
getComponentBaseClass()
Base class of components that this task targets.
|
java.lang.String[] |
getComponentBaseClassAsStringArray()
Base class of components that this task targets.
|
java.lang.String |
getComponentId()
ID of component targeted by this task.
|
java.lang.Boolean |
getComponentRequiresDataSource()
Must target components of this task have a DataSource?
|
static ComponentTask |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.String |
getTargetBaseClass()
Base class of components and any required or optional scope that this task targets.
|
java.lang.String[] |
getTargetBaseClassAsStringArray()
Base class of components and any required or optional scope that this task targets.
|
void |
getTargetComponent(Process process)
Returns the actual component specified by
componentId for this task. |
void |
getTargetComponent(Process process,
java.lang.Boolean skipValidation)
Returns the actual component specified by
componentId for this task. |
java.lang.String |
getUnsupportedComponentMessage()
The default message to be reported with
getInvalidTaskMessage() when a target component type is not supported for the task. |
ComponentTask |
setComponentBaseClass(java.lang.String... componentBaseClass)
Base class of components that this task targets.
|
ComponentTask |
setComponentBaseClass(java.lang.String componentBaseClass)
Base class of components that this task targets.
|
ComponentTask |
setComponentId(java.lang.String componentId)
ID of component targeted by this task.
|
ComponentTask |
setComponentRequiresDataSource(java.lang.Boolean componentRequiresDataSource)
Must target components of this task have a DataSource?
|
ComponentTask |
setTargetBaseClass(java.lang.String... targetBaseClass)
Base class of components and any required or optional scope that this task targets.
|
ComponentTask |
setTargetBaseClass(java.lang.String targetBaseClass)
Base class of components and any required or optional scope that this task targets.
|
ComponentTask |
setUnsupportedComponentMessage(java.lang.String unsupportedComponentMessage)
The default message to be reported with
getInvalidTaskMessage() when a target component type is not supported for the task. |
completeElement, 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, updateLastElementInValues
addDynamicProperty, 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
public ComponentTask()
public ComponentTask(com.google.gwt.core.client.JavaScriptObject jsObj)
public static ComponentTask getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public com.google.gwt.core.client.JavaScriptObject create()
create
in class ProcessElement
public ComponentTask setComponentBaseClass(java.lang.String componentBaseClass) throws java.lang.IllegalStateException
componentId
must be an instance of one of the classes.componentBaseClass
- New componentBaseClass value. Default value is nullComponentTask
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.String getComponentBaseClass()
componentId
must be an instance of one of the classes.public ComponentTask setComponentBaseClass(java.lang.String... componentBaseClass) throws java.lang.IllegalStateException
componentId
must be an instance of one of the classes.componentBaseClass
- New componentBaseClass value. Default value is nullComponentTask
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.String[] getComponentBaseClassAsStringArray()
componentId
must be an instance of one of the classes.public ComponentTask setComponentId(java.lang.String componentId) throws java.lang.IllegalStateException
componentId
- New componentId value. Default value is nullComponentTask
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdGlobalId
public java.lang.String getComponentId()
GlobalId
public ComponentTask setComponentRequiresDataSource(java.lang.Boolean componentRequiresDataSource) throws java.lang.IllegalStateException
componentRequiresDataSource
- New componentRequiresDataSource value. Default value is nullComponentTask
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.Boolean getComponentRequiresDataSource()
public ComponentTask setTargetBaseClass(java.lang.String targetBaseClass) throws java.lang.IllegalStateException
componentId
may not be an instance itself but when
combined with the additional scope (targetFieldName, targetSectionName, ...) the actual target must be an instance of
one of the classes. This can be used by an editor to limit or verify the user's selection.
targetBaseClass
- New targetBaseClass value. Default value is nullComponentTask
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.String getTargetBaseClass()
componentId
may not be an instance itself but when
combined with the additional scope (targetFieldName, targetSectionName, ...) the actual target must be an instance of
one of the classes. This can be used by an editor to limit or verify the user's selection.
public ComponentTask setTargetBaseClass(java.lang.String... targetBaseClass) throws java.lang.IllegalStateException
componentId
may not be an instance itself but when
combined with the additional scope (targetFieldName, targetSectionName, ...) the actual target must be an instance of
one of the classes. This can be used by an editor to limit or verify the user's selection.
targetBaseClass
- New targetBaseClass value. Default value is nullComponentTask
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.String[] getTargetBaseClassAsStringArray()
componentId
may not be an instance itself but when
combined with the additional scope (targetFieldName, targetSectionName, ...) the actual target must be an instance of
one of the classes. This can be used by an editor to limit or verify the user's selection.
public ComponentTask setUnsupportedComponentMessage(java.lang.String unsupportedComponentMessage) throws java.lang.IllegalStateException
getInvalidTaskMessage()
when a target component type is not supported for the task.unsupportedComponentMessage
- New unsupportedComponentMessage value. Default value is "${propertyName} '${id}' is not a supported type for this task"ComponentTask
instance, for chaining setter callsjava.lang.IllegalStateException
- this property cannot be changed after the underlying component has been createdpublic java.lang.String getUnsupportedComponentMessage()
getInvalidTaskMessage()
when a target component type is not supported for the task.public void getTargetComponent(Process process)
componentId
for this task. Unless skipValidation
is true, the component type is validated against componentBaseClass
and only returned if it
matches. Null is returned otherwise.process
- the process that is handling the workflowpublic void getTargetComponent(Process process, java.lang.Boolean skipValidation)
componentId
for this task. Unless skipValidation
is true, the component type is validated against componentBaseClass
and only returned if it
matches. Null is returned otherwise.process
- the process that is handling the workflowskipValidation
- skip validation against componentBaseClass?