it-at-m / digiwf-core

central workflow automation and integration platform based on the free process framework Camunda.
MIT License
19 stars 7 forks source link

[Documentation] Message exchange between two process instances #995

Closed xdoo closed 6 months ago

xdoo commented 2 years ago

@dominikhorn93 could you please provide a ElementTemplate as sample?

Integrationskonzept für Services _ Feature Requests _ Ablaufdatum S3 (10).png

dominikhorn93 commented 2 years ago
{
  "name": "Correlate Message",
  "id": "de.muenchen.digitalwf.templates.CorrelateMessage",
  "appliesTo": [
      "bpmn:ServiceTask"
  ],
  "properties": [
      {
          "label": "Delegate Expression",
          "type": "Hidden",
          "value": "${streamingIntegrationDelegate}",
          "editable": false,
          "binding": {
              "type": "property",
              "name": "camunda:delegateExpression"
          }
      },
      {
          "label": "Event Topic",
          "type": "String",
          "value": "dwf-digiwf-engine-test",
          "binding": {
              "type": "camunda:inputParameter",
              "name": "app_topic_name"
          },
          "constraints": {
              "notEmpty": true
          }
      },
      {
          "label": "Event Type",
          "type": "Hidden",
          "value": "correlatemessagev01",
          "binding": {
              "type": "camunda:inputParameter",
              "name": "app_type_name"
          },
          "constraints": {
              "notEmpty": true
          }
      },
      {
          "label": "Business Key",
          "type": "String",
          "value": "",
          "binding": {
              "type": "camunda:inputParameter",
              "name": "businessKey"
          },
          "constraints": {
              "notEmpty": true
          }
      },
      {
          "label": "Message Name",
          "type": "String",
          "value": "",
          "binding": {
              "type": "camunda:inputParameter",
              "name": "messageName"
          },
          "constraints": {
              "notEmpty": true
          }
      },
      {
          "label": "Payload",
          "type": "String",
          "value": "",
          "binding": {
              "type": "camunda:inputParameter",
              "name": "payloadVariables"
          }
      },
      {
          "label": "Local Payload",
          "type": "String",
          "value": "",
          "binding": {
              "type": "camunda:inputParameter",
              "name": "payloadVariablesLocal"
          }
      }
  ],
  "entriesVisible": {
      "_all": false
  }
}
dominikhorn93 commented 2 years ago

Template is deployed and backend code was edited to handly local payload variables and bussiness key.

darenegade commented 1 year ago

Blocked by it-at-m/digiwf-project#394