@camunda/e2e-test-suite 0.0.453 → 0.0.454

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/.github/c8_versions.json +17 -0
  2. package/package.json +8 -3
  3. package/playwright.config.ts +382 -0
  4. package/resources/Basic_Auth_REST_Connector.bpmn +62 -0
  5. package/resources/Camunda_Simple_User_Task_1.bpmn +41 -0
  6. package/resources/Camunda_Simple_User_Task_2.bpmn +41 -0
  7. package/resources/Camunda_Simple_User_Task_3.bpmn +41 -0
  8. package/resources/Camunda_Simple_User_Task_4.bpmn +41 -0
  9. package/resources/Camunda_Simple_User_Task_5.bpmn +41 -0
  10. package/resources/Candidate_User_Process_Three_Tasks.bpmn +116 -0
  11. package/resources/Candidate_User_Process_Two_Tasks.bpmn +91 -0
  12. package/resources/Conditional_Events_All.bpmn +111 -0
  13. package/resources/Connectors Document Handling.bpmn +298 -0
  14. package/resources/ConnectorsBasicTest.bpmn +2292 -0
  15. package/resources/Intermediate_Event_Webhook_Connector_No_Auth_Process.bpmn +60 -0
  16. package/resources/Job_Worker_Process.bpmn +38 -0
  17. package/resources/New Form.form +24 -0
  18. package/resources/REST_Connector_Bearer_Auth_Process.bpmn +53 -0
  19. package/resources/REST_Connector_No_Auth_Process.bpmn +52 -0
  20. package/resources/Rest Connector Timer Event.bpmn +227 -0
  21. package/resources/SM_Document_Handling_Connectors_User_Flow.bpmn +297 -0
  22. package/resources/Start_Event_Webhook_Connector_No_Auth_Process.bpmn +43 -0
  23. package/resources/Start_Form_Process.bpmn +29 -0
  24. package/resources/User_Task_Editing_Variables.bpmn +41 -0
  25. package/resources/User_Task_Process_With_Form.bpmn +41 -0
  26. package/resources/User_Task_Process_With_Form_2.bpmn +41 -0
  27. package/resources/User_Task_Process_With_Form_3.bpmn +42 -0
  28. package/resources/User_Task_Process_With_Form_API.bpmn +41 -0
  29. package/resources/Variable_Process.bpmn +38 -0
  30. package/resources/Zeebe_User_Task.bpmn +41 -0
  31. package/resources/Zeebe_User_Task_Process_With_Priority.bpmn +145 -0
  32. package/resources/agentic_ai/ai-agent-chat-user-feedback.form +87 -0
  33. package/resources/agentic_ai/ai-agent-chat-with-tools_aws.bpmn +443 -0
  34. package/resources/agentic_ai/ai-agent-chat-with-tools_azure.bpmn +441 -0
  35. package/resources/agentic_ai/ai-agent-chat-with-tools_open_ai.bpmn +438 -0
  36. package/resources/agentic_ai/ai-agent-subprocess-with-tools_aws_key.bpmn +115 -0
  37. package/resources/camunda.png +0 -0
  38. package/resources/cluster_variables/cluster_variable_global_scope.bpmn +59 -0
  39. package/resources/cluster_variables/cluster_variable_json_form.form +49 -0
  40. package/resources/cluster_variables/cluster_variable_json_mutable.bpmn +33 -0
  41. package/resources/cluster_variables/cluster_variable_json_readonly.bpmn +59 -0
  42. package/resources/cluster_variables/cluster_variable_string_form.form +31 -0
  43. package/resources/cluster_variables/cluster_variable_string_mutable.bpmn +31 -0
  44. package/resources/cluster_variables/cluster_variable_string_readonly.bpmn +57 -0
  45. package/resources/cluster_variables/preview_cluster_variables.form +49 -0
  46. package/resources/connectors/aws/bedrock-knowledge-base.bpmn +72 -0
  47. package/resources/connectors/db_vector_connector/db-vector-plain-text_azure_open_ai.bpmn +183 -0
  48. package/resources/connectors/db_vector_connector/db-vector-plain-text_open_ai.bpmn +178 -0
  49. package/resources/connectors/db_vector_connector/db-vector-plain-text_openai_amazon_opensearch.bpmn +189 -0
  50. package/resources/connectors/db_vector_connector/db-vector-retrieve-data.form +34 -0
  51. package/resources/idp/idp_sample_bank_statement.pdf +0 -0
  52. package/resources/idp/structured_invoice_1.pdf +74 -0
  53. package/resources/idp/structured_invoice_2.pdf +74 -0
  54. package/resources/idp/structured_invoice_3.pdf +74 -0
  55. package/resources/idp/structured_invoice_test.pdf +74 -0
  56. package/resources/mcp_server/keycloak/camunda-platform-realm.json +45 -0
  57. package/resources/mcp_server/mcp_remote_client_basic_auth.bpmn +69 -0
  58. package/resources/mcp_server/mcp_remote_client_bearer_auth.bpmn +68 -0
  59. package/resources/mcp_server/mcp_remote_client_oauth_auth.bpmn +76 -0
  60. package/resources/mcp_server/mcp_remote_client_operations.bpmn +373 -0
  61. package/resources/mcp_server/mcp_server_list_tools.bpmn +69 -0
  62. package/resources/mcp_server_saas/mcp_cluster_tools.bpmn +168 -0
  63. package/resources/mcp_server_saas/mcp_incident_test_file.bpmn +54 -0
  64. package/resources/mcp_server_saas/mcp_incident_tools.bpmn +240 -0
  65. package/resources/mcp_server_saas/mcp_process_definition_test_file.bpmn +51 -0
  66. package/resources/mcp_server_saas/mcp_process_definition_tools.bpmn +234 -0
  67. package/resources/mcp_server_saas/mcp_process_instance_test_file.bpmn +51 -0
  68. package/resources/mcp_server_saas/mcp_process_instance_tools.bpmn +232 -0
  69. package/resources/mcp_server_saas/mcp_user_task_test_file.bpmn +55 -0
  70. package/resources/mcp_server_saas/mcp_user_task_tools.bpmn +309 -0
  71. package/resources/mcp_server_saas/mcp_variable_test_file.bpmn +35 -0
  72. package/resources/mcp_server_saas/mcp_variable_tools.bpmn +170 -0
  73. package/resources/simple_pdf.pdf +0 -0
  74. package/resources/simple_text.txt +1 -0
  75. package/resources/test-api-v2-complete.sh +12162 -0
