Script builder

You can write a script for a Condition point, where the script provides a result that is either True or False to use as a condition for an outgoing path.

You can access playbook's object type field values from the script to determine the value of result.

The script can read values and create a result. It cannot write or change values or add artifacts.

To write a script in Script builder.
  1. In the Condition point window, click Create condition or open an existing condition, and then click the edit icon.
  2. In the Create or Edit condition page, from the Start by creating a condition section, click Add > Script.
  3. To use a script editor other than the default, click Mode and select the editor.
  4. To change the length that the tab key provides, click Tab Size and select the size.
  5. Use Python 3 to write the script that retrieves the values and sets the result. You can use the playbook.functions and playbook.properties keywords as described in Playbook operations.