Skip to content
Snippets Groups Projects
Commit 0db37ec5 authored by jurgenhaas's avatar jurgenhaas
Browse files

Update recipe for ECA 2 compatibility

parent c1d9cdfa
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ id: eca_test_0005
modeller: bpmn_io
label: Views
version: v1
weight: null
weight: 0
events:
Event_1up81dz:
plugin: 'eca_base:eca_cron'
......
......@@ -21,14 +21,14 @@ modeldata: |
<bpmn2:documentation>During cron, this model switches the user context, queries a view to receive all user accounts and loops over all those users triggering a custom event for each of them to print their names in messages.</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="Tags" value="test models,views,loop,custom event,cron,switch user" />
<camunda:property name="Changelog v1" value="Initial version" />
<camunda:property name="Tags" value="test models,views,loop,custom event,cron,switch user"/>
<camunda:property name="Changelog v1" value="Initial version"/>
</camunda:properties>
</bpmn2:extensionElements>
<bpmn2:startEvent id="Event_1up81dz" name="Cron" camunda:modelerTemplate="org.drupal.event.eca_base:eca_cron">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_base:eca_cron" />
<camunda:property name="pluginid" value="eca_base:eca_cron"/>
</camunda:properties>
<camunda:field name="frequency">
<camunda:string>* * * * *</camunda:string>
......@@ -39,7 +39,7 @@ modeldata: |
<bpmn2:task id="Activity_08o1wo5" name="List users" camunda:modelerTemplate="org.drupal.action.eca_views_query">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_views_query" />
<camunda:property name="pluginid" value="eca_views_query"/>
</camunda:properties>
<camunda:field name="token_name">
<camunda:string>userlist</camunda:string>
......@@ -51,7 +51,7 @@ modeldata: |
<camunda:string>default</camunda:string>
</camunda:field>
<camunda:field name="arguments">
<camunda:string></camunda:string>
<camunda:string/>
</camunda:field>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_15gylqq</bpmn2:incoming>
......@@ -60,7 +60,7 @@ modeldata: |
<bpmn2:task id="Activity_0ha3xin" name="Switch user" camunda:modelerTemplate="org.drupal.action.eca_switch_account">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_switch_account" />
<camunda:property name="pluginid" value="eca_switch_account"/>
</camunda:properties>
<camunda:field name="user_id">
<camunda:string>1</camunda:string>
......@@ -69,12 +69,12 @@ modeldata: |
<bpmn2:incoming>Flow_127rqxa</bpmn2:incoming>
<bpmn2:outgoing>Flow_15gylqq</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_127rqxa" sourceRef="Event_1up81dz" targetRef="Activity_0ha3xin" />
<bpmn2:sequenceFlow id="Flow_15gylqq" sourceRef="Activity_0ha3xin" targetRef="Activity_08o1wo5" />
<bpmn2:sequenceFlow id="Flow_127rqxa" sourceRef="Event_1up81dz" targetRef="Activity_0ha3xin"/>
<bpmn2:sequenceFlow id="Flow_15gylqq" sourceRef="Activity_0ha3xin" targetRef="Activity_08o1wo5"/>
<bpmn2:task id="Activity_105ssdc" name="Trigger X1" camunda:modelerTemplate="org.drupal.action.eca_trigger_content_entity_custom_event">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_trigger_content_entity_custom_event" />
<camunda:property name="pluginid" value="eca_trigger_content_entity_custom_event"/>
</camunda:properties>
<camunda:field name="event_id">
<camunda:string>x1</camunda:string>
......@@ -83,16 +83,16 @@ modeldata: |
<camunda:string>userlist</camunda:string>
</camunda:field>
<camunda:field name="tokens">
<camunda:string></camunda:string>
<camunda:string/>
</camunda:field>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1hod3um</bpmn2:incoming>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1hod3um" sourceRef="Activity_08o1wo5" targetRef="Activity_105ssdc" />
<bpmn2:sequenceFlow id="Flow_1hod3um" sourceRef="Activity_08o1wo5" targetRef="Activity_105ssdc"/>
<bpmn2:startEvent id="Event_1asjw3k" name="X1" camunda:modelerTemplate="org.drupal.event.content_entity:custom">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="content_entity:custom" />
<camunda:property name="pluginid" value="content_entity:custom"/>
</camunda:properties>
<camunda:field name="event_id">
<camunda:string>x1</camunda:string>
......@@ -103,7 +103,7 @@ modeldata: |
<bpmn2:task id="Activity_0xpew34" name="Msg" camunda:modelerTemplate="org.drupal.action.action_message_action">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="action_message_action" />
<camunda:property name="pluginid" value="action_message_action"/>
</camunda:properties>
<camunda:field name="message">
<camunda:string>User [entity:name]</camunda:string>
......@@ -114,51 +114,51 @@ modeldata: |
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1yl6zrs</bpmn2:incoming>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1yl6zrs" sourceRef="Event_1asjw3k" targetRef="Activity_0xpew34" />
<bpmn2:sequenceFlow id="Flow_1yl6zrs" sourceRef="Event_1asjw3k" targetRef="Activity_0xpew34"/>
</bpmn2:process>
<bpmndi:BPMNDiagram id="sid-2ba1f4cc-5448-48a2-9b04-b3b7577df2e7">
<bpmndi:BPMNPlane id="sid-54972076-8b7f-42f0-ac38-e775d7c9542b" bpmnElement="eca_test_0005">
<bpmndi:BPMNShape id="Event_1up81dz_di" bpmnElement="Event_1up81dz">
<dc:Bounds x="322" y="142" width="36" height="36" />
<dc:Bounds x="322" y="142" width="36" height="36"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="328" y="185" width="24" height="14" />
<dc:Bounds x="328" y="185" width="24" height="14"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_08o1wo5_di" bpmnElement="Activity_08o1wo5">
<dc:Bounds x="410" y="120" width="100" height="80" />
<dc:Bounds x="410" y="120" width="100" height="80"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0ha3xin_di" bpmnElement="Activity_0ha3xin">
<dc:Bounds x="410" y="230" width="100" height="80" />
<dc:Bounds x="410" y="230" width="100" height="80"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_105ssdc_di" bpmnElement="Activity_105ssdc">
<dc:Bounds x="560" y="120" width="100" height="80" />
<dc:Bounds x="560" y="120" width="100" height="80"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1asjw3k_di" bpmnElement="Event_1asjw3k">
<dc:Bounds x="322" y="392" width="36" height="36" />
<dc:Bounds x="322" y="392" width="36" height="36"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="333" y="435" width="14" height="14" />
<dc:Bounds x="333" y="435" width="14" height="14"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0xpew34_di" bpmnElement="Activity_0xpew34">
<dc:Bounds x="410" y="370" width="100" height="80" />
<dc:Bounds x="410" y="370" width="100" height="80"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_127rqxa_di" bpmnElement="Flow_127rqxa">
<di:waypoint x="358" y="160" />
<di:waypoint x="380" y="160" />
<di:waypoint x="380" y="270" />
<di:waypoint x="410" y="270" />
<di:waypoint x="358" y="160"/>
<di:waypoint x="380" y="160"/>
<di:waypoint x="380" y="270"/>
<di:waypoint x="410" y="270"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_15gylqq_di" bpmnElement="Flow_15gylqq">
<di:waypoint x="460" y="230" />
<di:waypoint x="460" y="200" />
<di:waypoint x="460" y="230"/>
<di:waypoint x="460" y="200"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1hod3um_di" bpmnElement="Flow_1hod3um">
<di:waypoint x="510" y="160" />
<di:waypoint x="560" y="160" />
<di:waypoint x="510" y="160"/>
<di:waypoint x="560" y="160"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1yl6zrs_di" bpmnElement="Flow_1yl6zrs">
<di:waypoint x="358" y="410" />
<di:waypoint x="410" y="410" />
<di:waypoint x="358" y="410"/>
<di:waypoint x="410" y="410"/>
</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