@@ -0,0 +1,60 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Web Modeler" exporterVersion="a3b2585" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.6.0">
3
+ <bpmn:process id="Intermediate_Event_Webhook_Connector_No_Auth_Process" name="Intermediate_Event_Webhook_Connector_No_Auth_Process" isExecutable="true">
4
+ <bpmn:startEvent id="StartEvent_1">
5
+ <bpmn:outgoing>Flow_08aswru</bpmn:outgoing>
6
+ </bpmn:startEvent>
7
+ <bpmn:sequenceFlow id="Flow_08aswru" sourceRef="StartEvent_1" targetRef="test" />
8
+ <bpmn:intermediateCatchEvent id="test" zeebe:modelerTemplate="io.camunda.connectors.webhook.WebhookConnectorIntermediate.v1" zeebe:modelerTemplateVersion="11" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyBpZD0naWNvbicgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB3aWR0aD0nMTgnIGhlaWdodD0nMTgnIHZpZXdCb3g9JzAgMCAzMiAzMic+CiAgPGRlZnM+CiAgICA8c3R5bGU+LmNscy0xIHsgZmlsbDogbm9uZTsgfTwvc3R5bGU+CiAgPC9kZWZzPgogIDxwYXRoCiAgICBkPSdNMjQsMjZhMywzLDAsMSwwLTIuODE2NC00SDEzdjFhNSw1LDAsMSwxLTUtNVYxNmE3LDcsMCwxLDAsNi45Mjg3LDhoNi4yNTQ5QTIuOTkxNCwyLjk5MTQsMCwwLDAsMjQsMjZaJy8+CiAgPHBhdGgKICAgIGQ9J00yNCwxNmE3LjAyNCw3LjAyNCwwLDAsMC0yLjU3LjQ4NzNsLTMuMTY1Ni01LjUzOTVhMy4wNDY5LDMuMDQ2OSwwLDEsMC0xLjczMjYuOTk4NWw0LjExODksNy4yMDg1Ljg2ODYtLjQ5NzZhNS4wMDA2LDUuMDAwNiwwLDEsMS0xLjg1MSw2Ljg0MThMMTcuOTM3LDI2LjUwMUE3LjAwMDUsNy4wMDA1LDAsMSwwLDI0LDE2WicvPgogIDxwYXRoCiAgICBkPSdNOC41MzIsMjAuMDUzN2EzLjAzLDMuMDMsMCwxLDAsMS43MzI2Ljk5ODVDMTEuNzQsMTguNDcsMTMuODYsMTQuNzYwNywxMy44OSwxNC43MDhsLjQ5NzYtLjg2ODItLjg2NzctLjQ5N2E1LDUsMCwxLDEsNi44MTItMS44NDM4bDEuNzMxNSwxLjAwMmE3LjAwMDgsNy4wMDA4LDAsMSwwLTEwLjM0NjIsMi4wMzU2Yy0uNDU3Ljc0MjctMS4xMDIxLDEuODcxNi0yLjA3MzcsMy41NzI4WicvPgogIDxyZWN0IGlkPSdfVHJhbnNwYXJlbnRfUmVjdGFuZ2xlXycgZGF0YS1uYW1lPScmbHQ7VHJhbnNwYXJlbnQgUmVjdGFuZ2xlJmd0OycgY2xhc3M9J2Nscy0xJwogICAgd2lkdGg9JzMyJyBoZWlnaHQ9JzMyJy8+Cjwvc3ZnPg==">
9
+ <bpmn:extensionElements>
10
+ <zeebe:properties>
11
+ <zeebe:property name="inbound.type" value="io.camunda:webhook:1" />
12
+ <zeebe:property name="inbound.method" value="any" />
13
+ <zeebe:property name="inbound.context" value="test-webhook-intermediate" />
14
+ <zeebe:property name="inbound.shouldValidateHmac" value="disabled" />
15
+ <zeebe:property name="inbound.auth.type" value="NONE" />
16
+ <zeebe:property name="consumeUnmatchedEvents" value="true" />
17
+ <zeebe:property name="correlationKeyExpression" value="=&#34;test&#34;" />
18
+ <zeebe:property name="resultVariable" value="" />
19
+ <zeebe:property name="resultExpression" value="" />
20
+ </zeebe:properties>
21
+ </bpmn:extensionElements>
22
+ <bpmn:incoming>Flow_08aswru</bpmn:incoming>
23
+ <bpmn:outgoing>Flow_1ltw72f</bpmn:outgoing>
24
+ <bpmn:messageEventDefinition id="MessageEventDefinition_0mydj41" messageRef="Message_0njraiu" />
25
+ </bpmn:intermediateCatchEvent>
26
+ <bpmn:endEvent id="Event_1mq9pd6">
27
+ <bpmn:incoming>Flow_1ltw72f</bpmn:incoming>
28
+ </bpmn:endEvent>
29
+ <bpmn:sequenceFlow id="Flow_1ltw72f" sourceRef="test" targetRef="Event_1mq9pd6" />
30
+ </bpmn:process>
31
+ <bpmn:message id="Message_0njraiu" name="1de973fe-783e-4726-8693-c22a932493eb" zeebe:modelerTemplate="io.camunda.connectors.webhook.WebhookConnectorIntermediate.v1">
32
+ <bpmn:extensionElements>
33
+ <zeebe:subscription correlationKey="=&#34;test&#34;" />
34
+ </bpmn:extensionElements>
35
+ </bpmn:message>
36
+ <bpmndi:BPMNDiagram id="BPMNDiagram_1">
37
+ <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Intermediate_Event_Webhook_Connector_No_Auth_Process">
38
+ <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
39
+ <dc:Bounds x="150" y="100" width="36" height="36" />
40
+ </bpmndi:BPMNShape>
41
+ <bpmndi:BPMNShape id="Event_14cq4xz_di" bpmnElement="test">
42
+ <dc:Bounds x="242" y="100" width="36" height="36" />
43
+ <bpmndi:BPMNLabel>
44
+ <dc:Bounds x="216" y="143" width="88" height="53" />
45
+ </bpmndi:BPMNLabel>
46
+ </bpmndi:BPMNShape>
47
+ <bpmndi:BPMNShape id="Event_1mq9pd6_di" bpmnElement="Event_1mq9pd6">
48
+ <dc:Bounds x="342" y="100" width="36" height="36" />
49
+ </bpmndi:BPMNShape>
50
+ <bpmndi:BPMNEdge id="Flow_08aswru_di" bpmnElement="Flow_08aswru">
51
+ <di:waypoint x="186" y="118" />
52
+ <di:waypoint x="242" y="118" />
53
+ </bpmndi:BPMNEdge>
54
+ <bpmndi:BPMNEdge id="Flow_1ltw72f_di" bpmnElement="Flow_1ltw72f">
55
+ <di:waypoint x="278" y="118" />
56
+ <di:waypoint x="342" y="118" />
57
+ </bpmndi:BPMNEdge>
58
+ </bpmndi:BPMNPlane>
59
+ </bpmndi:BPMNDiagram>
60
+ </bpmn:definitions>
@@ -0,0 +1,38 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Web Modeler" exporterVersion="ab92ea9" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.5.0" camunda:diagramRelationId="6d6f6e16-ca7c-4e45-8574-0bcc5494abc0">
3
+ <bpmn:process id="Job_Worker_Process" name="Job_Worker_Process" isExecutable="true">
4
+ <bpmn:startEvent id="StartEvent_1">
5
+ <bpmn:outgoing>Flow_0v1a15d</bpmn:outgoing>
6
+ </bpmn:startEvent>
7
+ <bpmn:sequenceFlow id="Flow_0v1a15d" sourceRef="StartEvent_1" targetRef="Activity_16lo07x" />
8
+ <bpmn:userTask id="Activity_16lo07x">
9
+ <bpmn:incoming>Flow_0v1a15d</bpmn:incoming>
10
+ <bpmn:outgoing>Flow_1xx69pi</bpmn:outgoing>
11
+ </bpmn:userTask>
12
+ <bpmn:endEvent id="Event_0dza1ja">
13
+ <bpmn:incoming>Flow_1xx69pi</bpmn:incoming>
14
+ </bpmn:endEvent>
15
+ <bpmn:sequenceFlow id="Flow_1xx69pi" sourceRef="Activity_16lo07x" targetRef="Event_0dza1ja" />
16
+ </bpmn:process>
17
+ <bpmndi:BPMNDiagram id="BPMNDiagram_1">
18
+ <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Job_Worker_Process">
19
+ <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
20
+ <dc:Bounds x="150" y="100" width="36" height="36" />
21
+ </bpmndi:BPMNShape>
22
+ <bpmndi:BPMNShape id="Activity_18jqs7e_di" bpmnElement="Activity_16lo07x">
23
+ <dc:Bounds x="240" y="78" width="100" height="80" />
24
+ </bpmndi:BPMNShape>
25
+ <bpmndi:BPMNShape id="Event_0dza1ja_di" bpmnElement="Event_0dza1ja">
26
+ <dc:Bounds x="402" y="100" width="36" height="36" />
27
+ </bpmndi:BPMNShape>
28
+ <bpmndi:BPMNEdge id="Flow_0v1a15d_di" bpmnElement="Flow_0v1a15d">
29
+ <di:waypoint x="186" y="118" />
30
+ <di:waypoint x="240" y="118" />
31
+ </bpmndi:BPMNEdge>
32
+ <bpmndi:BPMNEdge id="Flow_1xx69pi_di" bpmnElement="Flow_1xx69pi">
33
+ <di:waypoint x="340" y="118" />
34
+ <di:waypoint x="402" y="118" />
35
+ </bpmndi:BPMNEdge>
36
+ </bpmndi:BPMNPlane>
37
+ </bpmndi:BPMNDiagram>
38
+ </bpmn:definitions>
@@ -0,0 +1,24 @@
1
+ {
2
+ "executionPlatform": "Camunda Cloud",
3
+ "executionPlatformVersion": "8.6.0",
4
+ "exporter": {
5
+ "name": "Camunda Web Modeler",
6
+ "version": "aae0663"
7
+ },
8
+ "schemaVersion": 16,
9
+ "id": "Form_00xfy2q",
10
+ "components": [
11
+ {
12
+ "type": "textfield",
13
+ "id": "Textfield_0",
14
+ "label": "Name",
15
+ "validate": {
16
+ "minLength": 2,
17
+ "required": true
18
+ },
19
+ "key": "name"
20
+ }
21
+ ],
22
+ "generated": true,
23
+ "type": "default"
24
+ }
@@ -0,0 +1,53 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Web Modeler" exporterVersion="a3b2585" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.5.0" camunda:diagramRelationId="1db5e8f9-89a7-4f57-8b58-ff95463c2d78">
3
+ <bpmn:process id="REST_Connector_Bearer_Auth_Process" name="REST_Connector_Bearer_Auth_Process" isExecutable="true">
4
+ <bpmn:startEvent id="StartEvent_1">
5
+ <bpmn:outgoing>Flow_05eaqyi</bpmn:outgoing>
6
+ </bpmn:startEvent>
7
+ <bpmn:sequenceFlow id="Flow_05eaqyi" sourceRef="StartEvent_1" targetRef="Activity_057auf6" />
8
+ <bpmn:serviceTask id="Activity_057auf6" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="8" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
9
+ <bpmn:extensionElements>
10
+ <zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
11
+ <zeebe:ioMapping>
12
+ <zeebe:input source="bearer" target="authentication.type" />
13
+ <zeebe:input source="thisisabearertoken" target="authentication.token" />
14
+ <zeebe:input source="POST" target="method" />
15
+ <zeebe:input source="https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test" target="url" />
16
+ <zeebe:input source="20" target="connectionTimeoutInSeconds" />
17
+ <zeebe:input source="20" target="readTimeoutInSeconds" />
18
+ </zeebe:ioMapping>
19
+ <zeebe:taskHeaders>
20
+ <zeebe:header key="resultExpression" value="={message:response.body.status}" />
21
+ <zeebe:header key="retryBackoff" value="PT0S" />
22
+ </zeebe:taskHeaders>
23
+ </bpmn:extensionElements>
24
+ <bpmn:incoming>Flow_05eaqyi</bpmn:incoming>
25
+ <bpmn:outgoing>Flow_18hnxgn</bpmn:outgoing>
26
+ </bpmn:serviceTask>
27
+ <bpmn:endEvent id="Event_00btsqp">
28
+ <bpmn:incoming>Flow_18hnxgn</bpmn:incoming>
29
+ </bpmn:endEvent>
30
+ <bpmn:sequenceFlow id="Flow_18hnxgn" sourceRef="Activity_057auf6" targetRef="Event_00btsqp" />
31
+ </bpmn:process>
32
+ <bpmndi:BPMNDiagram id="BPMNDiagram_1">
33
+ <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="REST_Connector_Bearer_Auth_Process">
34
+ <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
35
+ <dc:Bounds x="150" y="100" width="36" height="36" />
36
+ </bpmndi:BPMNShape>
37
+ <bpmndi:BPMNShape id="Activity_0jbniea_di" bpmnElement="Activity_057auf6">
38
+ <dc:Bounds x="240" y="78" width="100" height="80" />
39
+ </bpmndi:BPMNShape>
40
+ <bpmndi:BPMNShape id="Event_00btsqp_di" bpmnElement="Event_00btsqp">
41
+ <dc:Bounds x="402" y="100" width="36" height="36" />
42
+ </bpmndi:BPMNShape>
43
+ <bpmndi:BPMNEdge id="Flow_05eaqyi_di" bpmnElement="Flow_05eaqyi">
44
+ <di:waypoint x="186" y="118" />
45
+ <di:waypoint x="240" y="118" />
46
+ </bpmndi:BPMNEdge>
47
+ <bpmndi:BPMNEdge id="Flow_18hnxgn_di" bpmnElement="Flow_18hnxgn">
48
+ <di:waypoint x="340" y="118" />
49
+ <di:waypoint x="402" y="118" />
50
+ </bpmndi:BPMNEdge>
51
+ </bpmndi:BPMNPlane>
52
+ </bpmndi:BPMNDiagram>
53
+ </bpmn:definitions>
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Web Modeler" exporterVersion="a3b2585" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.5.0" camunda:diagramRelationId="84cbcab0-0a04-4837-ac7b-c182e98c7895">
3
+ <bpmn:process id="REST_Connector_No_Auth_Process" name="REST_Connector_No_Auth_Process" isExecutable="true">
4
+ <bpmn:startEvent id="StartEvent_1">
5
+ <bpmn:outgoing>Flow_0kvkb0c</bpmn:outgoing>
6
+ </bpmn:startEvent>
7
+ <bpmn:sequenceFlow id="Flow_0kvkb0c" sourceRef="StartEvent_1" targetRef="Activity_0vax533" />
8
+ <bpmn:serviceTask id="Activity_0vax533" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="8" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
9
+ <bpmn:extensionElements>
10
+ <zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
11
+ <zeebe:ioMapping>
12
+ <zeebe:input source="noAuth" target="authentication.type" />
13
+ <zeebe:input source="GET" target="method" />
14
+ <zeebe:input source="https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test" target="url" />
15
+ <zeebe:input source="20" target="connectionTimeoutInSeconds" />
16
+ <zeebe:input source="20" target="readTimeoutInSeconds" />
17
+ </zeebe:ioMapping>
18
+ <zeebe:taskHeaders>
19
+ <zeebe:header key="resultExpression" value="=body" />
20
+ <zeebe:header key="retryBackoff" value="PT0S" />
21
+ </zeebe:taskHeaders>
22
+ </bpmn:extensionElements>
23
+ <bpmn:incoming>Flow_0kvkb0c</bpmn:incoming>
24
+ <bpmn:outgoing>Flow_125td5w</bpmn:outgoing>
25
+ </bpmn:serviceTask>
26
+ <bpmn:endEvent id="Event_15xer59">
27
+ <bpmn:incoming>Flow_125td5w</bpmn:incoming>
28
+ </bpmn:endEvent>
29
+ <bpmn:sequenceFlow id="Flow_125td5w" sourceRef="Activity_0vax533" targetRef="Event_15xer59" />
30
+ </bpmn:process>
31
+ <bpmndi:BPMNDiagram id="BPMNDiagram_1">
32
+ <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="REST_Connector_No_Auth_Process">
33
+ <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
34
+ <dc:Bounds x="150" y="100" width="36" height="36" />
35
+ </bpmndi:BPMNShape>
36
+ <bpmndi:BPMNShape id="Activity_0q23le4_di" bpmnElement="Activity_0vax533">
37
+ <dc:Bounds x="240" y="78" width="100" height="80" />
38
+ </bpmndi:BPMNShape>
39
+ <bpmndi:BPMNShape id="Event_15xer59_di" bpmnElement="Event_15xer59">
40
+ <dc:Bounds x="402" y="100" width="36" height="36" />
41
+ </bpmndi:BPMNShape>
42
+ <bpmndi:BPMNEdge id="Flow_0kvkb0c_di" bpmnElement="Flow_0kvkb0c">
43
+ <di:waypoint x="186" y="118" />
44
+ <di:waypoint x="240" y="118" />
45
+ </bpmndi:BPMNEdge>
46
+ <bpmndi:BPMNEdge id="Flow_125td5w_di" bpmnElement="Flow_125td5w">
47
+ <di:waypoint x="340" y="118" />
48
+ <di:waypoint x="402" y="118" />
49
+ </bpmndi:BPMNEdge>
50
+ </bpmndi:BPMNPlane>
51
+ </bpmndi:BPMNDiagram>
52
+ </bpmn:definitions>
@@ -0,0 +1,227 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" xmlns:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1a4gt8m" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Web Modeler" exporterVersion="948bcab" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.7.0" camunda:diagramRelationId="5d811647-c4c2-48bc-8d57-3e7d197f91cd">
3
+ <bpmn:collaboration id="Collaboration_0t1vxrh" name="Participant+timer event">
4
+ <bpmn:participant id="template-ticket-booking-participant" name="Ticket Booking" processRef="Process_zoojna2" />
5
+ <bpmn:participant id="Participant_1l2gxa0" name="Payment" />
6
+ <bpmn:participant id="SeatReservationParticipant" name="Seat Reservation" />
7
+ <bpmn:participant id="Participant_1i465kq" name="Ticket Generation" />
8
+ <bpmn:messageFlow id="Flow_11rhvrd" name="REST (could be gRPC Pub/Sub Engine)" sourceRef="ReserveSeatsActivity" targetRef="SeatReservationParticipant" />
9
+ <bpmn:messageFlow id="Flow_08b5p57" name="REST (could be AMQP)" sourceRef="Activity_0lox1kf" targetRef="Participant_1l2gxa0" />
10
+ <bpmn:messageFlow id="Flow_1lm74ik" name="could be AMQP" sourceRef="Participant_1l2gxa0" targetRef="WaitForPaymentReceivedEvent" />
11
+ <bpmn:messageFlow id="Flow_02bhzx9" name="REST" sourceRef="Activity_0etdda4" targetRef="Participant_1i465kq" />
12
+ </bpmn:collaboration>
13
+ <bpmn:process id="Process_zoojna2" isExecutable="true">
14
+ <bpmn:startEvent id="StartEvent_1" name="Booking submitted">
15
+ <bpmn:outgoing>Flow_19ebf54</bpmn:outgoing>
16
+ </bpmn:startEvent>
17
+ <bpmn:receiveTask id="WaitForPaymentReceivedEvent" name="Wait for &#39;payment received&#39; event" messageRef="Message_04xnjbt">
18
+ <bpmn:incoming>Flow_0mwrroh</bpmn:incoming>
19
+ <bpmn:outgoing>Flow_0podi1a</bpmn:outgoing>
20
+ </bpmn:receiveTask>
21
+ <bpmn:endEvent id="Event_05eni0s" name="Booking cancelled">
22
+ <bpmn:incoming>Flow_012b8wg</bpmn:incoming>
23
+ </bpmn:endEvent>
24
+ <bpmn:serviceTask id="Activity_0etdda4" name="Generate Ticket" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="11" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
25
+ <bpmn:extensionElements>
26
+ <zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
27
+ <zeebe:ioMapping>
28
+ <zeebe:input source="noAuth" target="authentication.type" />
29
+ <zeebe:input source="POST" target="method" />
30
+ <zeebe:input source="https://b6907c60-dba0-49ff-bbb3-9599981ad398.mock.pstmn.io/generateTicket" target="url" />
31
+ <zeebe:input source="=false" target="storeResponse" />
32
+ <zeebe:input source="20" target="connectionTimeoutInSeconds" />
33
+ <zeebe:input source="20" target="readTimeoutInSeconds" />
34
+ <zeebe:input source="={&#10;&#34;ticketNumber&#34; : &#34;AO-112233&#34;&#10;}" target="body" />
35
+ <zeebe:input source="=false" target="ignoreNullValues" />
36
+ </zeebe:ioMapping>
37
+ <zeebe:taskHeaders>
38
+ <zeebe:header key="elementTemplateVersion" value="11" />
39
+ <zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
40
+ <zeebe:header key="resultVariable" />
41
+ <zeebe:header key="resultExpression" />
42
+ <zeebe:header key="retryBackoff" value="PT0S" />
43
+ </zeebe:taskHeaders>
44
+ </bpmn:extensionElements>
45
+ <bpmn:incoming>Flow_0podi1a</bpmn:incoming>
46
+ <bpmn:outgoing>Flow_19x2sei</bpmn:outgoing>
47
+ </bpmn:serviceTask>
48
+ <bpmn:serviceTask id="Activity_0lox1kf" name="Request Payment" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="11" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
49
+ <bpmn:extensionElements>
50
+ <zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
51
+ <zeebe:ioMapping>
52
+ <zeebe:input source="noAuth" target="authentication.type" />
53
+ <zeebe:input source="POST" target="method" />
54
+ <zeebe:input source="=&#34;https://b6907c60-dba0-49ff-bbb3-9599981ad398.mock.pstmn.io/requestPayment&#34;" target="url" />
55
+ <zeebe:input source="=false" target="storeResponse" />
56
+ <zeebe:input source="20" target="connectionTimeoutInSeconds" />
57
+ <zeebe:input source="20" target="readTimeoutInSeconds" />
58
+ <zeebe:input source="={&#10;&#34;ticketNumber&#34; : &#34;AO-112233&#34;,&#10;&#34;flightNumber&#34;: &#34;KJ345N&#34;&#10;}" target="body" />
59
+ <zeebe:input source="=false" target="ignoreNullValues" />
60
+ </zeebe:ioMapping>
61
+ <zeebe:taskHeaders>
62
+ <zeebe:header key="elementTemplateVersion" value="11" />
63
+ <zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
64
+ <zeebe:header key="resultVariable" />
65
+ <zeebe:header key="resultExpression" value="={&#34;paymentRequestId&#34;: response.body.paymentRequestId}" />
66
+ <zeebe:header key="retryBackoff" value="PT0S" />
67
+ </zeebe:taskHeaders>
68
+ </bpmn:extensionElements>
69
+ <bpmn:incoming>Flow_0qbwde5</bpmn:incoming>
70
+ <bpmn:outgoing>Flow_0mwrroh</bpmn:outgoing>
71
+ </bpmn:serviceTask>
72
+ <bpmn:serviceTask id="ReserveSeatsActivity" name="Reserve Seats" zeebe:modelerTemplate="io.camunda.connectors.HttpJson.v2" zeebe:modelerTemplateVersion="11" zeebe:modelerTemplateIcon="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE3LjAzMzUgOC45OTk5N0MxNy4wMzM1IDEzLjQ0NzUgMTMuNDI4MSAxNy4wNTI5IDguOTgwNjUgMTcuMDUyOUM0LjUzMzE2IDE3LjA1MjkgMC45Mjc3NjUgMTMuNDQ3NSAwLjkyNzc2NSA4Ljk5OTk3QzAuOTI3NzY1IDQuNTUyNDggNC41MzMxNiAwLjk0NzA4MyA4Ljk4MDY1IDAuOTQ3MDgzQzEzLjQyODEgMC45NDcwODMgMTcuMDMzNSA0LjU1MjQ4IDE3LjAzMzUgOC45OTk5N1oiIGZpbGw9IiM1MDU1NjIiLz4KPHBhdGggZD0iTTQuOTMxMjYgMTQuMTU3MUw2Ljc4MTA2IDMuNzE0NzFIMTAuMTM3NUMxMS4xOTE3IDMuNzE0NzEgMTEuOTgyNCAzLjk4MzIzIDEyLjUwOTUgNC41MjAyN0MxMy4wNDY1IDUuMDQ3MzYgMTMuMzE1IDUuNzMzNTggMTMuMzE1IDYuNTc4OTJDMTMuMzE1IDcuNDQ0MTQgMTMuMDcxNCA4LjE1NTIyIDEyLjU4NDEgOC43MTIxNUMxMi4xMDY3IDkuMjU5MTMgMTEuNDU1MyA5LjYzNzA1IDEwLjYyOTggOS44NDU5TDEyLjA2MTkgMTQuMTU3MUgxMC4zMzE1TDkuMDMzNjQgMTAuMDI0OUg3LjI0MzUxTDYuNTEyNTQgMTQuMTU3MUg0LjkzMTI2Wk03LjQ5NzExIDguNTkyODFIOS4yNDI0OEM5Ljk5ODMyIDguNTkyODEgMTAuNTkwMSA4LjQyMzc0IDExLjAxNzcgOC4wODU2MUMxMS40NTUzIDcuNzM3NTMgMTEuNjc0MSA3LjI2NTEzIDExLjY3NDEgNi42Njg0MkMxMS42NzQxIDYuMTkxMDYgMTEuNTI0OSA1LjgxODExIDExLjIyNjUgNS41NDk1OUMxMC45MjgyIDUuMjcxMTMgMTAuNDU1OCA1LjEzMTkgOS44MDkzNiA1LjEzMTlIOC4xMDg3NEw3LjQ5NzExIDguNTkyODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K">
73
+ <bpmn:documentation>The process instance stops here and waits until the job is complete. The engine will not call the microservice, but instead wait to be called by a job worker that subscribes to the job type "io.camunda:http-json:1". Once the engine is notified by the worker that the task is completed, the process instance continues.</bpmn:documentation>
74
+ <bpmn:extensionElements>
75
+ <zeebe:taskDefinition type="io.camunda:http-json:1" retries="3" />
76
+ <zeebe:ioMapping>
77
+ <zeebe:input source="noAuth" target="authentication.type" />
78
+ <zeebe:input source="POST" target="method" />
79
+ <zeebe:input source="=&#34;https://b6907c60-dba0-49ff-bbb3-9599981ad398.mock.pstmn.io/reserveSeats&#34;" target="url" />
80
+ <zeebe:input source="=false" target="storeResponse" />
81
+ <zeebe:input source="20" target="connectionTimeoutInSeconds" />
82
+ <zeebe:input source="20" target="readTimeoutInSeconds" />
83
+ <zeebe:input source="={&#10;&#34;ticketNumber&#34; : &#34;AO-112233&#34;,&#10;&#34;flightNumber&#34;: &#34;KJ345N&#34;,&#10;&#34;numOfSeats&#34;: 2&#10;}" target="body" />
84
+ <zeebe:input source="=false" target="ignoreNullValues" />
85
+ </zeebe:ioMapping>
86
+ <zeebe:taskHeaders>
87
+ <zeebe:header key="elementTemplateVersion" value="11" />
88
+ <zeebe:header key="elementTemplateId" value="io.camunda.connectors.HttpJson.v2" />
89
+ <zeebe:header key="resultVariable" />
90
+ <zeebe:header key="resultExpression" value="= {&#34;seatNumbers&#34;: response.body.seatNumbers}" />
91
+ <zeebe:header key="retryBackoff" value="PT0S" />
92
+ </zeebe:taskHeaders>
93
+ </bpmn:extensionElements>
94
+ <bpmn:incoming>Flow_19ebf54</bpmn:incoming>
95
+ <bpmn:outgoing>Flow_0qbwde5</bpmn:outgoing>
96
+ </bpmn:serviceTask>
97
+ <bpmn:boundaryEvent id="AfterTwentySecondsTimer" name="after 20 seconds" attachedToRef="WaitForPaymentReceivedEvent">
98
+ <bpmn:documentation>This timer event is interrupting. The engine will cancel the Receive Task "Wait for payment received event" if it is not completed within 20 seconds. In case of the time out, the engine will end the process in the End Event "Booking cancelled".</bpmn:documentation>
99
+ <bpmn:outgoing>Flow_012b8wg</bpmn:outgoing>
100
+ <bpmn:timerEventDefinition id="TimerEventDefinition_17ojlyf">
101
+ <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT20S</bpmn:timeDuration>
102
+ </bpmn:timerEventDefinition>
103
+ </bpmn:boundaryEvent>
104
+ <bpmn:sequenceFlow id="Flow_19ebf54" sourceRef="StartEvent_1" targetRef="ReserveSeatsActivity" />
105
+ <bpmn:sequenceFlow id="Flow_0mwrroh" sourceRef="Activity_0lox1kf" targetRef="WaitForPaymentReceivedEvent" />
106
+ <bpmn:sequenceFlow id="Flow_0podi1a" sourceRef="WaitForPaymentReceivedEvent" targetRef="Activity_0etdda4" />
107
+ <bpmn:sequenceFlow id="Flow_19x2sei" sourceRef="Activity_0etdda4" targetRef="Event_1mqmjv4" />
108
+ <bpmn:sequenceFlow id="Flow_012b8wg" sourceRef="AfterTwentySecondsTimer" targetRef="Event_05eni0s" />
109
+ <bpmn:sequenceFlow id="Flow_0qbwde5" sourceRef="ReserveSeatsActivity" targetRef="Activity_0lox1kf" />
110
+ <bpmn:endEvent id="Event_1mqmjv4" name="Booking succeeded">
111
+ <bpmn:incoming>Flow_19x2sei</bpmn:incoming>
112
+ </bpmn:endEvent>
113
+ </bpmn:process>
114
+ <bpmn:message id="Message_04xnjbt" name="msg-payment-received">
115
+ <bpmn:extensionElements>
116
+ <zeebe:subscription correlationKey="=paymentRequestId" />
117
+ </bpmn:extensionElements>
118
+ </bpmn:message>
119
+ <bpmn:error id="Error_11kp03o" name="ErrorSeatsNotAvailable" errorCode="ErrorSeatsNotAvailable" />
120
+ <bpmndi:BPMNDiagram id="BPMNDiagram_1">
121
+ <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0t1vxrh">
122
+ <bpmndi:BPMNShape id="Participant_0yfjoqi_di" bpmnElement="template-ticket-booking-participant" isHorizontal="true">
123
+ <dc:Bounds x="160" y="79" width="938" height="301" />
124
+ <bpmndi:BPMNLabel />
125
+ </bpmndi:BPMNShape>
126
+ <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
127
+ <dc:Bounds x="229" y="189" width="36" height="36" />
128
+ <bpmndi:BPMNLabel>
129
+ <dc:Bounds x="223" y="232" width="48" height="27" />
130
+ </bpmndi:BPMNLabel>
131
+ </bpmndi:BPMNShape>
132
+ <bpmndi:BPMNShape id="Activity_0z5d04d_di" bpmnElement="WaitForPaymentReceivedEvent">
133
+ <dc:Bounds x="640" y="167" width="100" height="80" />
134
+ <bpmndi:BPMNLabel />
135
+ </bpmndi:BPMNShape>
136
+ <bpmndi:BPMNShape id="Event_05eni0s_di" bpmnElement="Event_05eni0s">
137
+ <dc:Bounds x="762" y="312" width="36" height="36" />
138
+ <bpmndi:BPMNLabel>
139
+ <dc:Bounds x="735" y="355" width="90" height="14" />
140
+ </bpmndi:BPMNLabel>
141
+ </bpmndi:BPMNShape>
142
+ <bpmndi:BPMNShape id="Activity_08lfvn8_di" bpmnElement="Activity_0etdda4">
143
+ <dc:Bounds x="790" y="167" width="100" height="80" />
144
+ </bpmndi:BPMNShape>
145
+ <bpmndi:BPMNShape id="Activity_0uh4iz4_di" bpmnElement="Activity_0lox1kf">
146
+ <dc:Bounds x="500" y="167" width="100" height="80" />
147
+ </bpmndi:BPMNShape>
148
+ <bpmndi:BPMNShape id="Activity_0esfq8r_di" bpmnElement="ReserveSeatsActivity">
149
+ <dc:Bounds x="320" y="167" width="100" height="80" />
150
+ </bpmndi:BPMNShape>
151
+ <bpmndi:BPMNShape id="Event_1mqmjv4_di" bpmnElement="Event_1mqmjv4">
152
+ <dc:Bounds x="962" y="189" width="36" height="36" />
153
+ <bpmndi:BPMNLabel>
154
+ <dc:Bounds x="953" y="232" width="54" height="27" />
155
+ </bpmndi:BPMNLabel>
156
+ </bpmndi:BPMNShape>
157
+ <bpmndi:BPMNShape id="Event_0pqivlb_di" bpmnElement="AfterTwentySecondsTimer">
158
+ <dc:Bounds x="692" y="229" width="36" height="36" />
159
+ <bpmndi:BPMNLabel>
160
+ <dc:Bounds x="723" y="263" width="74" height="14" />
161
+ </bpmndi:BPMNLabel>
162
+ </bpmndi:BPMNShape>
163
+ <bpmndi:BPMNEdge id="Flow_19ebf54_di" bpmnElement="Flow_19ebf54">
164
+ <di:waypoint x="265" y="207" />
165
+ <di:waypoint x="320" y="207" />
166
+ </bpmndi:BPMNEdge>
167
+ <bpmndi:BPMNEdge id="Flow_0mwrroh_di" bpmnElement="Flow_0mwrroh">
168
+ <di:waypoint x="600" y="207" />
169
+ <di:waypoint x="640" y="207" />
170
+ </bpmndi:BPMNEdge>
171
+ <bpmndi:BPMNEdge id="Flow_0podi1a_di" bpmnElement="Flow_0podi1a">
172
+ <di:waypoint x="740" y="207" />
173
+ <di:waypoint x="790" y="207" />
174
+ </bpmndi:BPMNEdge>
175
+ <bpmndi:BPMNEdge id="Flow_19x2sei_di" bpmnElement="Flow_19x2sei">
176
+ <di:waypoint x="890" y="207" />
177
+ <di:waypoint x="962" y="207" />
178
+ </bpmndi:BPMNEdge>
179
+ <bpmndi:BPMNEdge id="Flow_012b8wg_di" bpmnElement="Flow_012b8wg">
180
+ <di:waypoint x="710" y="265" />
181
+ <di:waypoint x="710" y="330" />
182
+ <di:waypoint x="762" y="330" />
183
+ </bpmndi:BPMNEdge>
184
+ <bpmndi:BPMNEdge id="Flow_0qbwde5_di" bpmnElement="Flow_0qbwde5">
185
+ <di:waypoint x="420" y="207" />
186
+ <di:waypoint x="500" y="207" />
187
+ </bpmndi:BPMNEdge>
188
+ <bpmndi:BPMNShape id="Participant_1xi7sa7_di" bpmnElement="Participant_1l2gxa0" isHorizontal="true">
189
+ <dc:Bounds x="474" y="450" width="300" height="60" />
190
+ </bpmndi:BPMNShape>
191
+ <bpmndi:BPMNShape id="Participant_03ofn7t_di" bpmnElement="SeatReservationParticipant" isHorizontal="true">
192
+ <dc:Bounds x="160" y="450" width="300" height="60" />
193
+ </bpmndi:BPMNShape>
194
+ <bpmndi:BPMNShape id="Participant_0whvqa2_di" bpmnElement="Participant_1i465kq" isHorizontal="true">
195
+ <dc:Bounds x="800" y="450" width="300" height="60" />
196
+ </bpmndi:BPMNShape>
197
+ <bpmndi:BPMNEdge id="Flow_11rhvrd_di" bpmnElement="Flow_11rhvrd">
198
+ <di:waypoint x="340" y="247" />
199
+ <di:waypoint x="340" y="450" />
200
+ <bpmndi:BPMNLabel>
201
+ <dc:Bounds x="352" y="403" width="78" height="40" />
202
+ </bpmndi:BPMNLabel>
203
+ </bpmndi:BPMNEdge>
204
+ <bpmndi:BPMNEdge id="Flow_08b5p57_di" bpmnElement="Flow_08b5p57">
205
+ <di:waypoint x="550" y="247" />
206
+ <di:waypoint x="550" y="450" />
207
+ <bpmndi:BPMNLabel>
208
+ <dc:Bounds x="561" y="393" width="78" height="27" />
209
+ </bpmndi:BPMNLabel>
210
+ </bpmndi:BPMNEdge>
211
+ <bpmndi:BPMNEdge id="Flow_1lm74ik_di" bpmnElement="Flow_1lm74ik">
212
+ <di:waypoint x="660" y="450" />
213
+ <di:waypoint x="660" y="247" />
214
+ <bpmndi:BPMNLabel>
215
+ <dc:Bounds x="671" y="393" width="78" height="14" />
216
+ </bpmndi:BPMNLabel>
217
+ </bpmndi:BPMNEdge>
218
+ <bpmndi:BPMNEdge id="Flow_02bhzx9_di" bpmnElement="Flow_02bhzx9">
219
+ <di:waypoint x="840" y="247" />
220
+ <di:waypoint x="840" y="450" />
221
+ <bpmndi:BPMNLabel>
222
+ <dc:Bounds x="845" y="393" width="30" height="14" />
223
+ </bpmndi:BPMNLabel>
224
+ </bpmndi:BPMNEdge>
225
+ </bpmndi:BPMNPlane>
226
+ </bpmndi:BPMNDiagram>
227
+ </bpmn:definitions>