Actions can be called from any events within the Workflow like on button pressed, on received message etc.
Create an Action
self.addAction(Name, Group, FunctionToCall)
Example
The Groupis "optional" and helps within the menu to organize a larger amount of actions.
Leave Group empty and the action will be found directly within the root of the plugin and won't be organized within folders.
Action with parameter
Action with dynamic changeable data target parameter
If actions needs dynamic parameter its possible to use the entities data structure for these.