Class UserConfirmationTask
java.lang.Object
com.smartgwt.client.core.BaseClass
com.smartgwt.client.util.workflow.ProcessElement
com.smartgwt.client.util.workflow.UserConfirmationTask
- All Implemented Interfaces:
- HasHandlers
- Direct Known Subclasses:
- AskForValueTask
Chooses one or another next process element based on confirmation of a message shown to user. 
 If the user clicks OK,
 the nextElement is chosen, otherwise the
 choice is failureElement.
- 
Field SummaryFields inherited from class com.smartgwt.client.core.BaseClassconfig, configOnly, factoryCreated, factoryProperties, id, scClassName
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate()ID of the next sequence or element to proceed to if the criteria do not match.Message to display to the user for confirmation.static UserConfirmationTaskgetOrCreateRef(JavaScriptObject jsObj) Formula to be used to calculate the message contents.setFailureElement(String failureElement) ID of the next sequence or element to proceed to if the criteria do not match.setMessage(String message) Message to display to the user for confirmation.setNextElement(String nextElement) setTextFormula(UserSummary textFormula) Formula to be used to calculate the message contents.Methods inherited from class com.smartgwt.client.util.workflow.ProcessElementcompleteElement, convertToJavaScriptArray, executeElement, getBindOutput, getClassDescription, getComponentReferences, getDescription, getDynamicValue, getEditorType, getElementDescription, getForceSingle, getID, getInvalidTaskMessage, getJsObj, getMockMode, 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, 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- 
UserConfirmationTaskpublic UserConfirmationTask()
- 
UserConfirmationTask
 
- 
- 
Method Details- 
getOrCreateRef
- 
create- Overrides:
- createin class- ProcessElement
 
- 
setFailureElementID of the next sequence or element to proceed to if the criteria do not match.- Parameters:
- failureElement- New failureElement value. Default value is null
- Returns:
- UserConfirmationTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getFailureElementID of the next sequence or element to proceed to if the criteria do not match.- Returns:
- Current failureElement value. Default value is null
 
- 
setMessageMessage to display to the user for confirmation. To display a dynamic message seetextFormula.- Parameters:
- message- New message value. Default value is null
- Returns:
- UserConfirmationTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getMessageMessage to display to the user for confirmation. To display a dynamic message seetextFormula.- Returns:
- Current message value. Default value is null
 
- 
setNextElementNextsequenceorelementto execute if the criteria match the process state.nextElementdoes not need to be specified if this gateway is part of asequenceand has a next element in the sequence.Note that if there is both a sequenceand a normalelementwith the same name in the currentProcess, thesequencewill be used.- Overrides:
- setNextElementin class- ProcessElement
- Parameters:
- nextElement- New nextElement value. Default value is null
- Returns:
- UserConfirmationTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getNextElementNextsequenceorelementto execute if the criteria match the process state.nextElementdoes not need to be specified if this gateway is part of asequenceand has a next element in the sequence.Note that if there is both a sequenceand a normalelementwith the same name in the currentProcess, thesequencewill be used.- Overrides:
- getNextElementin class- ProcessElement
- Returns:
- Current nextElement value. Default value is null
 
- 
setTextFormulaFormula to be used to calculate the message contents. Usemessageproperty to assign a static message instead.Available fields for use in the formula are the current rule context.- Parameters:
- textFormula- New textFormula value. Default value is null
- Returns:
- UserConfirmationTaskinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the underlying component has been created
 
- 
getTextFormulaFormula to be used to calculate the message contents. Usemessageproperty to assign a static message instead.Available fields for use in the formula are the current rule context.- Returns:
- Current textFormula value. Default value is null
 
 
-