Skip to main content

Hi,

 

I am trying to create a list of Action Flows using PyCelonis and I want to also add status if the Action Flow is currently active or not. I was trying to do it .get_action_flow(id).dict()/json()/json_dict() but there is no parameter there that would indicate if the Action Flow is activated or not.

Thanks in advance for any replies :)

Hii Kamil, according to my understanding:

Determining if a PyCelonis Action Flow is "active" isn't directly exposed as a simple true/false parameter within the ActionFlow object itself. Instead, the "active" status is inferred from the Action Flow's configuration, specifically its triggers and their enabled states. To solve this, you need to retrieve the Action Flow's blueprint, which is its complete JSON definition. Within this blueprint, you can then programmatically parse the triggers section. For instance, if you find a type of EVENT_FLOW_TRIGGER_CRON_SCHEDULE, the presence of this scheduled trigger generally indicates the Action Flow is active. You would extend this logic to check for other trigger types like EVENT_FLOW_TRIGGER_DATA_JOB_COMPLETED or EVENT_FLOW_TRIGGER_WEBHOOK, interpreting their configuration within the blueprint to determine the flow's operational status .Let me know if it helps🙂


Reply