From 4b50c26f6b091a4750bb8ebff7c9a0b797e1ef5f Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Thu, 11 Jul 2024 10:45:54 +0200
Subject: [PATCH] drupal/documentation/eca#67 Fix title field

---
 docs/library/forms/content_validation.md      |  8 +-
 .../bpmn_io-eca_lib_0009.tar.gz               |  4 +-
 .../bpmn_io-eca_lib_0009.xml                  | 83 ++++++++++---------
 3 files changed, 50 insertions(+), 45 deletions(-)

diff --git a/docs/library/forms/content_validation.md b/docs/library/forms/content_validation.md
index 168ed631..c7ec7861 100644
--- a/docs/library/forms/content_validation.md
+++ b/docs/library/forms/content_validation.md
@@ -1,6 +1,6 @@
 ---
 title: ECA Library - Content validation
-version: v1
+version: v2
 tags:
 - bpmn
 - library
@@ -10,7 +10,7 @@ tags:
 ---
 # Content validation
 
-Version v1
+Version v2
 
 <script>url='bpmn_io-eca_lib_0009.xml';archive='bpmn_io-eca_lib_0009.tar.gz'</script>
 {!include/library/viewer.html!}
@@ -67,3 +67,7 @@ This example model changes the behaviour when editing a content of type &quot;ar
 `v1`
 
 :   Initial version
+
+`v2`
+
+:   Fixing title field
diff --git a/docs/library/forms/content_validation/bpmn_io-eca_lib_0009.tar.gz b/docs/library/forms/content_validation/bpmn_io-eca_lib_0009.tar.gz
index 56a26c91..16567279 100644
--- a/docs/library/forms/content_validation/bpmn_io-eca_lib_0009.tar.gz
+++ b/docs/library/forms/content_validation/bpmn_io-eca_lib_0009.tar.gz
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:901d8484093299630ef365d5750bfeef1d3171679d2b1ba9d90019b2eb662502
-size 3106
+oid sha256:654d96ecc9e15b85132863be903f261ba96fa72c5c3ff07933e61f7e25337148
+size 3136
diff --git a/docs/library/forms/content_validation/bpmn_io-eca_lib_0009.xml b/docs/library/forms/content_validation/bpmn_io-eca_lib_0009.xml
index 2ecbf2d9..23acc82e 100644
--- a/docs/library/forms/content_validation/bpmn_io-eca_lib_0009.xml
+++ b/docs/library/forms/content_validation/bpmn_io-eca_lib_0009.xml
@@ -1,22 +1,23 @@
 <?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_0009" name="Content validation" isExecutable="true" camunda:versionTag="v1">
+  <bpmn2:process id="eca_lib_0009" name="Content validation" isExecutable="true" camunda:versionTag="v2">
     <bpmn2:documentation>This example model changes the behaviour when editing a content of type "article" in a form:
 - It groups the title and body field together
 - It makes sure that the body field is not empty, when trying to publish the article.</bpmn2:documentation>
     <bpmn2:extensionElements>
       <camunda:properties>
-        <camunda:property name="Changelog v1" value="Initial version"/>
-        <camunda:property name="Tags" value="forms,field group,form field validation"/>
+        <camunda:property name="Changelog v1" value="Initial version" />
+        <camunda:property name="Tags" value="forms,field group,form field validation" />
+        <camunda:property name="Changelog v2" value="Fixing title field" />
       </camunda:properties>
     </bpmn2:extensionElements>
     <bpmn2:startEvent id="Event_07t9bjm" name="Processing article form" camunda:modelerTemplate="org.drupal.event.form:form_process">
       <bpmn2:extensionElements>
         <camunda:properties>
-          <camunda:property name="pluginid" value="form:form_process"/>
+          <camunda:property name="pluginid" value="form:form_process" />
         </camunda:properties>
         <camunda:field name="form_id">
-          <camunda:string/>
+          <camunda:string></camunda:string>
         </camunda:field>
         <camunda:field name="entity_type_id">
           <camunda:string>node</camunda:string>
@@ -30,10 +31,10 @@
       </bpmn2:extensionElements>
       <bpmn2:outgoing>Flow_1c4lsz3</bpmn2:outgoing>
     </bpmn2:startEvent>
-    <bpmn2:task id="Activity_0oquvx2" name="Group title and body into &quot;Authoring&quot;" camunda:modelerTemplate="org.drupal.action.eca_form_add_group_element">
+    <bpmn2:task id="Activity_0oquvx2" name="Group title and body into &#34;Authoring&#34;" camunda:modelerTemplate="org.drupal.action.eca_form_add_group_element">
       <bpmn2:extensionElements>
         <camunda:properties>
