Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Count user logins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Drupal
Recipes
Count user logins
Commits
5322a782
Commit
5322a782
authored
10 months ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Update recipe for ECA 2 compatibility
parent
147f6129
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/eca.eca.eca_lib_0012.yml
+1
-1
1 addition, 1 deletion
config/eca.eca.eca_lib_0012.yml
config/eca.model.eca_lib_0012.yml
+25
-25
25 additions, 25 deletions
config/eca.model.eca_lib_0012.yml
with
26 additions
and
26 deletions
config/eca.eca.eca_lib_0012.yml
+
1
−
1
View file @
5322a782
...
...
@@ -12,7 +12,7 @@ id: eca_lib_0012
modeller
:
bpmn_io
label
:
'
Count
user
logins'
version
:
v1
weight
:
null
weight
:
0
events
:
Event_021ntxo
:
plugin
:
'
user:login'
...
...
This diff is collapsed.
Click to expand it.
config/eca.model.eca_lib_0012.yml
+
25
−
25
View file @
5322a782
...
...
@@ -17,14 +17,14 @@ modeldata: |
<bpmn2:documentation>This model adds a number field to the user entity with a default value 0. It then increments that value, each time that user logs into the site.</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="Changelog v1" value="Initial version"
/>
<camunda:property name="Tags" value="simple,update entity field"
/>
<camunda:property name="Changelog v1" value="Initial version"/>
<camunda:property name="Tags" value="simple,update entity field"/>
</camunda:properties>
</bpmn2:extensionElements>
<bpmn2:startEvent id="Event_021ntxo" name="User login" camunda:modelerTemplate="org.drupal.event.user:login">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="user:login"
/>
<camunda:property name="pluginid" value="user:login"/>
</camunda:properties>
</bpmn2:extensionElements>
<bpmn2:outgoing>Flow_0wqsxqz</bpmn2:outgoing>
...
...
@@ -32,7 +32,7 @@ modeldata: |
<bpmn2:task id="Activity_09fy9sj" name="Read value from user" camunda:modelerTemplate="org.drupal.action.eca_get_field_value">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_get_field_value"
/>
<camunda:property name="pluginid" value="eca_get_field_value"/>
</camunda:properties>
<camunda:field name="field_name">
<camunda:string>field_number_of_logins</camunda:string>
...
...
@@ -41,7 +41,7 @@ modeldata: |
<camunda:string>count</camunda:string>
</camunda:field>
<camunda:field name="object">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_0wqsxqz</bpmn2:incoming>
...
...
@@ -50,7 +50,7 @@ modeldata: |
<bpmn2:task id="Activity_14q5xnt" name="Increment value" 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>[count]</camunda:string>
...
...
@@ -71,11 +71,11 @@ modeldata: |
<bpmn2:incoming>Flow_0uf62l8</bpmn2:incoming>
<bpmn2:outgoing>Flow_1eukjvg</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_0uf62l8" sourceRef="Activity_09fy9sj" targetRef="Activity_14q5xnt"
/>
<bpmn2:sequenceFlow id="Flow_0uf62l8" sourceRef="Activity_09fy9sj" targetRef="Activity_14q5xnt"/>
<bpmn2:task id="Activity_0xg2fnq" name="Write value back to the user entity" 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="method">
<camunda:string>set:clear</camunda:string>
...
...
@@ -96,45 +96,45 @@ modeldata: |
<camunda:string>[count]</camunda:string>
</camunda:field>
<camunda:field name="object">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1eukjvg</bpmn2:incoming>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1eukjvg" sourceRef="Activity_14q5xnt" targetRef="Activity_0xg2fnq"
/>
<bpmn2:sequenceFlow id="Flow_0wqsxqz" sourceRef="Event_021ntxo" targetRef="Activity_09fy9sj"
/>
<bpmn2:sequenceFlow id="Flow_1eukjvg" sourceRef="Activity_14q5xnt" targetRef="Activity_0xg2fnq"/>
<bpmn2:sequenceFlow id="Flow_0wqsxqz" sourceRef="Event_021ntxo" targetRef="Activity_09fy9sj"/>
</bpmn2:process>
<bpmndi:BPMNDiagram id="sid-b401f843-9983-4628-9da5-03764ba2065c">
<bpmndi:BPMNPlane id="sid-519a02a5-1c62-4be1-ace8-f1a49400dfdc" bpmnElement="eca_lib_0012">
<bpmndi:BPMNShape id="Event_021ntxo_di" bpmnElement="Event_021ntxo">
<dc:Bounds x="442" y="192" width="36" height="36"
/>
<dc:Bounds x="442" y="192" width="36" height="36"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="435" y="168" width="50" height="14"
/>
<dc:Bounds x="435" y="168" width="50" height="14"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_09fy9sj_di" bpmnElement="Activity_09fy9sj">
<dc:Bounds x="530" y="170" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="530" y="170" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_14q5xnt_di" bpmnElement="Activity_14q5xnt">
<dc:Bounds x="690" y="170" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="690" y="170" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0xg2fnq_di" bpmnElement="Activity_0xg2fnq">
<dc:Bounds x="850" y="170" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="850" y="170" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0uf62l8_di" bpmnElement="Flow_0uf62l8">
<di:waypoint x="630" y="210"
/>
<di:waypoint x="690" y="210"
/>
<di:waypoint x="630" y="210"/>
<di:waypoint x="690" y="210"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1eukjvg_di" bpmnElement="Flow_1eukjvg">
<di:waypoint x="790" y="210"
/>
<di:waypoint x="850" y="210"
/>
<di:waypoint x="790" y="210"/>
<di:waypoint x="850" y="210"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0wqsxqz_di" bpmnElement="Flow_0wqsxqz">
<di:waypoint x="478" y="210"
/>
<di:waypoint x="530" y="210"
/>
<di:waypoint x="478" y="210"/>
<di:waypoint x="530" y="210"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment