Skip to content
Snippets Groups Projects
Commit 58cbc8c9 authored by jurgenhaas's avatar jurgenhaas
Browse files

Update recipe for ECA 2 compatibility

parent b892cac0
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ id: eca_lib_0003 ...@@ -9,7 +9,7 @@ id: eca_lib_0003
modeller: bpmn_io modeller: bpmn_io
label: 'Redirect unpublished' label: 'Redirect unpublished'
version: v1 version: v1
weight: null weight: 0
events: events:
Event_0l86rxh: Event_0l86rxh:
plugin: 'kernel:request' plugin: 'kernel:request'
......
...@@ -17,14 +17,14 @@ modeldata: | ...@@ -17,14 +17,14 @@ modeldata: |
<bpmn2:documentation>If a user requests an unpublished article node, but doesn't have the permission to view unpublished nodes, then the request gets redirected to the contact form.</bpmn2:documentation> <bpmn2:documentation>If a user requests an unpublished article node, but doesn't have the permission to view unpublished nodes, then the request gets redirected to the contact form.</bpmn2:documentation>
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="Tags" value="use case, redirect" /> <camunda:property name="Tags" value="use case, redirect"/>
<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_0l86rxh" name="Start request" camunda:modelerTemplate="org.drupal.event.kernel:request"> <bpmn2:startEvent id="Event_0l86rxh" name="Start request" camunda:modelerTemplate="org.drupal.event.kernel:request">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="kernel:request" /> <camunda:property name="pluginid" value="kernel:request"/>
</camunda:properties> </camunda:properties>
</bpmn2:extensionElements> </bpmn2:extensionElements>
<bpmn2:outgoing>Flow_1xa65m3</bpmn2:outgoing> <bpmn2:outgoing>Flow_1xa65m3</bpmn2:outgoing>
...@@ -32,7 +32,7 @@ modeldata: | ...@@ -32,7 +32,7 @@ modeldata: |
<bpmn2:task id="Activity_0yxnsha" name="Add node from route to token" camunda:modelerTemplate="org.drupal.action.eca_token_load_route_param"> <bpmn2:task id="Activity_0yxnsha" name="Add node from route to token" camunda:modelerTemplate="org.drupal.action.eca_token_load_route_param">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="eca_token_load_route_param" /> <camunda:property name="pluginid" value="eca_token_load_route_param"/>
</camunda:properties> </camunda:properties>
<camunda:field name="token_name"> <camunda:field name="token_name">
<camunda:string>mynode</camunda:string> <camunda:string>mynode</camunda:string>
...@@ -50,7 +50,7 @@ modeldata: | ...@@ -50,7 +50,7 @@ modeldata: |
<bpmn2:sequenceFlow id="Flow_0vgujvv" name="Is it a node request?" camunda:modelerTemplate="org.drupal.condition.eca_route_match" sourceRef="Activity_1k7t4h4" targetRef="Activity_0yxnsha"> <bpmn2:sequenceFlow id="Flow_0vgujvv" name="Is it a node request?" camunda:modelerTemplate="org.drupal.condition.eca_route_match" sourceRef="Activity_1k7t4h4" targetRef="Activity_0yxnsha">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="eca_route_match" /> <camunda:property name="pluginid" value="eca_route_match"/>
</camunda:properties> </camunda:properties>
<camunda:field name="operator"> <camunda:field name="operator">
<camunda:string>equal</camunda:string> <camunda:string>equal</camunda:string>
...@@ -75,7 +75,7 @@ modeldata: | ...@@ -75,7 +75,7 @@ modeldata: |
<bpmn2:task id="Activity_1bcku98" name="Print node title as message" camunda:modelerTemplate="org.drupal.action.action_message_action"> <bpmn2:task id="Activity_1bcku98" name="Print node title as message" camunda:modelerTemplate="org.drupal.action.action_message_action">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="action_message_action" /> <camunda:property name="pluginid" value="action_message_action"/>
</camunda:properties> </camunda:properties>
<camunda:field name="message"> <camunda:field name="message">
<camunda:string>You are visiting "[mynode:title]"</camunda:string> <camunda:string>You are visiting "[mynode:title]"</camunda:string>
...@@ -87,7 +87,7 @@ modeldata: | ...@@ -87,7 +87,7 @@ modeldata: |
<bpmn2:sequenceFlow id="Flow_057atra" name="Is article?" camunda:modelerTemplate="org.drupal.condition.eca_entity_type_bundle" sourceRef="Activity_0yxnsha" targetRef="Activity_1bcku98"> <bpmn2:sequenceFlow id="Flow_057atra" name="Is article?" camunda:modelerTemplate="org.drupal.condition.eca_entity_type_bundle" sourceRef="Activity_0yxnsha" targetRef="Activity_1bcku98">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="eca_entity_type_bundle" /> <camunda:property name="pluginid" value="eca_entity_type_bundle"/>
</camunda:properties> </camunda:properties>
<camunda:field name="type"> <camunda:field name="type">
<camunda:string>node article</camunda:string> <camunda:string>node article</camunda:string>
...@@ -103,7 +103,7 @@ modeldata: | ...@@ -103,7 +103,7 @@ modeldata: |
<bpmn2:task id="Activity_1e9brxq" name="Redirect" camunda:modelerTemplate="org.drupal.action.action_goto_action"> <bpmn2:task id="Activity_1e9brxq" name="Redirect" camunda:modelerTemplate="org.drupal.action.action_goto_action">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="action_goto_action" /> <camunda:property name="pluginid" value="action_goto_action"/>
</camunda:properties> </camunda:properties>
<camunda:field name="url"> <camunda:field name="url">
<camunda:string>/contact</camunda:string> <camunda:string>/contact</camunda:string>
...@@ -114,7 +114,7 @@ modeldata: | ...@@ -114,7 +114,7 @@ modeldata: |
<bpmn2:sequenceFlow id="Flow_1wyatbm" name="Unpublished?" camunda:modelerTemplate="org.drupal.condition.eca_entity_field_value" sourceRef="Activity_1bcku98" targetRef="Activity_1e9brxq"> <bpmn2:sequenceFlow id="Flow_1wyatbm" name="Unpublished?" camunda:modelerTemplate="org.drupal.condition.eca_entity_field_value" sourceRef="Activity_1bcku98" targetRef="Activity_1e9brxq">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="eca_entity_field_value" /> <camunda:property name="pluginid" value="eca_entity_field_value"/>
</camunda:properties> </camunda:properties>
<camunda:field name="field_name"> <camunda:field name="field_name">
<camunda:string>status</camunda:string> <camunda:string>status</camunda:string>
...@@ -142,7 +142,7 @@ modeldata: | ...@@ -142,7 +142,7 @@ modeldata: |
<bpmn2:task id="Activity_1k7t4h4" name="Switch User" camunda:modelerTemplate="org.drupal.action.eca_switch_account"> <bpmn2:task id="Activity_1k7t4h4" name="Switch User" camunda:modelerTemplate="org.drupal.action.eca_switch_account">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="eca_switch_account" /> <camunda:property name="pluginid" value="eca_switch_account"/>
</camunda:properties> </camunda:properties>
<camunda:field name="user_id"> <camunda:field name="user_id">
<camunda:string>1</camunda:string> <camunda:string>1</camunda:string>
...@@ -154,7 +154,7 @@ modeldata: | ...@@ -154,7 +154,7 @@ modeldata: |
<bpmn2:sequenceFlow id="Flow_1xa65m3" name="May not view unpublished content?" camunda:modelerTemplate="org.drupal.condition.eca_current_user_permission" sourceRef="Event_0l86rxh" targetRef="Activity_1k7t4h4"> <bpmn2:sequenceFlow id="Flow_1xa65m3" name="May not view unpublished content?" camunda:modelerTemplate="org.drupal.condition.eca_current_user_permission" sourceRef="Event_0l86rxh" targetRef="Activity_1k7t4h4">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:properties> <camunda:properties>
<camunda:property name="pluginid" value="eca_current_user_permission" /> <camunda:property name="pluginid" value="eca_current_user_permission"/>
</camunda:properties> </camunda:properties>
<camunda:field name="permission"> <camunda:field name="permission">
<camunda:string>view own unpublished content</camunda:string> <camunda:string>view own unpublished content</camunda:string>
...@@ -168,53 +168,53 @@ modeldata: | ...@@ -168,53 +168,53 @@ modeldata: |
<bpmndi:BPMNDiagram id="sid-c4cc2aba-38be-41bc-9c9c-1bd2c06a402f"> <bpmndi:BPMNDiagram id="sid-c4cc2aba-38be-41bc-9c9c-1bd2c06a402f">
<bpmndi:BPMNPlane id="sid-82cbdb3a-43a7-4a22-8b63-5aa1fb0fc600" bpmnElement="ECA_Lib_0003"> <bpmndi:BPMNPlane id="sid-82cbdb3a-43a7-4a22-8b63-5aa1fb0fc600" bpmnElement="ECA_Lib_0003">
<bpmndi:BPMNShape id="Event_0l86rxh_di" bpmnElement="Event_0l86rxh"> <bpmndi:BPMNShape id="Event_0l86rxh_di" bpmnElement="Event_0l86rxh">
<dc:Bounds x="282" y="112" width="36" height="36" /> <dc:Bounds x="282" y="112" width="36" height="36"/>
<bpmndi:BPMNLabel> <bpmndi:BPMNLabel>
<dc:Bounds x="269" y="155" width="63" height="14" /> <dc:Bounds x="269" y="155" width="63" height="14"/>
</bpmndi:BPMNLabel> </bpmndi:BPMNLabel>
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0yxnsha_di" bpmnElement="Activity_0yxnsha"> <bpmndi:BPMNShape id="Activity_0yxnsha_di" bpmnElement="Activity_0yxnsha">
<dc:Bounds x="680" y="90" width="100" height="80" /> <dc:Bounds x="680" y="90" width="100" height="80"/>
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel/>
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1bcku98_di" bpmnElement="Activity_1bcku98"> <bpmndi:BPMNShape id="Activity_1bcku98_di" bpmnElement="Activity_1bcku98">
<dc:Bounds x="900" y="90" width="100" height="80" /> <dc:Bounds x="900" y="90" width="100" height="80"/>
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel/>
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1e9brxq_di" bpmnElement="Activity_1e9brxq"> <bpmndi:BPMNShape id="Activity_1e9brxq_di" bpmnElement="Activity_1e9brxq">
<dc:Bounds x="1090" y="90" width="100" height="80" /> <dc:Bounds x="1090" y="90" width="100" height="80"/>
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel/>
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1k7t4h4_di" bpmnElement="Activity_1k7t4h4"> <bpmndi:BPMNShape id="Activity_1k7t4h4_di" bpmnElement="Activity_1k7t4h4">
<dc:Bounds x="449" y="90" width="100" height="80" /> <dc:Bounds x="449" y="90" width="100" height="80"/>
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel/>
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0vgujvv_di" bpmnElement="Flow_0vgujvv"> <bpmndi:BPMNEdge id="Flow_0vgujvv_di" bpmnElement="Flow_0vgujvv">
<di:waypoint x="549" y="130" /> <di:waypoint x="549" y="130"/>
<di:waypoint x="680" y="130" /> <di:waypoint x="680" y="130"/>
<bpmndi:BPMNLabel> <bpmndi:BPMNLabel>
<dc:Bounds x="580" y="96" width="54" height="27" /> <dc:Bounds x="580" y="96" width="54" height="27"/>
</bpmndi:BPMNLabel> </bpmndi:BPMNLabel>
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_057atra_di" bpmnElement="Flow_057atra"> <bpmndi:BPMNEdge id="Flow_057atra_di" bpmnElement="Flow_057atra">
<di:waypoint x="780" y="130" /> <di:waypoint x="780" y="130"/>
<di:waypoint x="900" y="130" /> <di:waypoint x="900" y="130"/>
<bpmndi:BPMNLabel> <bpmndi:BPMNLabel>
<dc:Bounds x="819" y="112" width="48" height="14" /> <dc:Bounds x="819" y="112" width="48" height="14"/>
</bpmndi:BPMNLabel> </bpmndi:BPMNLabel>
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1wyatbm_di" bpmnElement="Flow_1wyatbm"> <bpmndi:BPMNEdge id="Flow_1wyatbm_di" bpmnElement="Flow_1wyatbm">
<di:waypoint x="1000" y="130" /> <di:waypoint x="1000" y="130"/>
<di:waypoint x="1090" y="130" /> <di:waypoint x="1090" y="130"/>
<bpmndi:BPMNLabel> <bpmndi:BPMNLabel>
<dc:Bounds x="1011" y="112" width="68" height="14" /> <dc:Bounds x="1011" y="112" width="68" height="14"/>
</bpmndi:BPMNLabel> </bpmndi:BPMNLabel>
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1xa65m3_di" bpmnElement="Flow_1xa65m3"> <bpmndi:BPMNEdge id="Flow_1xa65m3_di" bpmnElement="Flow_1xa65m3">
<di:waypoint x="318" y="130" /> <di:waypoint x="318" y="130"/>
<di:waypoint x="449" y="130" /> <di:waypoint x="449" y="130"/>
<bpmndi:BPMNLabel> <bpmndi:BPMNLabel>
<dc:Bounds x="351" y="90" width="65" height="40" /> <dc:Bounds x="351" y="90" width="65" height="40"/>
</bpmndi:BPMNLabel> </bpmndi:BPMNLabel>
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
</bpmndi:BPMNPlane> </bpmndi:BPMNPlane>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment