---
schema_version: "1"
id: 35f618cedac7cb3e0753aec301a60623a15771cbb97633d14a072584d9279ac7
title: Evaluation Flows in Orchestrations
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/orchestrator_concepts_flows_evaluation_flows.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.orchestrator_concepts_flows_evaluation_flows.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: cd942ff6528f430c1a2edb1c21157ed4b4841534b45f8e93d6847b4c09a3b219
description: When you need more than 3 requirements to control stage and step execution, use an evaluation flow. Select the Evaluation Flow tile in the New Flow window to create an evaluation flow.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Evaluation Flows in Orchestrations

When you need more than 3 requirements to control stage and step execution, use an evaluation flow. Select the Evaluation Flow tile in the New Flow window to create an evaluation flow.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col style="width:100%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.automate_orchestrator_about_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Review the supported products and editions for Flow Orchestration.">View supported editions for Flow Orchestration.</a></td></tr></tbody></table>

## Variables in Evaluation Flows

When you select the Evaluation Flow tile in the New Flow window, you create an evaluation flow that contains a predefined Boolean output variable named isOrchestrationConditionMet.

Initialize isOrchestrationConditionMet to false, and to indicate that the custom conditions are met, set isOrchestrationConditionMet to true.

Evaluation flows only return a value for isOrchestrationConditionMet. Values for any other output variables are discarded.

## Evaluation Flow Execution

Every time an asynchronous background step, an interactive step, or a MuleSoft step within the current stage is completed, the orchestration 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

The status of each stage or step determines which conditions the orchestration checks. If the condition being checked relies on an evaluation flow, the evaluation flow runs.

- When a stage is in progress, the orchestration determines whether it can be completed.
- For each not started step within the current stage, the orchestration determines whether the step is ready to start.
- For each in progress interactive step within the current stage, the orchestration determines whether the step can be marked as completed.

## Running Context of an Evaluation Flow

In API version 60.0 and later, evaluation flows can be run only in system context without sharing and have access to all data.

In API version 58.0 and 59.0, evaluation flows always run in system context.

In API version 57.0 and earlier, evaluation flows run as specified in the flow’s How to Run the Flow advanced option.

#### See Also

- [Trigger an Evaluation of Orchestration Stage and Step Conditions](https://help.salesforce.com/s/articleView?id=platform.orchestrator_build_trigger_stage_step_conditon_evaluation.htm&release=264.0.0&type=5 "Every time a step within the current stage completes, the orchestration evaluates the conditions for that stage and its steps. You can also publish an orchestration event from a flow to trigger an evaluation of orchestration stage and step conditions.")