Jacques Le Roux
9712ec2963
Improved: function parseBigDecimalForEntity is in wrong location
...
(OFBIZ-10689)
After I changed the method name from ObjectType::simpleTypeConvert to
ObjectType::simpleTypeOrObjectConvert, Shikha Jaiswal noticed that I missed
the groovy files.
Checking further I found that I also missed the simple-methods.xsd and
ObjectTypeTests.java (though this last one was no really a problem)
Thanks: Shikha Jaiswal
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1851156 13f79535-47bb-0310-9956-ffa450edef68
2019-01-12 09:29:29 +00:00
Jacques Le Roux
b0478d13f0
Improved: XML schemas should use predefined boolean type
...
(OFBIZ-10411)
To define boolean values, some ad-hoc enumeration of "true" and "false" are
repeatedly used. Since XML Schema defines a standard boolean datatype it's
better to use it.
Thanks: Mathieu Lirzin
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846727 13f79535-47bb-0310-9956-ffa450edef68
2018-11-16 16:38:24 +00:00
Deepak Dixit
834691742b
(OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Jacopo Cappellato
539084a511
OFBIZ-7763 Removed a series of artifacts dependent on the old Beanshell jar that is going to be removed from the project; specifically:
...
* removed the code that implemented the deprecated "call-bsh" operation in Minilang
* removed the BeanShellContainer (it has been disabled a long time ago)
* removed the BeanShell service engine, no more used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751947 13f79535-47bb-0310-9956-ffa450edef68
2016-07-08 17:53:59 +00:00
Jacques Le Roux
6e54fba04e
A last slightly modified patch from James Yong for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
...
I have uploaded a patch for the simple methods schema.
In general, the top level attributes are converted to simpleType, and attributeGroups to complexType.
Changed the following attribute name
1. ‘field’ to ‘fieldType’
2. ‘level’ to ‘levelType'
Denormalize the following attributeGroups
1. attlist.compare
2. attlist.compare-field
Left attributeGroup ‘typeDefaultString’ unchanged, cos it doesn’t matter. Not in use, it seem.
jleroux: we also fixed an issue with
<xs:element name="field" type="fieldType"/>
to
<xs:element ref="field"/>
In the patch
And I found a small issue (not minilang related) in ExampleCompoundWidgets.xml
- <sm:log message="CompoundWidgetsFunc runs" sm:level="info"/>
+ <sm:log message="CompoundWidgetsFunc runs" level="info"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750647 13f79535-47bb-0310-9956-ffa450edef68
2016-06-29 14:06:29 +00:00
Jacques Le Roux
642f42886e
A temporary workaround for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
...
Reverts the simple method to use the original schema without namespace. "Duplicates" simple-methods.xsd in simple-methods-ns.xsd as we did, to get the simple-method namespace for compound-widgets.
For myself: when we will do the 3rd more elegant option (no schema duplication), have been changed also:
minilang-catalog.xml
compound-widgets.xsd
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749938 13f79535-47bb-0310-9956-ffa450edef68
2016-06-23 16:40:22 +00:00
Jacques Le Roux
89212904bd
Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
...
This is the 2nd step: puts back the original names, so it will be transparent for remaining references in xml catalogs, Java code, etc.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749489 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:37:47 +00:00
Jacques Le Roux
4931db1ed9
Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061 by replacing xsd files references in xml files by -ns.xsd files and removing the concerned xsd files
...
This is a 1st step, in a 2nd I will put back the original names, so it will be transparent for remaining reference in xml catalogs, Java code, etc.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749488 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:14:16 +00:00
Jacques Le Roux
1e7d539a7a
Removes old simple-methods.xsd from the trunk as it's useless now (was replaced by simple-methods-v2.xsd)
...
Also renames simple-methods-v2.xsd in simple-methods.xsd and replaces simple-methods-v2.xsd references by simple-methods.xsd references everywhere it's needed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737087 13f79535-47bb-0310-9956-ffa450edef68
2016-03-30 09:13: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
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
Ashish Vijaywargiya
e7b7b6168e
Applied patch from jira issue - OFBIZ-4355. Update simple-methods.xsd (Missing "not-in" operator in condtion-expr tag).
...
Thanks Amit for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1154470 13f79535-47bb-0310-9956-ffa450edef68
2011-08-06 09:32:23 +00:00
Erwan de Ferrieres
6d59cc8f25
reverting 989475 as it is generating too much backward compatibility issues
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@989772 13f79535-47bb-0310-9956-ffa450edef68
2010-08-26 15:41:49 +00:00
Erwan de Ferrieres
d6564a8188
when using an entity-condition, the object's attribute name used in condition object parameter was not taken into account
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@989475 13f79535-47bb-0310-9956-ffa450edef68
2010-08-26 07:07:12 +00:00
Andrew Zeneski
d78152f6c8
implemented <script> tag in minilang that works exactly the same way as the screen widget version
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934510 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 18:32:35 +00:00
Scott Gray
8fb9b48c66
Added entity-count documentation regarding the java type of the value returned.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911517 13f79535-47bb-0310-9956-ffa450edef68
2010-02-18 18:40:47 +00:00
Jacques Le Roux
592440841b
No functional changes only in documentation : replace some value-name per value-field plus remove some wrong dashes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@822659 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 10:54:11 +00:00
Scott Gray
4acd7cc4f9
Corrected simple method documentation regarding the transaction timeout UOM, added the same to the services xsd and fixed a couple of service defs that appeared
...
to be specifying milliseconds rather than seconds.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769205 13f79535-47bb-0310-9956-ffa450edef68
2009-04-27 23:53:40 +00:00
Adrian Crum
6e85ea167b
Added "NewList" and "NewMap" options to the <set> element type attribute. Now screen widgets and mini-language support the creation of empty Lists and Maps.
...
Usage:
<set field="theList" type="NewList"/>
<set field="theMap" type="NewMap"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765284 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 17:44:47 +00:00
Jacques Le Roux
b9c3ddef08
2d part and end of an effort to remove trailing spaces
...
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg )
Of course this effort to remove trailing spaces has no functional implications.
Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {
So these changes are also in this commit, should not be a problem anyway.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
David E. Jones
ebc039406c
Chanded a few more attribute names for consistency, based on feedback from Marco
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737194 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 21:30:17 +00:00
David E. Jones
874f02e9da
Manual merge of typecheckcleanup200810 branch as of rev 731346 in that branch, resolved all conflicts; with this BigDecimal is not the native type for many entity fields and is used for many calculations; some work is still needed in certain areas of the project but this covers the most critical ones; thanks especially to Scott for his work on this
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731851 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 07:13:36 +00:00
Jacques Le Roux
6c10cc1a9c
Fix some typos
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730260 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 22:09:06 +00:00
David E. Jones
0d32641db0
Fixed issue where the attribute value was used for two things, so where it means an entity generic value it is now value-field and an actual String or other type of value is just plain value
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@729707 13f79535-47bb-0310-9956-ffa450edef68
2008-12-28 08:40:44 +00:00
David E. Jones
65b455ac9b
The last batch of the major changes to make naming in simple-method attributes more consistent and simplify due to simpler tools; again see the Simple Method Cleanup Effort docs page for details on changes; some additional cleanups may be done based on feedback but this should be most of it
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@729704 13f79535-47bb-0310-9956-ffa450edef68
2008-12-28 08:17:47 +00:00
David E. Jones
fe8ed88393
More simple-method cleanups
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@728620 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 06:26:35 +00:00
David E. Jones
71f1d26a4b
More cleanup of simple method attributes to make them more consistent, still quite a bit left to go, working through the file and down to order-map-list, more to come soon to get this finished up so we can move on, note that these changes are and will be documented in the Simple Method Cleanup Effort page in the OFBTECH space on docs.ofbiz.org
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@728520 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 21:51:23 +00:00
Jacques Le Roux
438aaaf492
A patch from Chris Howe "Add createOrStore option to create-value in minilang" ( https://issues.apache.org/jira/browse/OFBIZ-893 ) - OFBIZ-893
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@712480 13f79535-47bb-0310-9956-ffa450edef68
2008-11-09 10:49:03 +00:00
Jacques Le Roux
a66e19d3b4
Typo
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@708473 13f79535-47bb-0310-9956-ffa450edef68
2008-10-28 08:02:54 +00:00
Hans Bakker
a16c35484c
OFBIZ-1934: Ignore property for condition-expr tag, excellent contribution by Bruno Busco
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@689713 13f79535-47bb-0310-9956-ffa450edef68
2008-08-28 04:17:48 +00:00
Adrian Crum
fda2280d4f
Small change to the simple-methods.xsd file: changed the set-calendar adjuster attributes to string types. We commonly use expressions for things like this, so these string data types will help avoid XML parser errors.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681240 13f79535-47bb-0310-9956-ffa450edef68
2008-07-30 23:09:56 +00:00
David E. Jones
bd2d32eaba
Started effort of cleaning up element and attribute names in simple-methods, there is a lot of work to do here to make things consistent; for more info and a list of all changes see the docs.ofbiz.org Simple Method Cleanup Effort page
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@666069 13f79535-47bb-0310-9956-ffa450edef68
2008-06-10 11:31:17 +00:00
Scott Gray
658da5d59f
Minor documentation change
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@664671 13f79535-47bb-0310-9956-ffa450edef68
2008-06-09 10:23:54 +00:00
Scott Gray
f757fb7725
Corrected some simple-method documentation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@664331 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 12:29:36 +00:00
Jacques Le Roux
d403834733
Some small enhancements
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659966 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 11:40:18 +00:00
Jacques Le Roux
51697c2e62
Updated following revision 616634
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@616743 13f79535-47bb-0310-9956-ffa450edef68
2008-01-30 12:59:32 +00:00
Jacques Le Roux
32624967eb
Another bug fix, but set-calendar still not behave like set regarding auto-completion. Not sure why yet, will see later.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@616323 13f79535-47bb-0310-9956-ffa450edef68
2008-01-29 13:58:53 +00:00
Jacques Le Roux
72e894b2bf
Fix another error about duplicate type (should have been simple-type specific enumeration only)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@616310 13f79535-47bb-0310-9956-ffa450edef68
2008-01-29 13:42:17 +00:00
Jacques Le Roux
9e2dde9497
Ooops, set is not set-calendar
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@616304 13f79535-47bb-0310-9956-ffa450edef68
2008-01-29 13:35:11 +00:00
Jacques Le Roux
6afa3fa833
A patch from Adrian Crum from an issue initiated by Fabien Carrion "To permit to calculate on a DATE object in minilang" ( https://issues.apache.org/jira/browse/OFBIZ-1249 ) - OFBIZ-1249
...
I have added the XSD part please check it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@616292 13f79535-47bb-0310-9956-ffa450edef68
2008-01-29 12:55:45 +00:00
Jacopo Cappellato
88631750a8
Added missing 'List' type (taht is supported) to the 'set' operation definition to avoid validation errors.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@604173 13f79535-47bb-0310-9956-ffa450edef68
2007-12-14 11:43:19 +00:00
Jacques Le Roux
279c6b8313
A patch from Chris Howe <<Missing "not-like" condition in Simple Methods>> ( https://issues.apache.org/jira/browse/OFBIZ-1433 ) - OFBIZ-1433
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603152 13f79535-47bb-0310-9956-ffa450edef68
2007-12-11 06:14:23 +00:00
David E. Jones
427f56690c
Added enum value for a conventional variable name to use for this to avoid errors and still keep the enum auto-fill and checking
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571289 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 20:06:10 +00:00
David E. Jones
7e9e6f515f
Changed set-service-fields to add validation errors to a list instead of quiting, then calling method can control what to do with them
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@557102 13f79535-47bb-0310-9956-ffa450edef68
2007-07-18 00:46:17 +00:00
David E. Jones
3ea0e5bf98
Added documentation comment to clarfiy usage of the type attribute on the field element based on questions/comments from Chris Howe
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539811 13f79535-47bb-0310-9956-ffa450edef68
2007-05-20 01:11:23 +00:00
David E. Jones
47677e2c59
Applied patch from Jacques Le Roux with documentation additions, from Jira #OFBIZ-571
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@524533 13f79535-47bb-0310-9956-ffa450edef68
2007-04-01 05:06:36 +00:00
David E. Jones
a74b800f43
Made the calculate->field-name attribute required again, thanks to Jacques for pointing out this problem
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@524528 13f79535-47bb-0310-9956-ffa450edef68
2007-04-01 04:47:16 +00:00
David E. Jones
2746384557
Changed the calcop element's field-name attribute to NOT be required; this must be another casualty of recent cleanups or something
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@523001 13f79535-47bb-0310-9956-ffa450edef68
2007-03-27 17:13:56 +00:00
David E. Jones
62ac182829
Changed to represent the fact that calcop -> field-name is optional; reported by Chris Howe
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514617 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 09:17:55 +00:00
David E. Jones
1448999de0
Applied patch from Jacques, part of Jira #OFBIZ-571
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@501760 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 08:13:52 +00:00