Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

I can add a payload mapping to a sequence flow #19

Closed
ThorbenLindhauer opened this issue Sep 27, 2018 · 1 comment
Closed

I can add a payload mapping to a sequence flow #19

ThorbenLindhauer opened this issue Sep 27, 2018 · 1 comment
Assignees

Comments

@ThorbenLindhauer
Copy link
Member

For sequence flows leading to a parallel gateway, users can define a payload mapping. The purpose is to merge the payloads of the branches into one in a predictable fashion. This mapping is an extension elemement of the sequence flow.

Example:

<sequenceFlow id="flow" sourceRef="task" targetRef="join">
  <extensionElements>
    <zeebe:payloadMappings>
      <zeebe:mapping source="$.key1" target="$.mappedKey1" type="PUT"/>
      <zeebe:mapping source="$.key2" target="$.mappedKey2" type="COLLECT"/>
    </zeebe:payloadMappings>
  </extensionElements>
</sequenceFlow>

source and target can contain any String. type is an enum with values PUT and COLLECT. PUT should be the default.

@dominikhorn93
Copy link
Contributor

Done with release 0.2.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants