Skip to content
Snippets Groups Projects
Commit 95e66223 authored by jurgenhaas's avatar jurgenhaas
Browse files

Update model 0001

parent 061916fd
Branches
No related tags found
1 merge request!83Update model 0001
Pipeline #978301 passed
---
title: ECA Library - Route test
version: v1
version: v2
tags:
- bpmn
- library
......@@ -11,7 +11,7 @@ tags:
---
# Route test
Version v1
Version v2
<script>url='bpmn_io-eca_lib_0001.xml';archive='bpmn_io-eca_lib_0001.tar.gz'</script>
{!include/library/viewer.html!}
......@@ -20,6 +20,8 @@ Version v1
If a node page gets requested and the node is of type &quot;article&quot;, a message will be printed.
This is using the event [Controller found to handle request](https://ecaguide.org/plugins/eca/misc/events/kernel_controller/?h=controller+found+handle+request) as thiss is working even if pages are cached.
## Dependencies
- module
......@@ -28,10 +30,14 @@ If a node page gets requested and the node is of type &quot;article&quot;, a mes
## Events
- Start dispatching request
- Controller found to handle request
## Changelog
`v1`
: Initial version
`v2`
: Updated to latest plugin versions, fixed some typos, change the event from &quot;Start dispatching request&quot; to &quot;Controller found to handle request&quot;
No preview for this file type
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:qa="http://some-company/schema/bpmn/qa" id="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
<bpmn2:process id="ECA_Lib_0001" name="Route test" isExecutable="true" camunda:versionTag="v1">
<bpmn2:documentation>If a node page gets requested and the node is of type "article", a message will be printed.</bpmn2:documentation>
<bpmn2:process id="ECA_Lib_0001" name="Route test" isExecutable="true" camunda:versionTag="v2">
<bpmn2:documentation>If a node page gets requested and the node is of type "article", a message will be printed.
This is using the event [Controller found to handle request](https://ecaguide.org/plugins/eca/misc/events/kernel_controller/?h=controller+found+handle+request) as thiss is working even if pages are cached.</bpmn2:documentation>
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="Tags" value="simple,route,token,node" />
<camunda:property name="Changelog v1" value="Initial version" />
<camunda:property name="Changelog v2" value="Updated to latest plugin versions, fixed some typos, change the event from &#34;Start dispatching request&#34; to &#34;Controller found to handle request&#34;" />
</camunda:properties>
</bpmn2:extensionElements>
<bpmn2:startEvent id="Event_0l86rxh" name="Start request" camunda:modelerTemplate="org.drupal.event.kernel:request">
<bpmn2:startEvent id="Event_0l86rxh" name="Found controller" camunda:modelerTemplate="org.drupal.event.kernel:controller">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="kernel:request" />
<camunda:property name="pluginid" value="kernel:controller" />
</camunda:properties>
</bpmn2:extensionElements>
<bpmn2:outgoing>Flow_0vgujvv</bpmn2:outgoing>
......@@ -59,7 +62,7 @@
</camunda:field>
</bpmn2:extensionElements>
</bpmn2:sequenceFlow>
<bpmn2:task id="Activity_1bcku98" name="Print node title as essage" camunda:modelerTemplate="org.drupal.action.action_message_action">
<bpmn2:task id="Activity_1bcku98" name="Print node title as message" camunda:modelerTemplate="org.drupal.action.action_message_action">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="action_message_action" />
......@@ -67,10 +70,13 @@
<camunda:field name="message">
<camunda:string>You are visiting "[mynode:title]"</camunda:string>
</camunda:field>
<camunda:field name="replace_tokens">
<camunda:string>yes</camunda:string>
</camunda:field>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_057atra</bpmn2:incoming>
</bpmn2:task>
<bpmn2:sequenceFlow id="Flow_057atra" camunda:modelerTemplate="org.drupal.condition.eca_entity_type_bundle" sourceRef="Activity_0yxnsha" targetRef="Activity_1bcku98">
<bpmn2:sequenceFlow id="Flow_057atra" name="Is it an article?" camunda:modelerTemplate="org.drupal.condition.eca_entity_type_bundle" sourceRef="Activity_0yxnsha" targetRef="Activity_1bcku98">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="pluginid" value="eca_entity_type_bundle" />
......@@ -82,7 +88,7 @@
<camunda:string>no</camunda:string>
</camunda:field>
<camunda:field name="entity">
<camunda:string>myode</camunda:string>
<camunda:string>mynode</camunda:string>
</camunda:field>
</bpmn2:extensionElements>
</bpmn2:sequenceFlow>
......@@ -92,7 +98,7 @@
<bpmndi:BPMNShape id="Event_0l86rxh_di" bpmnElement="Event_0l86rxh">
<dc:Bounds x="382" y="112" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="369" y="155" width="63" height="14" />
<dc:Bounds x="361" y="155" width="80" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0yxnsha_di" bpmnElement="Activity_0yxnsha">
......@@ -113,6 +119,9 @@
<bpmndi:BPMNEdge id="Flow_057atra_di" bpmnElement="Flow_057atra">
<di:waypoint x="680" y="130" />
<di:waypoint x="820" y="130" />
<bpmndi:BPMNLabel>
<dc:Bounds x="715" y="112" width="71" height="14" />
</bpmndi:BPMNLabel>
</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