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.
- In the Condition point window, click Create condition or open an existing condition, and then click the edit icon.
- In the Create or Edit condition page, from the Start by creating a condition section, click Add > Script.
- To use a script editor other than the default, click Mode and select the editor.
- To change the length that the tab key provides, click Tab Size and select the size.
- Use Python 3 to write the script that retrieves the values and sets the
result. You can use theplaybook.functionsandplaybook.propertieskeywords as described in Playbook operations.