Python Function Blocks

Python code is divided into different function blocks, making it possible to control when to execute which code. 

For information on which function blocks are supported for each agent, see the relevant Python agent section. Some of the function blocks are applicable for all of the agents, while some are only relevant for Python agents in real-time workflows, and some for Python agents in batch workflows.

Note!

Function blocks are not relevant for the Python Connector agent.

Top-level code such as global code and imported code will be executed just before the initialize function block.