Data Flow
Zeebe carries custom data from task to task in form of variables. Variables are key-value-pairs and part of the workflow instance.
By default, all job variables are merged into the workflow instance. This behavior can be customized by defining an output mapping at the task. Input mappings can be used to transform the variables into a format that is accepted by the job worker.
name: order-process
tasks:
- id: collect-money
type: payment-service
inputs:
- source: totalPrice
target: price
outputs:
- source: success
target: paymentSuccess
- id: fetch-items
type: inventory-service
- id: ship-parcel
type: shipment-service
Every mapping element has a source
and a target
element which must be a variable expression.