new ArchActionSetFlowOutcome(coreSetFlowOutcomeActionViewModel)
Creates a new Architect Set Flow Outcome action instance. Instances of this class should not be created directly.
Parameters:
| Name | Type | Description |
|---|---|---|
coreSetFlowOutcomeActionViewModel |
Object | ( Internal ) an Architect core SetFlowOutcome view model. |
Extends
Members
-
static, readonly displayTypeName :string
-
Implements override support for the display type name string for this Architect Scripting object.
-
readonly displayTypeName :string
-
Implements override support for the display type name string for this Architect Scripting object.
- Overrides:
-
readonly flowOutcomeValue :ArchValueString
-
The value to be set as the result of the flow outcome.
-
readonly isArchActionSetFlowOutcome :boolean
-
Returns true indicating that this is an ArchActionSetFlowOutcome instance.
-
readonly isArchBaseActionFlowOutcome :boolean
-
Returns true indicating that this is an ArchBaseActionFlowOutcome instance.
- Inherited From:
Methods
-
setFlowOutcomeByIdAsync(flowOutcomeId, callbackFunction) → {Promise.<ArchBaseActionFlowOutcome>}
-
This sets the flow outcome to use at runtime by its identifier.
Parameters:
Name Type Description flowOutcomeIdstring the identifier of the flow outcome.
callbackFunctionfunction a callback function to call if the flow outcome is successfully looked up and configured on this action. The first parameter passed to the callback function will be this action instance.
Returns:
Promise.<ArchBaseActionFlowOutcome>- Inherited From:
-
setFlowOutcomeByNameAsync(flowOutcomeName, callbackFunctionopt) → {Promise.<ArchBaseActionFlowOutcome>}
-
This sets the flow outcome that will be used for use at runtime by the flow outcome name.
Parameters:
Name Type Attributes Description flowOutcomeNamestring the name of the Flow Outcome to set. The name is not case sensitive on the lookup.
callbackFunctionfunction <optional>
a callback function to call if the Flow Outcome is successfully looked up and configured on this action. The first parameter passed to the callback function will be this Architect flow outcome action instance.
Returns:
Promise.<ArchBaseActionFlowOutcome>- Inherited From:
-
setFlowOutcomeValue(newValue)
-
Set the value for the outcome in the Set Flow Outcome action. This is a helper method for doing
archActionSetFlowOutcome.flowOutcomeValue.setLiteralString(<value>)The string values inArchEnums#FLOW_OUTCOMESare the valid values that can be set.Parameters:
Name Type Description newValuestring the outcome value to set