Object for managing pre conditions for an action.

The ActionCondition object manages the pre conditions for user to select when adding the action into a workflow.


default_event: str

The default event that comes selected by default on the UI when adding the action to the workflow.

event_list: list

The list of available events for pre condition of the action exection.


build_event_list(self, event_list: list) -> list

Returns the event list as list of dictionaries with name and value keys.

build_data() -> dict

Returns the Pre-condition's data. This includes the default condition and the pre conditions full list.