Skip to content
Snippets Groups Projects
Commit 025d6b95 authored by jurgenhaas's avatar jurgenhaas
Browse files

Update recipe for ECA 2 compatibility

parent 70cd49f1
Branches
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ id: eca_lib_0011
modeller: bpmn_io
label: 'Get next incremental ID'
version: v2
weight: null
weight: 0
events:
Event_1o2bq99:
plugin: 'eca_base:eca_custom'
......
......@@ -19,15 +19,15 @@ modeldata: |
<bpmn2:documentation>This model increments a sidewide ID by 1 and returns that on screen. It uses Drupal's state service to store the value inbetween requests.</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="Changelog v1" value="Initial version" />
<camunda:property name="Tags" value="simple,increment,custom event,state" />
<camunda:property name="Changelog v2" value="Add an &#34;Acquire lock&#34; action to make sure it still works with concurrent users." />
<camunda:property name="Changelog v1" value="Initial version"/>
<camunda:property name="Tags" value="simple,increment,custom event,state"/>
<camunda:property name="Changelog v2" value="Add an &quot;Acquire lock&quot; action to make sure it still works with concurrent users."/>
</camunda:properties>
</bpmn2:extensionElements>
<bpmn2:startEvent id="Event_1o2bq99" name="Custom event &#34;increment&#34;" camunda:modelerTemplate="org.drupal.event.eca_base:eca_custom">
<bpmn2:startEvent id="Event_1o2bq99" name="Custom event &quot;increment&quot;" camunda:modelerTemplate="org.drupal.event.eca_base:eca_custom">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_base:eca_custom" />
<camunda:property name="pluginid" value="eca_base:eca_custom"/>
</camunda:properties>
<camunda:field name="event_id">
<camunda:string>increment</camunda:string>
......@@ -38,7 +38,7 @@ modeldata: |
<bpmn2:task id="Activity_0qg1wci" name="Read value from state" camunda:modelerTemplate="org.drupal.action.eca_state_read">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_state_read" />
<camunda:property name="pluginid" value="eca_state_read"/>
</camunda:properties>
<camunda:field name="key">
<camunda:string>eca_id</camunda:string>
......@@ -50,11 +50,11 @@ modeldata: |
<bpmn2:incoming>Flow_13mlcm7</bpmn2:incoming>
<bpmn2:outgoing>Flow_150rt3f</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_0o6ycbg" sourceRef="Event_1o2bq99" targetRef="Activity_1y4d0g8" />
<bpmn2:sequenceFlow id="Flow_0o6ycbg" sourceRef="Event_1o2bq99" targetRef="Activity_1y4d0g8"/>
<bpmn2:task id="Activity_1b6racd" name="Increment by 1" camunda:modelerTemplate="org.drupal.action.eca_tamper:math">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_tamper:math" />
<camunda:property name="pluginid" value="eca_tamper:math"/>
</camunda:properties>
<camunda:field name="eca_data">
<camunda:string>0[id]</camunda:string>
......@@ -75,11 +75,11 @@ modeldata: |
<bpmn2:incoming>Flow_150rt3f</bpmn2:incoming>
<bpmn2:outgoing>Flow_0dqtvjp</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_150rt3f" sourceRef="Activity_0qg1wci" targetRef="Activity_1b6racd" />
<bpmn2:sequenceFlow id="Flow_150rt3f" sourceRef="Activity_0qg1wci" targetRef="Activity_1b6racd"/>
<bpmn2:task id="Activity_1p2buof" name="Write value back to state" camunda:modelerTemplate="org.drupal.action.eca_state_write">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_state_write" />
<camunda:property name="pluginid" value="eca_state_write"/>
</camunda:properties>
<camunda:field name="key">
<camunda:string>eca_id</camunda:string>
......@@ -94,11 +94,11 @@ modeldata: |
<bpmn2:incoming>Flow_0dqtvjp</bpmn2:incoming>
<bpmn2:outgoing>Flow_0ml7a2y</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_0dqtvjp" sourceRef="Activity_1b6racd" targetRef="Activity_1p2buof" />
<bpmn2:sequenceFlow id="Flow_0dqtvjp" sourceRef="Activity_1b6racd" targetRef="Activity_1p2buof"/>
<bpmn2:task id="Activity_0l5xmcm" name="Print message" 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>Current value is [id]</camunda:string>
......@@ -109,11 +109,11 @@ modeldata: |
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_0ml7a2y</bpmn2:incoming>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_0ml7a2y" sourceRef="Activity_1p2buof" targetRef="Activity_0l5xmcm" />
<bpmn2:sequenceFlow id="Flow_0ml7a2y" sourceRef="Activity_1p2buof" targetRef="Activity_0l5xmcm"/>
<bpmn2:task id="Activity_1y4d0g8" name="Acquire lock" camunda:modelerTemplate="org.drupal.action.eca_lock_acquire">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_lock_acquire" />
<camunda:property name="pluginid" value="eca_lock_acquire"/>
</camunda:properties>
<camunda:field name="lock_name">
<camunda:string>eca-id</camunda:string>
......@@ -125,73 +125,73 @@ modeldata: |
<camunda:string>yes</camunda:string>
</camunda:field>
<camunda:field name="token_name">
<camunda:string></camunda:string>
<camunda:string/>
</camunda:field>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_0o6ycbg</bpmn2:incoming>
<bpmn2:outgoing>Flow_13mlcm7</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_13mlcm7" sourceRef="Activity_1y4d0g8" targetRef="Activity_0qg1wci" />
<bpmn2:sequenceFlow id="Flow_13mlcm7" sourceRef="Activity_1y4d0g8" targetRef="Activity_0qg1wci"/>
<bpmn2:textAnnotation id="TextAnnotation_0lc4qvw">
<bpmn2:text>The data field is preceded by a 0 to make sure we even get a numeric value initially when the state key is empty - before 1st execution</bpmn2:text>
</bpmn2:textAnnotation>
<bpmn2:association id="Association_05e89ml" sourceRef="Activity_1b6racd" targetRef="TextAnnotation_0lc4qvw" />
<bpmn2:association id="Association_05e89ml" sourceRef="Activity_1b6racd" targetRef="TextAnnotation_0lc4qvw"/>
</bpmn2:process>
<bpmndi:BPMNDiagram id="sid-60ef0326-f76e-4591-8cfb-fbbdf48114df">
<bpmndi:BPMNPlane id="sid-00859007-3ffe-4296-af13-fe2592fc1771" bpmnElement="eca_lib_0011">
<bpmndi:BPMNShape id="Activity_0qg1wci_di" bpmnElement="Activity_0qg1wci">
<dc:Bounds x="480" y="80" width="100" height="80" />
<bpmndi:BPMNLabel />
<dc:Bounds x="480" y="80" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1b6racd_di" bpmnElement="Activity_1b6racd">
<dc:Bounds x="640" y="80" width="100" height="80" />
<bpmndi:BPMNLabel />
<dc:Bounds x="640" y="80" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1p2buof_di" bpmnElement="Activity_1p2buof">
<dc:Bounds x="800" y="80" width="100" height="80" />
<bpmndi:BPMNLabel />
<dc:Bounds x="800" y="80" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0l5xmcm_di" bpmnElement="Activity_0l5xmcm">
<dc:Bounds x="960" y="80" width="100" height="80" />
<bpmndi:BPMNLabel />
<dc:Bounds x="960" y="80" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="TextAnnotation_0lc4qvw_di" bpmnElement="TextAnnotation_0lc4qvw">
<dc:Bounds x="700" y="-30" width="220" height="70" />
<bpmndi:BPMNLabel />
<dc:Bounds x="700" y="-30" width="220" height="70"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1o2bq99_di" bpmnElement="Event_1o2bq99">
<dc:Bounds x="252" y="102" width="36" height="36" />
<dc:Bounds x="252" y="102" width="36" height="36"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="237" y="145" width="68" height="27" />
<dc:Bounds x="237" y="145" width="68" height="27"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1y4d0g8_di" bpmnElement="Activity_1y4d0g8">
<dc:Bounds x="340" y="80" width="100" height="80" />
<bpmndi:BPMNLabel />
<dc:Bounds x="340" y="80" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0o6ycbg_di" bpmnElement="Flow_0o6ycbg">
<di:waypoint x="288" y="120" />
<di:waypoint x="340" y="120" />
<di:waypoint x="288" y="120"/>
<di:waypoint x="340" y="120"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_150rt3f_di" bpmnElement="Flow_150rt3f">
<di:waypoint x="580" y="120" />
<di:waypoint x="640" y="120" />
<di:waypoint x="580" y="120"/>
<di:waypoint x="640" y="120"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0dqtvjp_di" bpmnElement="Flow_0dqtvjp">
<di:waypoint x="740" y="120" />
<di:waypoint x="800" y="120" />
<di:waypoint x="740" y="120"/>
<di:waypoint x="800" y="120"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ml7a2y_di" bpmnElement="Flow_0ml7a2y">
<di:waypoint x="900" y="120" />
<di:waypoint x="960" y="120" />
<di:waypoint x="900" y="120"/>
<di:waypoint x="960" y="120"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_05e89ml_di" bpmnElement="Association_05e89ml">
<di:waypoint x="708" y="80" />
<di:waypoint x="726" y="40" />
<di:waypoint x="708" y="80"/>
<di:waypoint x="726" y="40"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_13mlcm7_di" bpmnElement="Flow_13mlcm7">
<di:waypoint x="440" y="120" />
<di:waypoint x="480" y="120" />
<di:waypoint x="440" y="120"/>
<di:waypoint x="480" y="120"/>
</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