1. Write a class based on mistral.actions.base.Actions
from mistral.actions import base
class RunnerAction(base.Action):
def __init__(self, param):
# store the incomming params
self.param = param
def run(self):
# return your results here
return {'status': 0}
[entry_points]
mistral.actions =
example.runner = my.mistral_plugins.somefile:RunnerAction
- Now you can call the action “example.runner”
Workflow:
tasks:
myaction:
action: example.runner
parameters:
param: avalue_to_pass_in