calcop attribute definition conflict
------------------------------------ Key: OFBIZ-703 URL: https://issues.apache.org/jira/browse/OFBIZ-703 Project: OFBiz (The Open for Business Project) Issue Type: Bug Components: framework Reporter: Andrew Sykes Priority: Minor Minilang guide says the following... Each calcop tag has three attributes: operator, map-name and field-name. Only the operator is required. The operator specifies the operation to perform on the given field and nested calcops and numbers. It must be one of the following: get | add | subtract | multiply | divide | negative. However, during checkout, I see this error... 2007-02-08 16:11:21,635 (http-0.0.0.0-8443-Processor4) [ EntityEcaRule.java:111:INFO ] Running Entity ECA Service: checkCreateOrderRequirement, triggered by rule on Entity: OrderItem 2007-02-08 16:11:21,784 (http-0.0.0.0-8443-Processor4) [ UtilXml.java:649:ERROR] XmlFileLoader: File file:/home/andrew/eclipse-workspace/Apache-OfBiz/applications/order/script/org/ofbiz/order/order/OrderServices.xml process error. Line: 500. Error message: cvc-complex-type.4: Attribute 'field-name' must appear on element 'calcop'. 2007-02-08 16:11:21,791 (http-0.0.0.0-8443-Processor4) [ UtilXml.java:649:ERROR] XmlFileLoader: File file:/home/andrew/eclipse-workspace/Apache-OfBiz/applications/order/script/org/ofbiz/order/order/OrderServices.xml process error. Line: 552. Error message: cvc-complex-type.4: Attribute 'field-name' must appear on element 'calcop'. Can we clarify whether field-name is mandatory? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux reassigned OFBIZ-703: ------------------------------------- Assignee: Jacques Le Roux > calcop attribute definition conflict > ------------------------------------ > > Key: OFBIZ-703 > URL: https://issues.apache.org/jira/browse/OFBIZ-703 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: framework > Reporter: Andrew Sykes > Assigned To: Jacques Le Roux > Priority: Minor > > Minilang guide says the following... > Each calcop tag has three attributes: operator, map-name and field-name. Only the operator is required. The operator specifies the operation to perform on the given field and nested calcops and numbers. It must be one of the following: get | add | subtract | multiply | divide | negative. > However, during checkout, I see this error... > 2007-02-08 16:11:21,635 (http-0.0.0.0-8443-Processor4) [ EntityEcaRule.java:111:INFO ] Running Entity ECA Service: checkCreateOrderRequirement, triggered by rule on Entity: OrderItem > 2007-02-08 16:11:21,784 (http-0.0.0.0-8443-Processor4) [ UtilXml.java:649:ERROR] XmlFileLoader: File file:/home/andrew/eclipse-workspace/Apache-OfBiz/applications/order/script/org/ofbiz/order/order/OrderServices.xml process error. Line: 500. Error message: cvc-complex-type.4: Attribute 'field-name' must appear on element 'calcop'. > 2007-02-08 16:11:21,791 (http-0.0.0.0-8443-Processor4) [ UtilXml.java:649:ERROR] XmlFileLoader: File file:/home/andrew/eclipse-workspace/Apache-OfBiz/applications/order/script/org/ofbiz/order/order/OrderServices.xml process error. Line: 552. Error message: cvc-complex-type.4: Attribute 'field-name' must appear on element 'calcop'. > Can we clarify whether field-name is mandatory? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471530 ] Jacques Le Roux commented on OFBIZ-703: --------------------------------------- Andrew, This documentation came from http://ofbiz.apache.org/docs/minilang.html#Other. Sorry, I did not verify this point, thanks for pointing it out. I will change that and add information about how calculation is done internally (Big decimal, etc.) and some more. This means also that I have to check all the informations I copied from the old minilang document... I will then update and hopefully close this issue. > calcop attribute definition conflict > ------------------------------------ > > Key: OFBIZ-703 > URL: https://issues.apache.org/jira/browse/OFBIZ-703 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: framework > Reporter: Andrew Sykes > Assigned To: Jacques Le Roux > Priority: Minor > > Minilang guide says the following... > Each calcop tag has three attributes: operator, map-name and field-name. Only the operator is required. The operator specifies the operation to perform on the given field and nested calcops and numbers. It must be one of the following: get | add | subtract | multiply | divide | negative. > However, during checkout, I see this error... > 2007-02-08 16:11:21,635 (http-0.0.0.0-8443-Processor4) [ EntityEcaRule.java:111:INFO ] Running Entity ECA Service: checkCreateOrderRequirement, triggered by rule on Entity: OrderItem > 2007-02-08 16:11:21,784 (http-0.0.0.0-8443-Processor4) [ UtilXml.java:649:ERROR] XmlFileLoader: File file:/home/andrew/eclipse-workspace/Apache-OfBiz/applications/order/script/org/ofbiz/order/order/OrderServices.xml process error. Line: 500. Error message: cvc-complex-type.4: Attribute 'field-name' must appear on element 'calcop'. > 2007-02-08 16:11:21,791 (http-0.0.0.0-8443-Processor4) [ UtilXml.java:649:ERROR] XmlFileLoader: File file:/home/andrew/eclipse-workspace/Apache-OfBiz/applications/order/script/org/ofbiz/order/order/OrderServices.xml process error. Line: 552. Error message: cvc-complex-type.4: Attribute 'field-name' must appear on element 'calcop'. > Can we clarify whether field-name is mandatory? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-703. --------------------------------- Resolution: Fixed I corrected and checked, seems ok now. BTW There is a drawback of migrating all operators documenation in XSD file : the contextuel annotation/documentation mechanism is character limited. Actually this is not really a problem if we use and XSLT (or FTL) transformation to render all documentation included. This means also that we should not restrict ourself by the number of characters the annotation/documentation mechanism limits to. > calcop attribute definition conflict > ------------------------------------ > > Key: OFBIZ-703 > URL: https://issues.apache.org/jira/browse/OFBIZ-703 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: framework > Reporter: Andrew Sykes > Assigned To: Jacques Le Roux > Priority: Minor > > Minilang guide says the following... > Each calcop tag has three attributes: operator, map-name and field-name. Only the operator is required. The operator specifies the operation to perform on the given field and nested calcops and numbers. It must be one of the following: get | add | subtract | multiply | divide | negative. > However, during checkout, I see this error... > 2007-02-08 16:11:21,635 (http-0.0.0.0-8443-Processor4) [ EntityEcaRule.java:111:INFO ] Running Entity ECA Service: checkCreateOrderRequirement, triggered by rule on Entity: OrderItem > 2007-02-08 16:11:21,784 (http-0.0.0.0-8443-Processor4) [ UtilXml.java:649:ERROR] XmlFileLoader: File file:/home/andrew/eclipse-workspace/Apache-OfBiz/applications/order/script/org/ofbiz/order/order/OrderServices.xml process error. Line: 500. Error message: cvc-complex-type.4: Attribute 'field-name' must appear on element 'calcop'. > 2007-02-08 16:11:21,791 (http-0.0.0.0-8443-Processor4) [ UtilXml.java:649:ERROR] XmlFileLoader: File file:/home/andrew/eclipse-workspace/Apache-OfBiz/applications/order/script/org/ofbiz/order/order/OrderServices.xml process error. Line: 552. Error message: cvc-complex-type.4: Attribute 'field-name' must appear on element 'calcop'. > Can we clarify whether field-name is mandatory? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |