Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Scheduled publishing
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
Scheduled publishing
Commits
fec36b86
Commit
fec36b86
authored
9 months ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Update recipe for ECA 2 compatibility
parent
d1c70ca9
No related branches found
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_0023.yml
+1
-1
1 addition, 1 deletion
config/eca.eca.eca_lib_0023.yml
config/eca.model.eca_lib_0023.yml
+80
-80
80 additions, 80 deletions
config/eca.model.eca_lib_0023.yml
with
81 additions
and
81 deletions
config/eca.eca.eca_lib_0023.yml
+
1
−
1
View file @
fec36b86
...
...
@@ -13,7 +13,7 @@ id: eca_lib_0023
modeller
:
bpmn_io
label
:
'
Scheduled
publishing'
version
:
v1
weight
:
null
weight
:
0
events
:
Event_0p32014
:
plugin
:
'
eca_base:eca_cron'
...
...
This diff is collapsed.
Click to expand it.
config/eca.model.eca_lib_0023.yml
+
80
−
80
View file @
fec36b86
...
...
@@ -24,14 +24,14 @@ modeldata: |
The creation of this module was recorded and the video with additional explanations [can be watch here](https://tube.tchncs.de/w/5cs5Du3579Nwau1m9Rv92G).</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="Changelog v1" value="Initial release"
/>
<camunda:property name="Tags" value="simple,cron,views,schedule"
/>
<camunda:property name="Changelog v1" value="Initial release"/>
<camunda:property name="Tags" value="simple,cron,views,schedule"/>
</camunda:properties>
</bpmn2:extensionElements>
<bpmn2:startEvent id="Event_0p32014" name="Run 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>
...
...
@@ -42,7 +42,7 @@ modeldata: |
<bpmn2:task id="Activity_0ithjix" 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>
...
...
@@ -53,11 +53,11 @@ modeldata: |
<bpmn2:outgoing>Flow_1wuyij9</bpmn2:outgoing>
<bpmn2:outgoing>Flow_1lpi1ar</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1mrmkmk" sourceRef="Event_0p32014" targetRef="Activity_0ithjix"
/>
<bpmn2:sequenceFlow id="Flow_1mrmkmk" sourceRef="Event_0p32014" targetRef="Activity_0ithjix"/>
<bpmn2:task id="Activity_15gpxb3" name="View: get due nodes for publishing" 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>listofnodes</camunda:string>
...
...
@@ -69,23 +69,23 @@ modeldata: |
<camunda:string>publish</camunda:string>
</camunda:field>
<camunda:field name="arguments">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1wuyij9</bpmn2:incoming>
<bpmn2:outgoing>Flow_03y60cv</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1wuyij9" sourceRef="Activity_0ithjix" targetRef="Activity_15gpxb3"
/>
<bpmn2:sequenceFlow id="Flow_1wuyij9" sourceRef="Activity_0ithjix" targetRef="Activity_15gpxb3"/>
<bpmn2:task id="Activity_0awq7h0" name="Trigger publish event" 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>publish</camunda:string>
</camunda:field>
<camunda:field name="tokens">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
<camunda:field name="object">
<camunda:string>listofnodes</camunda:string>
...
...
@@ -93,11 +93,11 @@ modeldata: |
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_03y60cv</bpmn2:incoming>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_03y60cv" sourceRef="Activity_15gpxb3" targetRef="Activity_0awq7h0"
/>
<bpmn2:sequenceFlow id="Flow_03y60cv" sourceRef="Activity_15gpxb3" targetRef="Activity_0awq7h0"/>
<bpmn2:startEvent id="Event_09coysx" name="Publish event" 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>publish</camunda:string>
...
...
@@ -108,20 +108,20 @@ modeldata: |
<bpmn2:task id="Activity_1ktdv93" name="Publish node" camunda:modelerTemplate="org.drupal.action.entity:publish_action:node">
<bpmn2:extensionElements>
<camunda:field name="object">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
<camunda:properties>
<camunda:property name="pluginid" value="entity:publish_action:node"
/>
<camunda:property name="pluginid" value="entity:publish_action:node"/>
</camunda:properties>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1bdjh0j</bpmn2:incoming>
<bpmn2:outgoing>Flow_0iieckr</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1bdjh0j" sourceRef="Event_09coysx" targetRef="Activity_1ktdv93"
/>
<bpmn2:sequenceFlow id="Flow_1bdjh0j" sourceRef="Event_09coysx" targetRef="Activity_1ktdv93"/>
<bpmn2:task id="Activity_1k4co86" name="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>Node [entity:nid] was published automatically.</camunda:string>
...
...
@@ -132,11 +132,11 @@ modeldata: |
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_0iieckr</bpmn2:incoming>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_0iieckr" sourceRef="Activity_1ktdv93" targetRef="Activity_1k4co86"
/>
<bpmn2:sequenceFlow id="Flow_0iieckr" sourceRef="Activity_1ktdv93" targetRef="Activity_1k4co86"/>
<bpmn2:task id="Activity_00vgm9i" name="View: get due nodes for unpublishing" 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>listofnodes</camunda:string>
...
...
@@ -148,23 +148,23 @@ modeldata: |
<camunda:string>unpublish</camunda:string>
</camunda:field>
<camunda:field name="arguments">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1lpi1ar</bpmn2:incoming>
<bpmn2:outgoing>Flow_0m9ft93</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1lpi1ar" sourceRef="Activity_0ithjix" targetRef="Activity_00vgm9i"
/>
<bpmn2:sequenceFlow id="Flow_1lpi1ar" sourceRef="Activity_0ithjix" targetRef="Activity_00vgm9i"/>
<bpmn2:task id="Activity_1bdbgcd" name="Trigger unpublish event" 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>unpublish</camunda:string>
</camunda:field>
<camunda:field name="tokens">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
<camunda:field name="object">
<camunda:string>listofnodes</camunda:string>
...
...
@@ -172,11 +172,11 @@ modeldata: |
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_0m9ft93</bpmn2:incoming>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_0m9ft93" sourceRef="Activity_00vgm9i" targetRef="Activity_1bdbgcd"
/>
<bpmn2:sequenceFlow id="Flow_0m9ft93" sourceRef="Activity_00vgm9i" targetRef="Activity_1bdbgcd"/>
<bpmn2:startEvent id="Event_0riefxz" name="Unpublish event" 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>unpublish</camunda:string>
...
...
@@ -187,20 +187,20 @@ modeldata: |
<bpmn2:task id="Activity_1wq2xku" name="Unpublish node" camunda:modelerTemplate="org.drupal.action.entity:unpublish_action:node">
<bpmn2:extensionElements>
<camunda:field name="object">
<camunda:string
></camunda:string
>
<camunda:string
/
>
</camunda:field>
<camunda:properties>
<camunda:property name="pluginid" value="entity:unpublish_action:node"
/>
<camunda:property name="pluginid" value="entity:unpublish_action:node"/>
</camunda:properties>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1rfx1y3</bpmn2:incoming>
<bpmn2:outgoing>Flow_02faand</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_1rfx1y3" sourceRef="Event_0riefxz" targetRef="Activity_1wq2xku"
/>
<bpmn2:sequenceFlow id="Flow_1rfx1y3" sourceRef="Event_0riefxz" targetRef="Activity_1wq2xku"/>
<bpmn2:task id="Activity_1ggf0t7" name="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>Node [entity:nid] just got unpublished.</camunda:string>
...
...
@@ -211,11 +211,11 @@ modeldata: |
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_02faand</bpmn2:incoming>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_02faand" sourceRef="Activity_1wq2xku" targetRef="Activity_1ggf0t7"
/>
<bpmn2:sequenceFlow id="Flow_02faand" sourceRef="Activity_1wq2xku" targetRef="Activity_1ggf0t7"/>
<bpmn2:startEvent id="Event_18mnri3" name="Scheduled Publishing" 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>auto-publish</camunda:string>
...
...
@@ -223,112 +223,112 @@ modeldata: |
</bpmn2:extensionElements>
<bpmn2:outgoing>Flow_0w351aa</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow id="Flow_0w351aa" sourceRef="Event_18mnri3" targetRef="Activity_0ithjix"
/>
<bpmn2:sequenceFlow id="Flow_0w351aa" sourceRef="Event_18mnri3" targetRef="Activity_0ithjix"/>
</bpmn2:process>
<bpmndi:BPMNDiagram id="sid-7f2c65fd-800e-4632-9f5d-48caed2d4ec9">
<bpmndi:BPMNPlane id="sid-75c0687e-a29e-4f60-b97b-28108d6cf98a" bpmnElement="eca_lib_0023">
<bpmndi:BPMNShape id="Event_0p32014_di" bpmnElement="Event_0p32014">
<dc:Bounds x="342" y="102" width="36" height="36"
/>
<dc:Bounds x="342" y="102" width="36" height="36"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="338" y="145" width="45" height="14"
/>
<dc:Bounds x="338" y="145" width="45" height="14"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0ithjix_di" bpmnElement="Activity_0ithjix">
<dc:Bounds x="430" y="80" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="430" y="80" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_15gpxb3_di" bpmnElement="Activity_15gpxb3">
<dc:Bounds x="590" y="80" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="590" y="80" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0awq7h0_di" bpmnElement="Activity_0awq7h0">
<dc:Bounds x="750" y="80" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="750" y="80" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_09coysx_di" bpmnElement="Event_09coysx">
<dc:Bounds x="342" y="452" width="36" height="36"
/>
<dc:Bounds x="342" y="452" width="36" height="36"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="327" y="495" width="67" height="14"
/>
<dc:Bounds x="327" y="495" width="67" height="14"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ktdv93_di" bpmnElement="Activity_1ktdv93">
<dc:Bounds x="430" y="430" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="430" y="430" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1k4co86_di" bpmnElement="Activity_1k4co86">
<dc:Bounds x="590" y="430" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="590" y="430" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_00vgm9i_di" bpmnElement="Activity_00vgm9i">
<dc:Bounds x="590" y="190" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="590" y="190" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1bdbgcd_di" bpmnElement="Activity_1bdbgcd">
<dc:Bounds x="750" y="190" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="750" y="190" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0riefxz_di" bpmnElement="Event_0riefxz">
<dc:Bounds x="342" y="542" width="36" height="36"
/>
<dc:Bounds x="342" y="542" width="36" height="36"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="321" y="585" width="79" height="14"
/>
<dc:Bounds x="321" y="585" width="79" height="14"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1wq2xku_di" bpmnElement="Activity_1wq2xku">
<dc:Bounds x="430" y="520" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="430" y="520" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ggf0t7_di" bpmnElement="Activity_1ggf0t7">
<dc:Bounds x="590" y="520" width="100" height="80"
/>
<bpmndi:BPMNLabel
/>
<dc:Bounds x="590" y="520" width="100" height="80"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_18mnri3_di" bpmnElement="Event_18mnri3">
<dc:Bounds x="342" y="2" width="36" height="36"
/>
<dc:Bounds x="342" y="2" width="36" height="36"/>
<bpmndi:BPMNLabel>
<dc:Bounds x="335" y="45" width="52" height="27"
/>
<dc:Bounds x="335" y="45" width="52" height="27"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1mrmkmk_di" bpmnElement="Flow_1mrmkmk">
<di:waypoint x="378" y="120"
/>
<di:waypoint x="430" y="120"
/>
<di:waypoint x="378" y="120"/>
<di:waypoint x="430" y="120"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1wuyij9_di" bpmnElement="Flow_1wuyij9">
<di:waypoint x="530" y="120"
/>
<di:waypoint x="590" y="120"
/>
<di:waypoint x="530" y="120"/>
<di:waypoint x="590" y="120"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_03y60cv_di" bpmnElement="Flow_03y60cv">
<di:waypoint x="690" y="120"
/>
<di:waypoint x="750" y="120"
/>
<di:waypoint x="690" y="120"/>
<di:waypoint x="750" y="120"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1bdjh0j_di" bpmnElement="Flow_1bdjh0j">
<di:waypoint x="378" y="470"
/>
<di:waypoint x="430" y="470"
/>
<di:waypoint x="378" y="470"/>
<di:waypoint x="430" y="470"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0iieckr_di" bpmnElement="Flow_0iieckr">
<di:waypoint x="530" y="470"
/>
<di:waypoint x="590" y="470"
/>
<di:waypoint x="530" y="470"/>
<di:waypoint x="590" y="470"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1lpi1ar_di" bpmnElement="Flow_1lpi1ar">
<di:waypoint x="530" y="120"
/>
<di:waypoint x="560" y="120"
/>
<di:waypoint x="560" y="230"
/>
<di:waypoint x="590" y="230"
/>
<di:waypoint x="530" y="120"/>
<di:waypoint x="560" y="120"/>
<di:waypoint x="560" y="230"/>
<di:waypoint x="590" y="230"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0m9ft93_di" bpmnElement="Flow_0m9ft93">
<di:waypoint x="690" y="230"
/>
<di:waypoint x="750" y="230"
/>
<di:waypoint x="690" y="230"/>
<di:waypoint x="750" y="230"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1rfx1y3_di" bpmnElement="Flow_1rfx1y3">
<di:waypoint x="378" y="560"
/>
<di:waypoint x="430" y="560"
/>
<di:waypoint x="378" y="560"/>
<di:waypoint x="430" y="560"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_02faand_di" bpmnElement="Flow_02faand">
<di:waypoint x="530" y="560"
/>
<di:waypoint x="590" y="560"
/>
<di:waypoint x="530" y="560"/>
<di:waypoint x="590" y="560"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0w351aa_di" bpmnElement="Flow_0w351aa">
<di:waypoint x="378" y="20"
/>
<di:waypoint x="480" y="20"
/>
<di:waypoint x="480" y="80"
/>
<di:waypoint x="378" y="20"/>
<di:waypoint x="480" y="20"/>
<di:waypoint x="480" y="80"/>
</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