Commit Graph
126 Commits
Author SHA1 Message Date
Jacques Le Roux d524de4d4c No functional change, replace " by "
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674292 13f79535-47bb-0310-9956-ffa450edef68
2015-04-17 12:36:12 +00:00
Jacques Le Roux d4ae38b2ae Revert r1673764 related with https://issues.apache.org/jira/browse/OFBIZ-6253 wrong: "Fixe <result-to-field> doc for <call-simple-method> in simple-methods-v2.xsd"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1673880 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 17:22:20 +00:00
Jacques Le Roux d80c881c57 Fixes a wrong assertion, <result-to-field can only be used with inline scope.
Minor &quot; to " changes

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1673764 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 13:45:43 +00:00
Adrian Crum b6818dd442 Some bug fixes in Mini-language:
1. Updated schema to indicate required attributes.
2. Fixed inconsistent implementation of the alternate delegator feature: https://issues.apache.org/jira/browse/OFBIZ-5531


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1566096 13f79535-47bb-0310-9956-ffa450edef68
2014-02-08 18:59:03 +00:00
Jacopo Cappellato ccbec25bf1 Fixed typos.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1561750 13f79535-47bb-0310-9956-ffa450edef68
2014-01-27 17:01:10 +00:00
Jacques Le Roux c06bd63860 This fixes "Set field in (at least) widget screen does not take into account a locale for (at least) the Float type" https://issues.apache.org/jira/browse/OFBIZ-5453
It actually does more than that. It follows Adrian's proposition of improving the GeoPoint data model. 
I did not applies all of Adrian's proposition (see our conversation in the Jira issue). Feel free to apply it completely if you are inclined so. 

I will also add an entry in wiki page "Revisions Requiring Data Migration (upgrade ofbiz)" at https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=7045166

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557447 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 19:39:23 +00:00
Jacques Le Roux d57782908a Completes "Set field in (at least) widget screen does not take into account a locale for (at least) the Float type" https://issues.apache.org/jira/browse/OFBIZ-5453 for minilang.
Removes dead code.
Locale applies only when the type is also passed, like in widgets.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1554685 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 22:02:17 +00:00
Jacques Le Roux 22cdda72c4 This closes "Set field in (at least) widget screen does not take into account a locale for (at least) the Float type" https://issues.apache.org/jira/browse/OFBIZ-5453
And definitively fixes issues with i18n of geolocation 

It introduces a "locale" attribute to the "set" operation in widget (I only tested screen, form is quite similar, should be ok) and minilang.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1554681 13f79535-47bb-0310-9956-ffa450edef68
2014-01-01 21:30:12 +00:00
Adrian Crum 2d81f9049e An improvement to the Mini-language <set-service-fields> element - now you can specify the service attributes mode: IN or OUT.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1553776 13f79535-47bb-0310-9956-ffa450edef68
2013-12-28 01:17:40 +00:00
Jacques Le Roux ff5f0a5096 A patch for "Deprecate doCacheClear in Delegator interface and class and related minilang classes" https://issues.apache.org/jira/browse/OFBIZ-5325
* Deprecates methods in Delegator interface and class
* Deprecates cache clear related variable and methods in EntitySaxReader class
* Deprecates cache clear related variables in minilang related delegator classes
* In simple-method schema annotations, marks do-cache-clear attribute as deprecated 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524704 13f79535-47bb-0310-9956-ffa450edef68
2013-09-19 12:03:47 +00:00
Jacques Le Roux b14d7c1ab9 Those are not needed and even counter productive now, see discussion on dev ML http://markmail.org/message/mqe6c6qm2rofa4gg
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1426605 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 18:32:23 +00:00
Adrian Crum b8b8a5fa49 Fixed booleanExpr type in Mini-language schema. Reported by Olivier on the dev mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1361073 13f79535-47bb-0310-9956-ffa450edef68
2012-07-13 07:56:04 +00:00
Adrian Crum f5c4810955 Documentation work on the Mini-language schema to make the schema documentation and the Mini-language Reference the same.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1359600 13f79535-47bb-0310-9956-ffa450edef68
2012-07-10 11:06:39 +00:00
Adrian Crum cc2d6989e5 Overhauled the Mini-language schema. The schema elements have been reorganized to match the order in the Mini-language Reference (https://cwiki.apache.org/OFBADMIN/mini-language-reference.html) - which makes it easier to keep the two documents in sync.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356263 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 14:36:12 +00:00
Adrian Crum b44c8ee752 Overhauled Mini-language <property-to-field> element.
The overhaul includes: removing unnecessary object creation, make the class thread-safe, add syntax validation, and misc code cleanups.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1350337 13f79535-47bb-0310-9956-ffa450edef68
2012-06-14 17:00:53 +00:00
Adrian Crum 9538d837db Overhauled Mini-language <calculate> element.
The overhaul includes: removing unnecessary object creation, make the class thread-safe, add syntax validation, and misc code cleanups.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1350214 13f79535-47bb-0310-9956-ffa450edef68
2012-06-14 12:36:25 +00:00
Adrian Crum cbf0c9bc0b Overhauled Mini-language <field-to-request>, <field-to-session>, <request-parameters-to-list>, <request-to-field>, <session-to-field>, <webapp-property-to-field> elements.
The overhaul includes: removing unnecessary object creation, make the class thread-safe, add syntax validation, and misc code cleanups.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1349819 13f79535-47bb-0310-9956-ffa450edef68
2012-06-13 13:01:18 +00:00
Adrian Crum 405f59615f Overhauled Mini-language <order-map-list>, <set-calendar>, <string-append>, <string-to-list>, <to-string> elements. Added a format attribute to the <set> element - to be used for type conversions. Also removed deprecated StringToField class.
The overhaul includes: removing unnecessary object creation, make the class thread-safe, add syntax validation, and misc code cleanups.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1349646 13f79535-47bb-0310-9956-ffa450edef68
2012-06-13 06:04:49 +00:00
Adrian Crum f299117fba Overhauled Mini-language <clear-field>, <create-object>, <field-to-list>, <first-from-list>, <list-to-list>, <map-to-map> elements.
The overhaul includes: removing unnecessary object creation, make the class thread-safe, add syntax validation, and misc code cleanups.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1349182 13f79535-47bb-0310-9956-ffa450edef68
2012-06-12 08:16:03 +00:00
Adrian Crum 03271eee55 Overhauled Mini-language <set-current-user-login>, <set-nonpk-fields>, <set-pk-fields>, <store-list>, <store-value>, <transaction-begin>, <transaction-commit>, <transaction-rollback> elements.
The overhaul includes: removing unnecessary object creation, make the class thread-safe, add syntax validation, and misc code cleanups.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1348620 13f79535-47bb-0310-9956-ffa450edef68
2012-06-10 16:21:41 +00:00
Adrian Crum 0d892adf1f Overhauled Mini-language <find-by-primary-key>, <get-related>, <get-related-one>, <make-next-seq-id>, <make-value>, <order-value-list>, <refresh-value>, <remove-by-and>, <remove-list>, <remove-related>, <remove-value>, <sequence-id> elements. Also, consolidated NowDateToEnv.java and NowTimestampToEnv.java into Now.java.
The overhaul includes: removing unnecessary object creation, make the class thread-safe, add syntax validation, and misc code cleanups.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345652 13f79535-47bb-0310-9956-ffa450edef68
2012-06-03 11:13:32 +00:00
Adrian Crum 28c894cd6f Overhauled Mini-language <find-by-and> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343035 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 12:06:41 +00:00
Adrian Crum 2bab33d7aa Overhauled Mini-language <filter-list-by-date> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1342854 13f79535-47bb-0310-9956-ffa450edef68
2012-05-26 05:01:00 +00:00
Adrian Crum 75fe3886a4 Overhauled Mini-language <filter-list-by-and> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1341397 13f79535-47bb-0310-9956-ffa450edef68
2012-05-22 10:44:31 +00:00
Adrian Crum 6a6ad86bc3 Overhauled Mini-language <entity-one> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1341348 13f79535-47bb-0310-9956-ffa450edef68
2012-05-22 08:28:02 +00:00
Adrian Crum c6dec75e60 Overhauled Mini-language <entity-count> and <entity-data> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340651 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 09:48:06 +00:00
Adrian Crum 03d7a2c2d4 Overhauled Mini-language <entity-and> and <entity-condition> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340465 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 13:08:17 +00:00
Adrian Crum 7ce76dd6a8 Overhauled Mini-language <clear-cache-line>, <clear-entity-caches>, <clone-value>, and <create-value> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340408 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 10:24:42 +00:00
Adrian Crum e1e93d0eb2 Overhauled Mini-language <if-instance-of> and <if-not-empty> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339771 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 18:23:20 +00:00
Adrian Crum 162b7a7651 Overhauled Mini-language <check-permission> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339291 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 18:05:20 +00:00
Adrian Crum 34bb920e3b Overhauled Mini-language <call-service-asynch> and <call-map-processor> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339149 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 13:09:30 +00:00
Adrian Crum a1f823136f Overhauled Mini-language <call-service> element, final pass.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339079 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 09:20:03 +00:00
Adrian Crum 079551365a Overhauled <call-service> element, first pass.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338697 13f79535-47bb-0310-9956-ffa450edef68
2012-05-15 13:29:03 +00:00
Adrian Crum e3d62b1f76 Updated Mini-language schema.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338345 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 19:04:01 +00:00
Adrian Crum 3c9838c534 Added new element - <trace> - to Mini-language. Also updated the <simple-method> element to output trace messages.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337137 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 13:02:35 +00:00
Adrian Crum 3aba61d402 Oops, forgot to include schema changes in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335025 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 13:53:50 +00:00
Adrian Crum 778871216f Moved some classes out of the org.ofbiz.minilang.method.conditional package that didn't belong there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334997 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 12:59:21 +00:00
Adrian Crum e288d47d0c More work on Mini-language: API fixes, overhauled <if-regexp>, <if-validate-method>, and <check-id> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334971 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 12:26:01 +00:00
Adrian Crum 643d47d4ac Overhauled a bunch of Mini-language conditional elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334915 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 08:28:47 +00:00
Adrian Crum 315b486c47 Overhauled Mini-language <assert> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334579 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 09:28:14 +00:00
Adrian Crum b968e62da5 Overhauled Mini-language <iterate-map>, <loop>, and <while> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334536 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 00:43:58 +00:00
Adrian Crum 40b48b9a34 Overhauled Mini-language <iterate> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334502 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 20:53:13 +00:00
Adrian Crum a3d9a9d004 Overhauled Mini-language <set-service-fields> element. This commit includes some minor behavior changes.
In the previous version, if the source Map was not found, the target Map was not created. Now the target Map is always created if it doesn't already exist.

In the previous version, any errors encountered during the copying process were added to the error message list and script execution continued. Now the error messages are added to the error message list and script execution is stopped.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334450 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 17:00:36 +00:00
Adrian Crum 24e8b0f3b1 Overhauled Mini-language <simple-method> element. Cleaned up the code, made the class thread-safe, removed unnecessary DCL synchronization.
This is a first pass - there are more things that need to be fixed, but I didn't want to rewrite the whole thing in one commit.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1333960 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 13:44:05 +00:00
Adrian Crum 055d164b4d Overhauled Mini-language <call-class-method> <call-object-method> <field> and <string> elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1333491 13f79535-47bb-0310-9956-ffa450edef68
2012-05-03 14:59:56 +00:00
Adrian Crum a9a16a1c0f Updated Mini-language schema.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1333042 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 13:38:31 +00:00
Adrian Crum 9b8b914657 Overhauled Mini-language <log> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331874 13f79535-47bb-0310-9956-ffa450edef68
2012-04-29 08:07:10 +00:00
Adrian Crum 1616a228d6 Overhauled Mini-language <add-error> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331827 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 20:35:48 +00:00
Adrian Crum ade0bf0ccc Overhauled Mini-language <check-errors> and <add-error> elements.
This commit fixes a bug in the <add-error> element. Some of the tests written in Mini-language fail now because errors were previously ignored, but now the error handling works properly.

To assist the developer community with fixing the tests, I added an INFO log message to track down the faulty test code. Run the tests, and then search the log file for "<add-error>".


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331802 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 18:48:42 +00:00
Adrian Crum 37bb36e08f Overhauled Mini-language <script> element. Added a "script" attribute so it can be used for small inline scripts (scriptlets).
Removed code that hid script engine exceptions in the error list. If a script engine throws an exception, it should be passed to the calling process, not hidden in an error message list (which might not get checked).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331355 13f79535-47bb-0310-9956-ffa450edef68
2012-04-27 11:18:52 +00:00