Extreme API with Python

Table Of Contents
Extreme API with Python
Page | 78
Part no.9036931-00 Rev AA February 2021
With this method, you pass an argument variable as a string that you created previously in the activity,
and its value, also as a string. You can test this value with gateways, and other activities. This is the
correct way to change a variable value (if the variable has a scope of workflow).
Note: You can also use this method to pass JSON data, using json.dumps().
emc_results.put("MyVariable", "true")
To better illustrate this, modify your workflow so that you select a path based on the value of a variable.
Delete the link between the script and the “End” gateway by selecting it then selecting on the trash can
icon. Then add an inclusive parallel gateway leading to two new scripts that will end the workflow by
adding another “End” gateway and connecting the scripts to it.
To evaluate the value of MyVariable, first change its scope. In the previous example, this variable was
defined with a scope of Activity. This means its value is not accessible outside of the activity. To check it
with the inclusive parallel gateway, you need to increase its scope by setting it to Workflow.