Skip to content
Snippets Groups Projects
Commit 6d708982 authored by jurgenhaas's avatar jurgenhaas
Browse files

Update recipe for ECA 2 compatibility

parent 77c4a26d
Branches
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ id: eca_test_0007 ...@@ -8,7 +8,7 @@ id: eca_test_0007
modeller: bpmn_io modeller: bpmn_io
label: 'Redirects for deleted entities' label: 'Redirects for deleted entities'
version: v1 version: v1
weight: null weight: 0
events: events:
Event_13udgh1: Event_13udgh1:
plugin: 'content_entity:delete' plugin: 'content_entity:delete'
...@@ -28,7 +28,7 @@ actions: ...@@ -28,7 +28,7 @@ actions:
configuration: configuration:
token_name: redirect token_name: redirect
type: 'redirect redirect' type: 'redirect redirect'
langcode: und langcode: _interface
label: 'ECA created for node [entity:nid]' label: 'ECA created for node [entity:nid]'
published: true published: true
owner: '' owner: ''
......
...@@ -18,14 +18,14 @@ modeldata: | ...@@ -18,14 +18,14 @@ modeldata: |
<bpmn2:documentation>When a node gets deleted, this model creates an automatic redirect config entity to redirect visitors who want to go to the deleted node to the contact form instead.</bpmn2:documentation> <bpmn2:documentation>When a node gets deleted, this model creates an automatic redirect config entity to redirect visitors who want to go to the deleted node to the contact form instead.</bpmn2:documentation>
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="Tags" value="test models,redirect,create entity" /> <camunda:property name="Tags" value="test models,redirect,create entity"/>
<camunda:property name="Changelog v1" value="Initial version" /> <camunda:property name="Changelog v1" value="Initial version"/>
</camunda:properties> </camunda:properties>
</bpmn2:extensionElements> </bpmn2:extensionElements>
<bpmn2:startEvent id="Event_13udgh1" name="Delete node" camunda:modelerTemplate="org.drupal.event.content_entity:delete"> <bpmn2:startEvent id="Event_13udgh1" name="Delete node" camunda:modelerTemplate="org.drupal.event.content_entity:delete">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="content_entity:delete" /> <camunda:property name="pluginid" value="content_entity:delete"/>
</camunda:properties> </camunda:properties>
<camunda:field name="type"> <camunda:field name="type">
<camunda:string>node _all</camunda:string> <camunda:string>node _all</camunda:string>
...@@ -36,7 +36,7 @@ modeldata: | ...@@ -36,7 +36,7 @@ modeldata: |
<bpmn2:task id="Activity_1fhsh60" name="Create redirect" camunda:modelerTemplate="org.drupal.action.eca_new_entity"> <bpmn2:task id="Activity_1fhsh60" name="Create redirect" camunda:modelerTemplate="org.drupal.action.eca_new_entity">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="eca_new_entity" /> <camunda:property name="pluginid" value="eca_new_entity"/>
</camunda:properties> </camunda:properties>
<camunda:field name="token_name"> <camunda:field name="token_name">
<camunda:string>redirect</camunda:string> <camunda:string>redirect</camunda:string>
...@@ -45,7 +45,7 @@ modeldata: | ...@@ -45,7 +45,7 @@ modeldata: |
<camunda:string>redirect redirect</camunda:string> <camunda:string>redirect redirect</camunda:string>
</camunda:field> </camunda:field>
<camunda:field name="langcode"> <camunda:field name="langcode">
<camunda:string>und</camunda:string> <camunda:string>_interface</camunda:string>
</camunda:field> </camunda:field>
<camunda:field name="label"> <camunda:field name="label">
<camunda:string>ECA created for node [entity:nid]</camunda:string> <camunda:string>ECA created for node [entity:nid]</camunda:string>
...@@ -54,20 +54,20 @@ modeldata: | ...@@ -54,20 +54,20 @@ modeldata: |
<camunda:string>yes</camunda:string> <camunda:string>yes</camunda:string>
</camunda:field> </camunda:field>
<camunda:field name="owner"> <camunda:field name="owner">
<camunda:string></camunda:string> <camunda:string/>
</camunda:field> </camunda:field>
<camunda:field name="object"> <camunda:field name="object">
<camunda:string></camunda:string> <camunda:string/>
</camunda:field> </camunda:field>
</bpmn2:extensionElements> </bpmn2:extensionElements>
<bpmn2:incoming>Flow_0ndljsg</bpmn2:incoming> <bpmn2:incoming>Flow_0ndljsg</bpmn2:incoming>
<bpmn2:outgoing>Flow_1e7yklp</bpmn2:outgoing> <bpmn2:outgoing>Flow_1e7yklp</bpmn2:outgoing>
</bpmn2:task> </bpmn2:task>
<bpmn2:sequenceFlow id="Flow_0ndljsg" sourceRef="Event_13udgh1" targetRef="Activity_1fhsh60" /> <bpmn2:sequenceFlow id="Flow_0ndljsg" sourceRef="Event_13udgh1" targetRef="Activity_1fhsh60"/>
<bpmn2:task id="Activity_1l6xott" name="Set source path" camunda:modelerTemplate="org.drupal.action.eca_set_field_value"> <bpmn2:task id="Activity_1l6xott" name="Set source path" camunda:modelerTemplate="org.drupal.action.eca_set_field_value">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="eca_set_field_value" /> <camunda:property name="pluginid" value="eca_set_field_value"/>
</camunda:properties> </camunda:properties>
<camunda:field name="field_name"> <camunda:field name="field_name">
<camunda:string>redirect_source</camunda:string> <camunda:string>redirect_source</camunda:string>
...@@ -94,11 +94,11 @@ modeldata: | ...@@ -94,11 +94,11 @@ modeldata: |
<bpmn2:incoming>Flow_1e7yklp</bpmn2:incoming> <bpmn2:incoming>Flow_1e7yklp</bpmn2:incoming>
<bpmn2:outgoing>Flow_1gixhcl</bpmn2:outgoing> <bpmn2:outgoing>Flow_1gixhcl</bpmn2:outgoing>
</bpmn2:task> </bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1e7yklp" sourceRef="Activity_1fhsh60" targetRef="Activity_1l6xott" /> <bpmn2:sequenceFlow id="Flow_1e7yklp" sourceRef="Activity_1fhsh60" targetRef="Activity_1l6xott"/>
<bpmn2:task id="Activity_1yzv4qk" name="Set destination" camunda:modelerTemplate="org.drupal.action.eca_set_field_value"> <bpmn2:task id="Activity_1yzv4qk" name="Set destination" camunda:modelerTemplate="org.drupal.action.eca_set_field_value">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="eca_set_field_value" /> <camunda:property name="pluginid" value="eca_set_field_value"/>
</camunda:properties> </camunda:properties>
<camunda:field name="field_name"> <camunda:field name="field_name">
<camunda:string>redirect_redirect.uri</camunda:string> <camunda:string>redirect_redirect.uri</camunda:string>
...@@ -125,17 +125,17 @@ modeldata: | ...@@ -125,17 +125,17 @@ modeldata: |
<bpmn2:incoming>Flow_1gixhcl</bpmn2:incoming> <bpmn2:incoming>Flow_1gixhcl</bpmn2:incoming>
<bpmn2:outgoing>Flow_0nyj60t</bpmn2:outgoing> <bpmn2:outgoing>Flow_0nyj60t</bpmn2:outgoing>
</bpmn2:task> </bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1gixhcl" sourceRef="Activity_1l6xott" targetRef="Activity_1yzv4qk" /> <bpmn2:sequenceFlow id="Flow_1gixhcl" sourceRef="Activity_1l6xott" targetRef="Activity_1yzv4qk"/>
<bpmn2:task id="Activity_0yzp82f" name="Set title" camunda:modelerTemplate="org.drupal.action.eca_set_field_value"> <bpmn2:task id="Activity_0yzp82f" name="Set title" camunda:modelerTemplate="org.drupal.action.eca_set_field_value">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="eca_set_field_value" /> <camunda:property name="pluginid" value="eca_set_field_value"/>
</camunda:properties> </camunda:properties>
<camunda:field name="field_name"> <camunda:field name="field_name">
<camunda:string>redirect_redirect.title</camunda:string> <camunda:string>redirect_redirect.title</camunda:string>
</camunda:field> </camunda:field>
<camunda:field name="field_value"> <camunda:field name="field_value">
<camunda:string></camunda:string> <camunda:string/>
</camunda:field> </camunda:field>
<camunda:field name="save_entity"> <camunda:field name="save_entity">
<camunda:string>no</camunda:string> <camunda:string>no</camunda:string>
...@@ -156,11 +156,11 @@ modeldata: | ...@@ -156,11 +156,11 @@ modeldata: |
<bpmn2:incoming>Flow_0nyj60t</bpmn2:incoming> <bpmn2:incoming>Flow_0nyj60t</bpmn2:incoming>
<bpmn2:outgoing>Flow_1172ynu</bpmn2:outgoing> <bpmn2:outgoing>Flow_1172ynu</bpmn2:outgoing>
</bpmn2:task> </bpmn2:task>
<bpmn2:sequenceFlow id="Flow_0nyj60t" sourceRef="Activity_1yzv4qk" targetRef="Activity_0yzp82f" /> <bpmn2:sequenceFlow id="Flow_0nyj60t" sourceRef="Activity_1yzv4qk" targetRef="Activity_0yzp82f"/>
<bpmn2:task id="Activity_0opq15l" name="Set status" camunda:modelerTemplate="org.drupal.action.eca_set_field_value"> <bpmn2:task id="Activity_0opq15l" name="Set status" camunda:modelerTemplate="org.drupal.action.eca_set_field_value">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="eca_set_field_value" /> <camunda:property name="pluginid" value="eca_set_field_value"/>
</camunda:properties> </camunda:properties>
<camunda:field name="field_name"> <camunda:field name="field_name">
<camunda:string>status_code</camunda:string> <camunda:string>status_code</camunda:string>
...@@ -186,50 +186,50 @@ modeldata: | ...@@ -186,50 +186,50 @@ modeldata: |
</bpmn2:extensionElements> </bpmn2:extensionElements>
<bpmn2:incoming>Flow_1172ynu</bpmn2:incoming> <bpmn2:incoming>Flow_1172ynu</bpmn2:incoming>
</bpmn2:task> </bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1172ynu" sourceRef="Activity_0yzp82f" targetRef="Activity_0opq15l" /> <bpmn2:sequenceFlow id="Flow_1172ynu" sourceRef="Activity_0yzp82f" targetRef="Activity_0opq15l"/>
</bpmn2:process> </bpmn2:process>
<bpmndi:BPMNDiagram id="sid-dff21b0c-4783-4dca-a9f5-97409e72cb12"> <bpmndi:BPMNDiagram id="sid-dff21b0c-4783-4dca-a9f5-97409e72cb12">
<bpmndi:BPMNPlane id="sid-0b83d9ad-2068-408d-b2b7-6bce91830b9b" bpmnElement="eca_test_0007"> <bpmndi:BPMNPlane id="sid-0b83d9ad-2068-408d-b2b7-6bce91830b9b" bpmnElement="eca_test_0007">
<bpmndi:BPMNShape id="Event_13udgh1_di" bpmnElement="Event_13udgh1"> <bpmndi:BPMNShape id="Event_13udgh1_di" bpmnElement="Event_13udgh1">
<dc:Bounds x="322" y="152" width="36" height="36" /> <dc:Bounds x="322" y="152" width="36" height="36"/>
<bpmndi:BPMNLabel> <bpmndi:BPMNLabel>
<dc:Bounds x="310" y="195" width="60" height="14" /> <dc:Bounds x="310" y="195" width="60" height="14"/>
</bpmndi:BPMNLabel> </bpmndi:BPMNLabel>
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1fhsh60_di" bpmnElement="Activity_1fhsh60"> <bpmndi:BPMNShape id="Activity_1fhsh60_di" bpmnElement="Activity_1fhsh60">
<dc:Bounds x="410" y="130" width="100" height="80" /> <dc:Bounds x="410" y="130" width="100" height="80"/>
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1l6xott_di" bpmnElement="Activity_1l6xott"> <bpmndi:BPMNShape id="Activity_1l6xott_di" bpmnElement="Activity_1l6xott">
<dc:Bounds x="570" y="130" width="100" height="80" /> <dc:Bounds x="570" y="130" width="100" height="80"/>
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1yzv4qk_di" bpmnElement="Activity_1yzv4qk"> <bpmndi:BPMNShape id="Activity_1yzv4qk_di" bpmnElement="Activity_1yzv4qk">
<dc:Bounds x="730" y="130" width="100" height="80" /> <dc:Bounds x="730" y="130" width="100" height="80"/>
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0yzp82f_di" bpmnElement="Activity_0yzp82f"> <bpmndi:BPMNShape id="Activity_0yzp82f_di" bpmnElement="Activity_0yzp82f">
<dc:Bounds x="890" y="130" width="100" height="80" /> <dc:Bounds x="890" y="130" width="100" height="80"/>
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0opq15l_di" bpmnElement="Activity_0opq15l"> <bpmndi:BPMNShape id="Activity_0opq15l_di" bpmnElement="Activity_0opq15l">
<dc:Bounds x="1050" y="130" width="100" height="80" /> <dc:Bounds x="1050" y="130" width="100" height="80"/>
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0ndljsg_di" bpmnElement="Flow_0ndljsg"> <bpmndi:BPMNEdge id="Flow_0ndljsg_di" bpmnElement="Flow_0ndljsg">
<di:waypoint x="358" y="170" /> <di:waypoint x="358" y="170"/>
<di:waypoint x="410" y="170" /> <di:waypoint x="410" y="170"/>
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1e7yklp_di" bpmnElement="Flow_1e7yklp"> <bpmndi:BPMNEdge id="Flow_1e7yklp_di" bpmnElement="Flow_1e7yklp">
<di:waypoint x="510" y="170" /> <di:waypoint x="510" y="170"/>
<di:waypoint x="570" y="170" /> <di:waypoint x="570" y="170"/>
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1gixhcl_di" bpmnElement="Flow_1gixhcl"> <bpmndi:BPMNEdge id="Flow_1gixhcl_di" bpmnElement="Flow_1gixhcl">
<di:waypoint x="670" y="170" /> <di:waypoint x="670" y="170"/>
<di:waypoint x="730" y="170" /> <di:waypoint x="730" y="170"/>
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0nyj60t_di" bpmnElement="Flow_0nyj60t"> <bpmndi:BPMNEdge id="Flow_0nyj60t_di" bpmnElement="Flow_0nyj60t">
<di:waypoint x="830" y="170" /> <di:waypoint x="830" y="170"/>
<di:waypoint x="890" y="170" /> <di:waypoint x="890" y="170"/>
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1172ynu_di" bpmnElement="Flow_1172ynu"> <bpmndi:BPMNEdge id="Flow_1172ynu_di" bpmnElement="Flow_1172ynu">
<di:waypoint x="990" y="170" /> <di:waypoint x="990" y="170"/>
<di:waypoint x="1050" y="170" /> <di:waypoint x="1050" y="170"/>
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
</bpmndi:BPMNPlane> </bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram> </bpmndi:BPMNDiagram>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment