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
modeller: bpmn_io
label: 'Redirects for deleted entities'
version: v1
weight: null
weight: 0
events:
Event_13udgh1:
plugin: 'content_entity:delete'
......@@ -28,7 +28,7 @@ actions:
configuration:
token_name: redirect
type: 'redirect redirect'
langcode: und
langcode: _interface
label: 'ECA created for node [entity:nid]'
published: true
owner: ''
......
......@@ -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:extensionElements>
<camunda:properties>
<camunda:property name="Tags" value="test models,redirect,create entity" />
<camunda:property name="Changelog v1" value="Initial version" />
<camunda:property name="Tags" value="test models,redirect,create entity"/>
<camunda:property name="Changelog v1" value="Initial version"/>
</camunda:properties>
</bpmn2:extensionElements>
<bpmn2:startEvent id="Event_13udgh1" name="Delete node" camunda:modelerTemplate="org.drupal.event.content_entity:delete">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="content_entity:delete" />
<camunda:property name="pluginid" value="content_entity:delete"/>
</camunda:properties>
<camunda:field name="type">
<camunda:string>node _all</camunda:string>
......@@ -36,7 +36,7 @@ modeldata: |
<bpmn2:task id="Activity_1fhsh60" name="Create redirect" camunda:modelerTemplate="org.drupal.action.eca_new_entity">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_new_entity" />
<camunda:property name="pluginid" value="eca_new_entity"/>
</camunda:properties>
<camunda:field name="token_name">
<camunda:string>redirect</camunda:string>
......@@ -45,7 +45,7 @@ modeldata: |
<camunda:string>redirect redirect</camunda:string>
</camunda:field>
<camunda:field name="langcode">
<camunda:string>und</camunda:string>
<camunda:string>_interface</camunda:string>
</camunda:field>
<camunda:field name="label">
<camunda:string>ECA created for node [entity:nid]</camunda:string>
......@@ -54,20 +54,20 @@ modeldata: |
<camunda:string>yes</camunda:string>
</camunda:field>
<camunda:field name="owner">
<camunda:string></camunda:string>
<camunda:string/>
</camunda:field>
<camunda:field name="object">
<camunda:string></camunda:string>
<camunda:string/>
</camunda:field>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_0ndljsg</bpmn2:incoming>
<bpmn2:outgoing>Flow_1e7yklp</bpmn2:outgoing>
</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:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_set_field_value" />
<camunda:property name="pluginid" value="eca_set_field_value"/>
</camunda:properties>
<camunda:field name="field_name">
<camunda:string>redirect_source</camunda:string>
......@@ -94,11 +94,11 @@ modeldata: |
<bpmn2:incoming>Flow_1e7yklp</bpmn2:incoming>
<bpmn2:outgoing>Flow_1gixhcl</bpmn2:outgoing>
</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:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_set_field_value" />
<camunda:property name="pluginid" value="eca_set_field_value"/>
</camunda:properties>
<camunda:field name="field_name">
<camunda:string>redirect_redirect.uri</camunda:string>
......@@ -125,17 +125,17 @@ modeldata: |
<bpmn2:incoming>Flow_1gixhcl</bpmn2:incoming>
<bpmn2:outgoing>Flow_0nyj60t</bpmn2:outgoing>
</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:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_set_field_value" />
<camunda:property name="pluginid" value="eca_set_field_value"/>
</camunda:properties>
<camunda:field name="field_name">
<camunda:string>redirect_redirect.title</camunda:string>
</camunda:field>
<camunda:field name="field_value">
<camunda:string></camunda:string>
<camunda:string/>
</camunda:field>
<camunda:field name="save_entity">
<camunda:string>no</camunda:string>
......@@ -156,11 +156,11 @@ modeldata: |
<bpmn2:incoming>Flow_0nyj60t</bpmn2:incoming>
<bpmn2:outgoing>Flow_1172ynu</bpmn2:outgoing>
</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:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_set_field_value" />
<camunda:property name="pluginid" value="eca_set_field_value"/>
</camunda:properties>
<camunda:field name="field_name">
<camunda:string>status_code</camunda:string>
......@@ -186,50 +186,50 @@ modeldata: |
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1172ynu</bpmn2:incoming>
</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>
<bpmndi:BPMNDiagram id="sid-dff21b0c-4783-4dca-a9f5-97409e72cb12">
<bpmndi:BPMNPlane id="sid-0b83d9ad-2068-408d-b2b7-6bce91830b9b" bpmnElement="eca_test_0007">
<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>
<dc:Bounds x="310" y="195" width="60" height="14" />
<dc:Bounds x="310" y="195" width="60" height="14"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<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 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 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 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 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:BPMNEdge id="Flow_0ndljsg_di" bpmnElement="Flow_0ndljsg">
<di:waypoint x="358" y="170" />
<di:waypoint x="410" y="170" />
<di:waypoint x="358" y="170"/>
<di:waypoint x="410" y="170"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1e7yklp_di" bpmnElement="Flow_1e7yklp">
<di:waypoint x="510" y="170" />
<di:waypoint x="570" y="170" />
<di:waypoint x="510" y="170"/>
<di:waypoint x="570" y="170"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1gixhcl_di" bpmnElement="Flow_1gixhcl">
<di:waypoint x="670" y="170" />
<di:waypoint x="730" y="170" />
<di:waypoint x="670" y="170"/>
<di:waypoint x="730" y="170"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0nyj60t_di" bpmnElement="Flow_0nyj60t">
<di:waypoint x="830" y="170" />
<di:waypoint x="890" y="170" />
<di:waypoint x="830" y="170"/>
<di:waypoint x="890" y="170"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1172ynu_di" bpmnElement="Flow_1172ynu">
<di:waypoint x="990" y="170" />
<di:waypoint x="1050" y="170" />
<di:waypoint x="990" y="170"/>
<di:waypoint x="1050" y="170"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment