diff --git a/docs/library/forms/content_validation.md b/docs/library/forms/content_validation.md index 168ed631f5ff99f504c2ca07b65513ae492fcc9a..c7ec78613f61fa117550d7d7318e385e6c6aaaa3 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 "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 56a26c91b88f5ea528b9dae26a091e4f83e90021..165672799be50282177589750f78efc5722c067f 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 2ecbf2d9afe3574febd01bbe5566418662c014cd..23acc82e58dc820c8f9f83c4d5e20d6d664cbe12 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 "Authoring"" camunda:modelerTemplate="org.drupal.action.eca_form_add_group_element"> + <bpmn2:task id="Activity_0oquvx2" name="Group title and body into "Authoring"" 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>