-          <camunda:property name="pluginid" value="eca_form_add_group_element"/>
+          <camunda:property name="pluginid" value="eca_form_add_group_element" />
         </camunda:properties>
         <camunda:field name="name">
           <camunda:string>authoring</camunda:string>
@@ -48,25 +49,25 @@
           <camunda:string>0</camunda:string>
         </camunda:field>
         <camunda:field name="fields">
-          <camunda:string>title, body</camunda:string>
+          <camunda:string>title[0][value], body</camunda:string>
         </camunda:field>
         <camunda:field name="introduction_text">
-          <camunda:string/>
+          <camunda:string></camunda:string>
         </camunda:field>
         <camunda:field name="summary_value">
-          <camunda:string/>
+          <camunda:string></camunda:string>
         </camunda:field>
       </bpmn2:extensionElements>
       <bpmn2:incoming>Flow_1c4lsz3</bpmn2:incoming>
     </bpmn2:task>
-    <bpmn2:sequenceFlow id="Flow_1c4lsz3" sourceRef="Event_07t9bjm" targetRef="Activity_0oquvx2"/>
+    <bpmn2:sequenceFlow id="Flow_1c4lsz3" sourceRef="Event_07t9bjm" targetRef="Activity_0oquvx2" />
     <bpmn2:startEvent id="Event_0obipdz" name="Validating article form" camunda:modelerTemplate="org.drupal.event.form:form_validate">
       <bpmn2:extensionElements>
         <camunda:properties>
-          <camunda:property name="pluginid" value="form:form_validate"/>
+          <camunda:property name="pluginid" value="form:form_validate" />
         </camunda:properties>
         <camunda:field name="form_id">
-          <camunda:string/>
+          <camunda:string></camunda:string>
         </camunda:field>
         <camunda:field name="entity_type_id">
           <camunda:string>node</camunda:string>
@@ -83,7 +84,7 @@
     <bpmn2:task id="Activity_0kuu2di" name="Build node from submitted values" camunda:modelerTemplate="org.drupal.action.eca_form_build_entity">
       <bpmn2:extensionElements>
         <camunda:properties>
-          <camunda:property name="pluginid" value="eca_form_build_entity"/>
+          <camunda:property name="pluginid" value="eca_form_build_entity" />
         </camunda:properties>
         <camunda:field name="token_name">
           <camunda:string>node</camunda:string>
@@ -92,11 +93,11 @@
       <bpmn2:incoming>Flow_0dux81p</bpmn2:incoming>
       <bpmn2:outgoing>Flow_1vzdsli</bpmn2:outgoing>
     </bpmn2:task>
-    <bpmn2:sequenceFlow id="Flow_0dux81p" sourceRef="Event_0obipdz" targetRef="Activity_0kuu2di"/>
+    <bpmn2:sequenceFlow id="Flow_0dux81p" sourceRef="Event_0obipdz" targetRef="Activity_0kuu2di" />
     <bpmn2:task id="Activity_1wmvbc3" name="Chain for AND condition" camunda:modelerTemplate="org.drupal.action.eca_void_and_condition">
       <bpmn2:extensionElements>
         <camunda:properties>
-          <camunda:property name="pluginid" value="eca_void_and_condition"/>
+          <camunda:property name="pluginid" value="eca_void_and_condition" />
         </camunda:properties>
       </bpmn2:extensionElements>
       <bpmn2:incoming>Flow_1vzdsli</bpmn2:incoming>
@@ -105,7 +106,7 @@
     <bpmn2:sequenceFlow id="Flow_1vzdsli" name="Set to be published?" camunda:modelerTemplate="org.drupal.condition.eca_entity_field_value" sourceRef="Activity_0kuu2di" targetRef="Activity_1wmvbc3">
       <bpmn2:extensionElements>
         <camunda:properties>
-          <camunda:property name="pluginid" value="eca_entity_field_value"/>
+          <camunda:property name="pluginid" value="eca_entity_field_value" />
         </camunda:properties>
         <camunda:field name="field_name">
           <camunda:string>status</camunda:string>
@@ -133,7 +134,7 @@
     <bpmn2:task id="Activity_0qj9rwm" name="Set validation error on body field" camunda:modelerTemplate="org.drupal.action.eca_form_field_set_error">
       <bpmn2:extensionElements>
         <camunda:properties>
-          <camunda:property name="pluginid" value="eca_form_field_set_error"/>
+          <camunda:property name="pluginid" value="eca_form_field_set_error" />
         </camunda:properties>
         <camunda:field name="field_name">
           <camunda:string>body</camunda:string>
@@ -147,7 +148,7 @@
     <bpmn2:sequenceFlow id="Flow_1oy6uax" name="Body is empty?" camunda:modelerTemplate="org.drupal.condition.eca_entity_field_value_empty" sourceRef="Activity_1wmvbc3" targetRef="Activity_0qj9rwm">
       <bpmn2:extensionElements>
         <camunda:properties>
