Tasks
A task is like a ”secondary action” assigned to an endpoint. The primary action is the <success> and <error> action described in Types of Endpoints. The "secondary" action may contain zero or many tasks, that will be executed once the primary action has been completed successfully.
Task vs Primary Action
The task does some action, but the response body of the task is not part of the response to the client's request. The response to the request might be a simple "status 200", while the request had triggered the execution of a task which did have a response body.
With a task you can
Each <task> is a set of commands embedded into an endpoint-definition in the endpoints.xml:
<endpoint name="foo">
<success>...</success>
<error>...</error>
<!-- zero or many tasks -->
<task class="...">
...
</task>
<task class="...">
...
</task>
</endpoint>

Parallel or Subsequent Execution of Tasks

Offer-Ready uses multiple cores, if available. If not specified otherwise, tasks are executed in parallel and will be finished in an arbitrary order. In order to determine a distinctive order of tasks, read Parallel or Subsequent Execution of Tasks.

Intermediate Values

If a task requires the output from a second task as an output, you may use Intermediate Values.