The post function module can be found in Workflows so you can plug python code to run in transitions.
...
Go to Settings → Workflows
Select the workflow you want to add a Post function and click “Edit” in the 3 dots on the right.
Click “Edit”.
Now you can either go to the Diagram View or the Text View.
(Diagram) Click in the Transition you want to add a Post function and follow the diagram below:
Transition → Post functions → Add Post Function → EFJ Python Script → Add
Now you are in the EFJ Python Script Module, so you should:
1. Name your script
2. Give it a description
3. Add a condition to execute
4. Add the code that you need to run.
5. Save
Using the code repository
You can use the Code Repository to hold your code, then import the code in the post function “Script” section as follows. Where myfilename is the name of the file you provided in the Repository.
Code Block |
---|
import myfilename |
Testing my script
For good measure, you should first test your script in the Console.
...