Decision tables in Workflow Studio enable business users to create and maintain decision tables and rules, independent of flow or application logic, in a modern, user-friendly experience. Instead of hardcoding logic or creating decisions one record at a time, users can use a table interface to quickly add decision rules to a table, specify a default result, and view multiple rules on a single screen. For large decision tables, users can also export to Microsoft Excel, modify rules in Excel, and import changes back into Workflow Studio. Users can also leverage the testing feature to ensure that rules are working as expected before publishing decision tables for use and the duplicate feature to duplicate decision rows and decision tables.
With decision tables in Workflow Studio, business users and developers of all skill levels can easily define decision rules. Condition columns can leverage ServiceNow tables and fields or use custom inputs. By incorporating decision rules into your applications, you can automate decision making and easily maintain logic.
Decision tables streamline flow and application updates and maintenance by decoupling flow and app logic from decision logic. Decision tables can be implemented in flows with ‘Make a Decision’ flow logic in any script across the platform.
Note: Workflow Studio supports decision tables that were created in the classic UI.
- Enable draft authoring to create decision tables in draft mode. Users can publish draft decision tables when they're ready to use.
- Define input variables to specify the types of data the decision table will evaluate. These inputs improve reusability by allowing decision tables to evaluate data from existing ServiceNow records, external data sources, or data provided at runtime.
- Create condition columns based on inputs, to choose the evaluation criteria for each decision rule.
- Create result columns to choose the output data returned for each decision rule.
- Create decision tables seamlessly with decision rules, conditions, and results.
- Rearrange rows to change the decision table's evaluation order.
- Specify a default result for any conditions not included in the table.
- Use Microsoft Excel to manage decision rows for easier maintenance of large decision tables and to enable business users who are more comfortable in Excel.
- Use the testing feature to scenario test execution methods and input data to ensure rules are executing as expected.
- Create a code snippet to easily implement the decision table in any script across the platform.
- Duplicate decision rows and decision tables to save time and streamline rule authoring.
- View related objects to quickly identify flows that use the decision table logic.
- Create new and access existing decision tables in App Engine Studio (AES) without leaving AES.
- Enable draft authoring to create decision tables in draft mode. Users can publish draft decision tables when they're ready to use.
- Define input variables to specify the types of data the decision table will evaluate. These inputs improve reusability by allowing decision tables to evaluate data from existing ServiceNow records, external data sources, or data provided at runtime.
- Create condition columns based on inputs, to choose the evaluation criteria for each decision rule.
- Create result columns to choose the output data returned for each decision rule.
- Create decision tables seamlessly with decision rules, conditions, and results.
- Rearrange rows to change the decision table's evaluation order.
- Specify a default result for any conditions not included in the table.
- Use Microsoft Excel to manage decision rows for easier maintenance of large decision tables and to enable business users who are more comfortable in Excel.
- Use the testing feature to scenario test execution methods and input data to ensure rules are executing as expected.
- Create a code snippet to easily implement the decision table in any script across the platform.
- Duplicate decision rows and decision tables to save time and streamline rule authoring.
- View related objects to quickly identify flows that use the decision table logic.
- Create new and access existing decision tables in App Engine Studio (AES) without leaving AES.
None