Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Display message to specific user roles only
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
Display message to specific user roles only
Commits
bdd6038f
Commit
bdd6038f
authored
10 months ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Update recipe for ECA 2 compatibility
parent
ff6f435c
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_0015.yml
+1
-1
1 addition, 1 deletion
config/eca.eca.eca_lib_0015.yml
config/eca.model.eca_lib_0015.yml
+28
-28
28 additions, 28 deletions
config/eca.model.eca_lib_0015.yml
with
29 additions
and
29 deletions
config/eca.eca.eca_lib_0015.yml
+
1
−
1
View file @
bdd6038f
...
...
@@ -8,7 +8,7 @@ id: eca_lib_0015
modeller
:
bpmn_io
label
:
'
Display
message
to
specific
user
roles
only'
version
:
v1
weight
:
null
weight
:
0
events
:
Event_0be6br5
:
plugin
:
'
form:form_build'
...
...
This diff is collapsed.
Click to expand it.
config/eca.model.eca_lib_0015.yml
+
28
−
28
View file @
bdd6038f
...
...
@@ -18,23 +18,23 @@ modeldata: |
<bpmn2:documentation>This model prints a message on screen, when the user opens the user profile form for editing. The message output is limited to users that have one of the roles editor, customer or auditor.</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="Tags" value="simple,message,condition"
/>
<camunda:property name="Changelog v1" value="Initial version"
/>
<camunda:property name="Tags" value="simple,message,condition"/>
<camunda:property name="Changelog v1" value="Initial version"/>
</camunda:properties>
</bpmn2:extensionElements>
<bpmn2:startEvent id="Event_0be6br5" name="Build user profile form" camunda:modelerTemplate="org.drupal.event.form:form_build">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="form:form_build"
/>
<camunda:property name="pluginid" value="form:form_build"/>
</camunda:properties>
<camunda:field name="form_id">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
<camunda:field name="entity_type_id">
<camunda:string>user</camunda:string>
</camunda:field>
<camunda:field name="bundle">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
<camunda:field name="operation">
<camunda:string>default, edit</camunda:string>
...
...
@@ -47,7 +47,7 @@ modeldata: |
<bpmn2:task id="Activity_0lnxseo" name="Display 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>Please be careful with making changes here.</camunda:string>
...
...
@@ -63,7 +63,7 @@ modeldata: |
<bpmn2:sequenceFlow id="Flow_0wvpaa1" name="role = editor?" camunda:modelerTemplate="org.drupal.condition.eca_current_user_role" sourceRef="Event_0be6br5" targetRef="Activity_0lnxseo">
<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>content_editor</camunda:string>
...
...
@@ -76,7 +76,7 @@ modeldata: |
<bpmn2:sequenceFlow id="Flow_03olz9x" name="role = customer?" camunda:modelerTemplate="org.drupal.condition.eca_current_user_role" sourceRef="Event_0be6br5" targetRef="Activity_0lnxseo">
<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>customer</camunda:string>
...
...
@@ -89,7 +89,7 @@ modeldata: |
<bpmn2:sequenceFlow id="Flow_1oa4lhn" name="role = auditor?" camunda:modelerTemplate="org.drupal.condition.eca_current_user_role" sourceRef="Event_0be6br5" targetRef="Activity_0lnxseo">
<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>auditor</camunda:string>
...
...
@@ -103,40 +103,40 @@ modeldata: |
<bpmndi:BPMNDiagram id="sid-c010b3bf-d2c0-46b7-a2cd-7e7feb8d0950">
<bpmndi:BPMNPlane id="sid-f0e6657a-36cb-401e-ae23-3fa87118d67f" bpmnElement="eca_lib_0015">
<bpmndi:BPMNShape id="Event_0be6br5_di" bpmnElement="Event_0be6br5">
<dc:Bounds x="362" y="182" width="36" height="36"
/>
<dc:Bounds x="362" y="182" width="36" height="36"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="342" y="225" width="82" height="27"
/>
<dc:Bounds x="342" y="225" width="82" height="27"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0lnxseo_di" bpmnElement="Activity_0lnxseo">
<dc:Bounds x="630" y="160" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="630" y="160" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0wvpaa1_di" bpmnElement="Flow_0wvpaa1">
<di:waypoint x="380" y="182"
/>
<di:waypoint x="380" y="30"
/>
<di:waypoint x="680" y="30"
/>
<di:waypoint x="680" y="160"
/>
<di:waypoint x="380" y="182"/>
<di:waypoint x="380" y="30"/>
<di:waypoint x="680" y="30"/>
<di:waypoint x="680" y="160"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="499" y="13" width="65" height="14"
/>
<dc:Bounds x="499" y="13" width="65" height="14"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_03olz9x_di" bpmnElement="Flow_03olz9x">
<di:waypoint x="380" y="182"
/>
<di:waypoint x="380" y="70"
/>
<di:waypoint x="680" y="70"
/>
<di:waypoint x="680" y="160"
/>
<di:waypoint x="380" y="182"/>
<di:waypoint x="380" y="70"/>
<di:waypoint x="680" y="70"/>
<di:waypoint x="680" y="160"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="490" y="52" width="83" height="14"
/>
<dc:Bounds x="490" y="52" width="83" height="14"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1oa4lhn_di" bpmnElement="Flow_1oa4lhn">
<di:waypoint x="380" y="182"
/>
<di:waypoint x="380" y="110"
/>
<di:waypoint x="680" y="110"
/>
<di:waypoint x="680" y="160"
/>
<di:waypoint x="380" y="182"/>
<di:waypoint x="380" y="110"/>
<di:waypoint x="680" y="110"/>
<di:waypoint x="680" y="160"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="495" y="92" width="71" height="14"
/>
<dc:Bounds x="495" y="92" width="71" height="14"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
...
...
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