Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Asynchronous views export
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
Asynchronous views export
Commits
c0549bb3
Commit
c0549bb3
authored
9 months ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Update recipe for ECA 2 compatibility
parent
451ba784
No related branches found
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_0016.yml
+1
-1
1 addition, 1 deletion
config/eca.eca.eca_lib_0016.yml
config/eca.model.eca_lib_0016.yml
+73
-73
73 additions, 73 deletions
config/eca.model.eca_lib_0016.yml
with
74 additions
and
74 deletions
config/eca.eca.eca_lib_0016.yml
+
1
−
1
View file @
c0549bb3
...
...
@@ -14,7 +14,7 @@ id: eca_lib_0016
modeller
:
bpmn_io
label
:
'
Asynchronous
views
export'
version
:
v1
weight
:
null
weight
:
0
events
:
Event_0upnk7p
:
plugin
:
'
eca_endpoint:response'
...
...
This diff is collapsed.
Click to expand it.
config/eca.model.eca_lib_0016.yml
+
73
−
73
View file @
c0549bb3
...
...
@@ -37,14 +37,14 @@ modeldata: |
Building this model has been recorded: [watch video](https://tube.tchncs.de/w/qpc4qAu2jPMPqcnzV8125h)</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="Tags" value="simple,views,export,endpoint,queue"
/>
<camunda:property name="Changelog v1" value="Initial version"
/>
<camunda:property name="Tags" value="simple,views,export,endpoint,queue"/>
<camunda:property name="Changelog v1" value="Initial version"/>
</camunda:properties>
</bpmn2:extensionElements>
<bpmn2:startEvent id="Event_0upnk7p" name="Endpoint response event" camunda:modelerTemplate="org.drupal.event.eca_endpoint:response">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_endpoint:response"
/>
<camunda:property name="pluginid" value="eca_endpoint:response"/>
</camunda:properties>
<camunda:field name="first_path_argument">
<camunda:string>export</camunda:string>
...
...
@@ -55,10 +55,10 @@ modeldata: |
</bpmn2:extensionElements>
<bpmn2:outgoing>Flow_1830882</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:task id="Activity_077y9bb" name="Get user
'
s email address" camunda:modelerTemplate="org.drupal.action.eca_token_set_value">
<bpmn2:task id="Activity_077y9bb" name="Get user
'
s email address" camunda:modelerTemplate="org.drupal.action.eca_token_set_value">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_token_set_value"
/>
<camunda:property name="pluginid" value="eca_token_set_value"/>
</camunda:properties>
<camunda:field name="token_name">
<camunda:string>email</camunda:string>
...
...
@@ -73,17 +73,17 @@ modeldata: |
<bpmn2:incoming>Flow_1830882</bpmn2:incoming>
<bpmn2:outgoing>Flow_1czmpnn</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1830882" sourceRef="Event_0upnk7p" targetRef="Activity_077y9bb"
/>
<bpmn2:sequenceFlow id="Flow_1830882" sourceRef="Event_0upnk7p" targetRef="Activity_077y9bb"/>
<bpmn2:task id="Activity_0udkfuk" name="Enqueue the export task" camunda:modelerTemplate="org.drupal.action.eca_enqueue_task">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_enqueue_task"
/>
<camunda:property name="pluginid" value="eca_enqueue_task"/>
</camunda:properties>
<camunda:field name="task_name">
<camunda:string>export-users</camunda:string>
</camunda:field>
<camunda:field name="task_value">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
<camunda:field name="tokens">
<camunda:string>email</camunda:string>
...
...
@@ -92,11 +92,11 @@ modeldata: |
<bpmn2:incoming>Flow_1czmpnn</bpmn2:incoming>
<bpmn2:outgoing>Flow_1uewb92</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1czmpnn" sourceRef="Activity_077y9bb" targetRef="Activity_0udkfuk"
/>
<bpmn2:sequenceFlow id="Flow_1czmpnn" sourceRef="Activity_077y9bb" targetRef="Activity_0udkfuk"/>
<bpmn2:task id="Activity_00rb6ol" 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>Your request for the user export has been received. We will notify you by email ([email]) once it's ready for download.</camunda:string>
...
...
@@ -108,11 +108,11 @@ modeldata: |
<bpmn2:incoming>Flow_1uewb92</bpmn2:incoming>
<bpmn2:outgoing>Flow_0w66wzy</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1uewb92" sourceRef="Activity_0udkfuk" targetRef="Activity_00rb6ol"
/>
<bpmn2:sequenceFlow id="Flow_1uewb92" sourceRef="Activity_0udkfuk" targetRef="Activity_00rb6ol"/>
<bpmn2:task id="Activity_0ebf5c5" name="Get the referrer URL" camunda:modelerTemplate="org.drupal.action.eca_endpoint_get_request_header">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_endpoint_get_request_header"
/>
<camunda:property name="pluginid" value="eca_endpoint_get_request_header"/>
</camunda:properties>
<camunda:field name="token_name">
<camunda:string>referer</camunda:string>
...
...
@@ -124,11 +124,11 @@ modeldata: |
<bpmn2:incoming>Flow_0w66wzy</bpmn2:incoming>
<bpmn2:outgoing>Flow_18grueb</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_0w66wzy" sourceRef="Activity_00rb6ol" targetRef="Activity_0ebf5c5"
/>
<bpmn2:sequenceFlow id="Flow_0w66wzy" sourceRef="Activity_00rb6ol" targetRef="Activity_0ebf5c5"/>
<bpmn2:task id="Activity_1mwsdsv" name="Redirect the user" camunda:modelerTemplate="org.drupal.action.action_goto_action">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="action_goto_action"
/>
<camunda:property name="pluginid" value="action_goto_action"/>
</camunda:properties>
<camunda:field name="url">
<camunda:string>[referer]</camunda:string>
...
...
@@ -139,11 +139,11 @@ modeldata: |
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_18grueb</bpmn2:incoming>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_18grueb" sourceRef="Activity_0ebf5c5" targetRef="Activity_1mwsdsv"
/>
<bpmn2:sequenceFlow id="Flow_18grueb" sourceRef="Activity_0ebf5c5" targetRef="Activity_1mwsdsv"/>
<bpmn2:startEvent id="Event_079c3t3" name="Verify access to the endpoint" camunda:modelerTemplate="org.drupal.event.eca_endpoint:access">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_endpoint:access"
/>
<camunda:property name="pluginid" value="eca_endpoint:access"/>
</camunda:properties>
<camunda:field name="first_path_argument">
<camunda:string>export</camunda:string>
...
...
@@ -157,7 +157,7 @@ modeldata: |
<bpmn2:task id="Activity_03czabg" name="Allow access" camunda:modelerTemplate="org.drupal.action.eca_access_set_result">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_access_set_result"
/>
<camunda:property name="pluginid" value="eca_access_set_result"/>
</camunda:properties>
<camunda:field name="access_result">
<camunda:string>allowed</camunda:string>
...
...
@@ -168,7 +168,7 @@ modeldata: |
<bpmn2:sequenceFlow id="Flow_1qwm7o2" name="is admin?" camunda:modelerTemplate="org.drupal.condition.eca_current_user_role" sourceRef="Event_079c3t3" targetRef="Activity_03czabg">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_current_user_role"
/>
<camunda:property name="pluginid" value="eca_current_user_role"/>
</camunda:properties>
<camunda:field name="role">
<camunda:string>administrator</camunda:string>
...
...
@@ -181,19 +181,19 @@ modeldata: |
<bpmn2:startEvent id="Event_0k7tmxh" name="Process task export-users" camunda:modelerTemplate="org.drupal.event.eca_queue:processing_task">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_queue:processing_task"
/>
<camunda:property name="pluginid" value="eca_queue:processing_task"/>
</camunda:properties>
<camunda:field name="task_name">
<camunda:string>export-users</camunda:string>
</camunda:field>
<camunda:field name="task_value">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
<camunda:field name="distribute">
<camunda:string>no</camunda:string>
</camunda:field>
<camunda:field name="cron">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
</bpmn2:extensionElements>
<bpmn2:outgoing>Flow_1vhshhg</bpmn2:outgoing>
...
...
@@ -201,13 +201,13 @@ modeldata: |
<bpmn2:task id="Activity_0lbjb7k" name="Run export" camunda:modelerTemplate="org.drupal.action.eca_views_export">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_views_export"
/>
<camunda:property name="pluginid" value="eca_views_export"/>
</camunda:properties>
<camunda:field name="load_results_into_token">
<camunda:string>no</camunda:string>
</camunda:field>
<camunda:field name="token_name">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
<camunda:field name="view_id">
<camunda:string>user_admin_people</camunda:string>
...
...
@@ -216,10 +216,10 @@ modeldata: |
<camunda:string>data_export_1</camunda:string>
</camunda:field>
<camunda:field name="arguments">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
<camunda:field name="token_for_filename">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
<camunda:field name="filename">
<camunda:string>private://user-export.csv</camunda:string>
...
...
@@ -228,11 +228,11 @@ modeldata: |
<bpmn2:incoming>Flow_0nkpjhl</bpmn2:incoming>
<bpmn2:outgoing>Flow_1p088d5</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1vhshhg" sourceRef="Event_0k7tmxh" targetRef="Activity_13dr0m3"
/>
<bpmn2:sequenceFlow id="Flow_1vhshhg" sourceRef="Event_0k7tmxh" targetRef="Activity_13dr0m3"/>
<bpmn2:task id="Activity_0kl7hjm" name="Send email" camunda:modelerTemplate="org.drupal.action.action_send_email_action">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="action_send_email_action"
/>
<camunda:property name="pluginid" value="action_send_email_action"/>
</camunda:properties>
<camunda:field name="recipient">
<camunda:string>[email]</camunda:string>
...
...
@@ -249,11 +249,11 @@ modeldata: |
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1p088d5</bpmn2:incoming>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1p088d5" sourceRef="Activity_0lbjb7k" targetRef="Activity_0kl7hjm"
/>
<bpmn2:sequenceFlow id="Flow_1p088d5" sourceRef="Activity_0lbjb7k" targetRef="Activity_0kl7hjm"/>
<bpmn2:task id="Activity_13dr0m3" 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>
...
...
@@ -262,102 +262,102 @@ modeldata: |
<bpmn2:incoming>Flow_1vhshhg</bpmn2:incoming>
<bpmn2:outgoing>Flow_0nkpjhl</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_0nkpjhl" sourceRef="Activity_13dr0m3" targetRef="Activity_0lbjb7k"
/>
<bpmn2:sequenceFlow id="Flow_0nkpjhl" sourceRef="Activity_13dr0m3" targetRef="Activity_0lbjb7k"/>
</bpmn2:process>
<bpmndi:BPMNDiagram id="sid-fa53906d-c46e-4756-b923-ce3a6554cd0d">
<bpmndi:BPMNPlane id="sid-c61c351f-1564-4cce-8b6c-5dce9ce1c3d8" bpmnElement="eca_lib_0016">
<bpmndi:BPMNShape id="Event_0upnk7p_di" bpmnElement="Event_0upnk7p">
<dc:Bounds x="252" y="82" width="36" height="36"
/>
<dc:Bounds x="252" y="82" width="36" height="36"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="233" y="125" width="76" height="27"
/>
<dc:Bounds x="233" y="125" width="76" height="27"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_077y9bb_di" bpmnElement="Activity_077y9bb">
<dc:Bounds x="340" y="60" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="340" y="60" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0udkfuk_di" bpmnElement="Activity_0udkfuk">
<dc:Bounds x="500" y="60" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="500" y="60" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_00rb6ol_di" bpmnElement="Activity_00rb6ol">
<dc:Bounds x="660" y="60" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="660" y="60" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0ebf5c5_di" bpmnElement="Activity_0ebf5c5">
<dc:Bounds x="820" y="60" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="820" y="60" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1mwsdsv_di" bpmnElement="Activity_1mwsdsv">
<dc:Bounds x="980" y="60" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="980" y="60" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_079c3t3_di" bpmnElement="Event_079c3t3">
<dc:Bounds x="252" y="202" width="36" height="36"
/>
<dc:Bounds x="252" y="202" width="36" height="36"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="232" y="245" width="78" height="27"
/>
<dc:Bounds x="232" y="245" width="78" height="27"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_03czabg_di" bpmnElement="Activity_03czabg">
<dc:Bounds x="340" y="180" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="340" y="180" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0k7tmxh_di" bpmnElement="Event_0k7tmxh">
<dc:Bounds x="252" y="342" width="36" height="36"
/>
<dc:Bounds x="252" y="342" width="36" height="36"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="239" y="385" width="63" height="27"
/>
<dc:Bounds x="239" y="385" width="63" height="27"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0lbjb7k_di" bpmnElement="Activity_0lbjb7k">
<dc:Bounds x="500" y="320" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="500" y="320" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0kl7hjm_di" bpmnElement="Activity_0kl7hjm">
<dc:Bounds x="660" y="320" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="660" y="320" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_13dr0m3_di" bpmnElement="Activity_13dr0m3">
<dc:Bounds x="340" y="320" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="340" y="320" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1830882_di" bpmnElement="Flow_1830882">
<di:waypoint x="288" y="100"
/>
<di:waypoint x="340" y="100"
/>
<di:waypoint x="288" y="100"/>
<di:waypoint x="340" y="100"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1czmpnn_di" bpmnElement="Flow_1czmpnn">
<di:waypoint x="440" y="100"
/>
<di:waypoint x="500" y="100"
/>
<di:waypoint x="440" y="100"/>
<di:waypoint x="500" y="100"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1uewb92_di" bpmnElement="Flow_1uewb92">
<di:waypoint x="600" y="100"
/>
<di:waypoint x="660" y="100"
/>
<di:waypoint x="600" y="100"/>
<di:waypoint x="660" y="100"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0w66wzy_di" bpmnElement="Flow_0w66wzy">
<di:waypoint x="760" y="100"
/>
<di:waypoint x="820" y="100"
/>
<di:waypoint x="760" y="100"/>
<di:waypoint x="820" y="100"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_18grueb_di" bpmnElement="Flow_18grueb">
<di:waypoint x="920" y="100"
/>
<di:waypoint x="980" y="100"
/>
<di:waypoint x="920" y="100"/>
<di:waypoint x="980" y="100"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1qwm7o2_di" bpmnElement="Flow_1qwm7o2">
<di:waypoint x="288" y="220"
/>
<di:waypoint x="340" y="220"
/>
<di:waypoint x="288" y="220"/>
<di:waypoint x="340" y="220"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="291" y="202" width="48" height="14"
/>
<dc:Bounds x="291" y="202" width="48" height="14"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1vhshhg_di" bpmnElement="Flow_1vhshhg">
<di:waypoint x="288" y="360"
/>
<di:waypoint x="340" y="360"
/>
<di:waypoint x="288" y="360"/>
<di:waypoint x="340" y="360"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1p088d5_di" bpmnElement="Flow_1p088d5">
<di:waypoint x="600" y="360"
/>
<di:waypoint x="660" y="360"
/>
<di:waypoint x="600" y="360"/>
<di:waypoint x="660" y="360"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0nkpjhl_di" bpmnElement="Flow_0nkpjhl">
<di:waypoint x="440" y="360"
/>
<di:waypoint x="500" y="360"
/>
<di:waypoint x="440" y="360"/>
<di:waypoint x="500" y="360"/>
</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