deb-mistral/doc/source/terminology/actions.rst
Renat Akhmerov bec6fc0cd3 Fixing terminoloty/actions section in documentation
* Changed the order of description for synchronous and asynchronous
  actions according to the attached picture.
* Shortened text lines to fit 80 characters limit.

Change-Id: I1e6810816cb3490f9347bc6a85b59af4e5e467ca
2015-10-14 17:33:00 +06:00

1.6 KiB

Actions

A particular instruction associated with a task that needs to be performed once the task runs. It can be anything like running a shell script, HTTP request, AMQP message or any signal sent to any system external to Mistral. Actions can be synchronous or asynchronous.

In case of synchronous action, Mistral will send a signal to Mistral Executor and will be waiting for the result from Executor. Once Executor completes action, it sends the result to Mistral Engine.

In case of asynchronous action Mistral will send a signal to third party service and will be waiting for a corresponding action result to be delivered back to Mistral API. Once the signal is sent, Mistral won't care more about action state and result. Third party service should do a request to Mistral API and provide info about corresponding action execution and its state and result.

image

System Actions

System actions are provided by Mistral out of the box and can be used by anyone. It is also possible to add system actions for specific Mistral installation via a special plugin mechanism.

How to write an Action Plugin </developer/creating_custom_action>

Ad-hoc Actions

Ad-hoc actions are a special types of actions that can be created by user. Ad-hoc actions are always created as a wrapper around any other existing system actions and their main goal is to simplify using same actions many times with similar pattern.

Note

Nested ad-hoc actions currently are not supported (i.e. ad-hoc action around another ad-hoc action).

Note

More about actions - actions-dsl.