Adrian Crum
e7304502b6
Fixed validation in Mini-language <call-service> element.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339147 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 13:08:13 +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
bf4b22a85d
Overhauled Mini-language <call-service> element, second pass.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338792 13f79535-47bb-0310-9956-ffa450edef68
2012-05-15 16:56:17 +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
Adam Heath
9e5f405a4d
DEPRECATION: framework: findByAnd variants replaced with findByAnd that takes a boolean useCache parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338403 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 20:59:54 +00:00
Adrian Crum
bac00c1ea3
Fixed a bug in Mini-language <field-to-result> element where nested expressions were not evaluated correctly.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338394 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 20:49:01 +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
Jacopo Cappellato
4fe09a970a
Fix for wrong operation name returned by the FieldToResult.toString(...) method.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338224 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 14:36:54 +00:00
Adrian Crum
19fea3bcfc
Modified the Mini-language comparison elements:
...
1. Moved comparison logic from ObjectType.java to the minilanguage component and improved it to be more modular.
2. Moved object type conversion from ObjectType.java to the minilanguage component and simplified it.
3. Modified comparison elements to use new comparison logic and object type conversion.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338212 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 14:11:33 +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
7ca86c0501
Fixed Mini-language validation for the <check-id> element.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337135 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 12:55:55 +00:00
Adrian Crum
7a8a64a27e
Minor Mini-language <log> element changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337117 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 11:47:23 +00:00
Adrian Crum
beda6b3d14
Fixed broken Mini-language <check-errors> element (second try).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337103 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 10:25:33 +00:00
Adrian Crum
f60d3ca6c8
Fixed broken Mini-language <check-errors> element.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337092 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 09:50:45 +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
832eb766ea
Overhauled Mini-language <return> element.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335020 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 13:50:41 +00:00
Adrian Crum
615c04ec63
Moved some classes out of the org.ofbiz.minilang.method.callops package. The classes might have been intended for call/return operations originally, but now they are used in a generic way - so I moved them to the org.ofbiz.minilang.method.envops package.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335018 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 13:48:41 +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
782b312b1a
Small fix for the Mini-language <set> element validation - allow scripts in the "from" attribute.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334996 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 12:56:36 +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
11ccf4ebcb
Some code cleanups/fixes for the Mini-language <add-error> element.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334578 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 09:27:20 +00:00
Adrian Crum
a854aa7d55
Added a convenience method to MiniLangValidate.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334577 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 09:25:49 +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
96145d0819
Mini-language validation bug fix - allow nested expressions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334501 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 20:52:35 +00:00
Adrian Crum
e0313918de
Reverting my previous commit because it breaks nested expressions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334473 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 19:45:19 +00:00
Adrian Crum
272d627686
Improved Mini-language <set-service-fields> auto-correction.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334469 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 19:09:26 +00:00
Adrian Crum
d1cd637f11
Bug fix in Mini-language <iterate> element - the <break> and <continue> elements were ignored for collections and iterators.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334459 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 17:36:13 +00:00
Adrian Crum
7ea995a955
Small fixup for my previous commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334452 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 17:06:36 +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
8c35d76140
More work on the Mini-language <simple-method> element: Simplified script caching. This prepares the way to have simple methods cached individually, instead of caching the entire file.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334427 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 15:05:40 +00:00
Adrian Crum
02e87f4e51
More work on the Mini-language <simple-method> element: I added the SimpleMethod object to the environment (bindings) to permit introspection.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334404 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 11:39:55 +00:00
Adrian Crum
ea8ef272d5
More work on the Mini-language <simple-method> element: I removed the attributes that specify some of the environment map (bindings) keys. Those keys should be under the control of the framework so they are consistent across scripting languages.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334402 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 11:34:12 +00:00
Adrian Crum
91d1f4f982
More work on the Mini-language <simple-method> element: moved convenience methods from MethodOperation.java to SimpleMethod.java - so all sub-elements can use them (not just operations elements), simplified some code.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334358 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 09:25:03 +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
644502daca
Minor code change in Mini-language <set> element. No Functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1333492 13f79535-47bb-0310-9956-ffa450edef68
2012-05-03 15:01:01 +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
ed29e24544
Created a base class - MiniLangElement - for all Mini-language elements, modified exception handling to accommodate the new base class. This change will provide a means for non-operation elements to throw exceptions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1333489 13f79535-47bb-0310-9956-ffa450edef68
2012-05-03 14:57:40 +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
f4c6457daa
Oops, forgot to include null check in previous commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1333034 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 13:22:50 +00:00
Adrian Crum
e41512f7cd
Overhauled Mini-language <call-bsh> element.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1333031 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 13:17:54 +00:00
Adrian Crum
a636524386
Improved Mini-language <script> element - now supports inline scripts in the element body.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1333030 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 13:13:10 +00:00
Adrian Crum
5c4009e4c8
Added some convenience methods to MethodOperation.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1333028 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 13:11:00 +00:00
Adrian Crum
6ed484ff82
Removed some unused Mini-language classes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331897 13f79535-47bb-0310-9956-ffa450edef68
2012-04-29 11:23:55 +00:00
Adrian Crum
66269e1396
Small fixup for my previous commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331876 13f79535-47bb-0310-9956-ffa450edef68
2012-04-29 08:18:55 +00:00
Adrian Crum
4452b80aa0
Refactored how Mini-language element model lists are constructed and stored - to improve thread-safety and memory use.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331875 13f79535-47bb-0310-9956-ffa450edef68
2012-04-29 08:11:53 +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