When you need more than 10 requirements to control stage and step execution, use an
evaluation flow. Select the Evaluation Flow tile in the New Automation window to create an
evaluation flow.
When you select the Evaluation Flow tile in the New Automation window, you create an
evaluation flow that contains a predefined Boolean output variable named
isOrchestrationConditionMet.
Initialize isOrchestrationConditionMet to false. To
indicate that the custom conditions are met, set
isOrchestrationConditionMet to true.
Evaluation flows return a value only for isOrchestrationConditionMet.
Values for any other output variables are discarded.
Evaluation Flow Execution
Every time an approval step or an asynchronous background step within the current stage is
completed, the orchestration run associated with a parent approval submission evaluates the
conditions for that stage and its steps. To trigger an evaluation of conditions for the
current stage and its steps, publish an orchestration event with
$Orchestration.Instance of the orchestration run associated with the
approval
submission.
The status of each stage or step determines which conditions are checked by the
orchestration run associated with a parent approval submission. If the condition being
checked relies on an evaluation flow, the evaluation flow runs.
When a stage is in progress, the orchestration run associated with the parent approval
submission determines whether the stage can be completed.
For each step not started within the current stage, the orchestration run associated
with the parent approval submission determines whether the step is ready to start.
For each in-progress approval step within the current stage, the orchestration run
associated with a parent approval submission determines whether the step can be
completed.
Running Context of an Evaluation Flow
Evaluation flows can be run only in system context without sharing and have access to all
data
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.