-          <camunda:property name="pluginid" value="eca_entity_field_value_empty"/>
+          <camunda:property name="pluginid" value="eca_entity_field_value_empty" />
         </camunda:properties>
         <camunda:field name="field_name">
           <camunda:string>body</camunda:string>
@@ -164,53 +165,53 @@
   <bpmndi:BPMNDiagram id="sid-2c7133c8-80df-4bca-9cc3-c476ee2199b5">
     <bpmndi:BPMNPlane id="sid-312ca64b-21d3-47e5-af2d-b16450bd2e25" bpmnElement="eca_lib_0009">
       <bpmndi:BPMNShape id="Event_07t9bjm_di" bpmnElement="Event_07t9bjm">
-        <dc:Bounds x="222" y="132" width="36" height="36"/>
+        <dc:Bounds x="222" y="132" width="36" height="36" />
         <bpmndi:BPMNLabel>
-          <dc:Bounds x="197" y="175" width="87" height="27"/>
+          <dc:Bounds x="197" y="175" width="87" height="27" />
         </bpmndi:BPMNLabel>
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="Activity_0oquvx2_di" bpmnElement="Activity_0oquvx2">
-        <dc:Bounds x="380" y="110" width="100" height="80"/>
-        <bpmndi:BPMNLabel/>
+        <dc:Bounds x="380" y="110" width="100" height="80" />
+        <bpmndi:BPMNLabel />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="Event_0obipdz_di" bpmnElement="Event_0obipdz">
-        <dc:Bounds x="222" y="282" width="36" height="36"/>
+        <dc:Bounds x="222" y="282" width="36" height="36" />
         <bpmndi:BPMNLabel>
-          <dc:Bounds x="200" y="325" width="80" height="27"/>
+          <dc:Bounds x="200" y="325" width="80" height="27" />
         </bpmndi:BPMNLabel>
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="Activity_0kuu2di_di" bpmnElement="Activity_0kuu2di">
-        <dc:Bounds x="380" y="260" width="100" height="80"/>
-        <bpmndi:BPMNLabel/>
+        <dc:Bounds x="380" y="260" width="100" height="80" />
+        <bpmndi:BPMNLabel />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="Activity_1wmvbc3_di" bpmnElement="Activity_1wmvbc3">
-        <dc:Bounds x="600" y="260" width="100" height="80"/>
-        <bpmndi:BPMNLabel/>
+        <dc:Bounds x="600" y="260" width="100" height="80" />
+        <bpmndi:BPMNLabel />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNShape id="Activity_0qj9rwm_di" bpmnElement="Activity_0qj9rwm">
-        <dc:Bounds x="820" y="260" width="100" height="80"/>
-        <bpmndi:BPMNLabel/>
+        <dc:Bounds x="820" y="260" width="100" height="80" />
+        <bpmndi:BPMNLabel />
       </bpmndi:BPMNShape>
       <bpmndi:BPMNEdge id="Flow_1c4lsz3_di" bpmnElement="Flow_1c4lsz3">
-        <di:waypoint x="258" y="150"/>
-        <di:waypoint x="380" y="150"/>
+        <di:waypoint x="258" y="150" />
+        <di:waypoint x="380" y="150" />
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNEdge id="Flow_0dux81p_di" bpmnElement="Flow_0dux81p">
-        <di:waypoint x="258" y="300"/>
-        <di:waypoint x="380" y="300"/>
+        <di:waypoint x="258" y="300" />
+        <di:waypoint x="380" y="300" />
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNEdge id="Flow_1vzdsli_di" bpmnElement="Flow_1vzdsli">
-        <di:waypoint x="480" y="300"/>
-        <di:waypoint x="600" y="300"/>
+        <di:waypoint x="480" y="300" />
+        <di:waypoint x="600" y="300" />
         <bpmndi:BPMNLabel>
-          <dc:Bounds x="513" y="266" width="54" height="27"/>
+          <dc:Bounds x="513" y="266" width="54" height="27" />
         </bpmndi:BPMNLabel>
       </bpmndi:BPMNEdge>
       <bpmndi:BPMNEdge id="Flow_1oy6uax_di" bpmnElement="Flow_1oy6uax">
-        <di:waypoint x="700" y="300"/>
-        <di:waypoint x="820" y="300"/>
+        <di:waypoint x="700" y="300" />
+        <di:waypoint x="820" y="300" />
         <bpmndi:BPMNLabel>
-          <dc:Bounds x="722" y="282" width="76" height="14"/>
+          <dc:Bounds x="722" y="282" width="76" height="14" />
         </bpmndi:BPMNLabel>
       </bpmndi:BPMNEdge>
     </bpmndi:BPMNPlane>
-- 
GitLab