[ofbiz-framework] branch release18.12 updated: Improved: Improves service-eca.xsd documentation (OFBIZ-9994)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-framework] branch release18.12 updated: Improved: Improves service-eca.xsd documentation (OFBIZ-9994)

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release18.12 by this push:
     new 0231626  Improved: Improves service-eca.xsd documentation  (OFBIZ-9994)
0231626 is described below

commit 0231626f1c1b39390a2a6bc6aa80dba0bf5aa6b5
Author: Jacques Le Roux <[hidden email]>
AuthorDate: Sun Aug 30 18:56:52 2020 +0200

    Improved: Improves service-eca.xsd documentation  (OFBIZ-9994)
   
    Fixes some issues
   
    # Conflicts:
    # framework/service/dtd/service-eca.xsd
---
 framework/service/dtd/service-eca.xsd | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/framework/service/dtd/service-eca.xsd b/framework/service/dtd/service-eca.xsd
index 0328ee2..16e109a 100644
--- a/framework/service/dtd/service-eca.xsd
+++ b/framework/service/dtd/service-eca.xsd
@@ -18,6 +18,8 @@ specific language governing permissions and limitations
 under the License.
 -->
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+
+    <xs:element name="service-eca">
     <xs:element name="service-eca">
         <xs:complexType>
             <xs:sequence>
@@ -25,6 +27,8 @@ under the License.
             </xs:sequence>
         </xs:complexType>
     </xs:element>
+    
+    <xs:element name="eca">
     <xs:element name="eca">
         <xs:complexType>
             <xs:sequence>
@@ -41,6 +45,9 @@ under the License.
             <xs:attributeGroup ref="attlist.eca"/>
         </xs:complexType>
     </xs:element>
+    
+    <xs:attributeGroup name="attlist.eca">
+        <xs:attribute type="xs:string" name="service" use="required" />
     <xs:attributeGroup name="attlist.eca">
         <xs:attribute type="xs:string" name="service" use="required"/>
         <xs:attribute name="event" use="required">
@@ -177,6 +184,15 @@ under the License.
     </xs:attributeGroup>
     <xs:element name="condition-service">
         <xs:complexType>
+            <xs:attributeGroup ref="attlist.condition-service">
+                <xs:annotation>
+                    <xs:documentation>
+                        Specify the name of a service.
+                        It will call that service and pass it the context.
+                        The service returns a boolean, that's the condition.
+                    </xs:documentation>
+                </xs:annotation>
+            </xs:attributeGroup>
             <xs:attributeGroup ref="attlist.condition-service"/>
         </xs:complexType>
     </xs:element>