David E. Jones
d4aa04aee8
Added some documentation about the service definition transaction related attributes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@797962 13f79535-47bb-0310-9956-ffa450edef68
2009-07-26 17:45:24 +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
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
09825430f1
Added new allow-html tag on the attribute, auto-attribute, and override elements; has 3 options: none, safe, and any; the comments in the XSD file describe what each of these do; the important thing to know is that none is the default meaning no html is allowed; if html is needed use safe and look at the antisamy-esapi.xml file to see policy details; in extreme trust cases use any where any html is allowed; note that many services need updating which should allow at least safe html, and it may take some time to discover all of those and get them handled; please send in issues and requests for service attributes that should allow safe html
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742352 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 09:34:34 +00:00
David E. Jones
9075027988
Some cleanups, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742238 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 03:16:02 +00:00
Adam Heath
2617681b51
Remove svn:executable on a bunch of stuff.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684389 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 00:53:43 +00:00
Scott Gray
1eaf3ccd19
Moved a couple of misplaced semaphore attributes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@649478 13f79535-47bb-0310-9956-ffa450edef68
2008-04-18 12:09:09 +00:00
David E. Jones
17d28a89cf
Applied patch from Adrian Crum in Jira #OFBIZ-1245, fixes some inconsistencies in previous handling of failure and error messages, a handling of failure and error messages and cleanes up some things related to the recent result-to-result changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@591241 13f79535-47bb-0310-9956-ffa450edef68
2007-11-02 06:42:53 +00:00
Jacques Le Roux
ae76370a04
Replace all www.ofbiz.org by ofbiz.apache.org (mostly links to dtds). Note that there are 2 void links :
...
http://ofbiz.apache.org/service/
http://ofbiz.apache.org/cgi-bin/http_test.pl
Those links were useless before also
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586802 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 21:17:45 +00:00
David E. Jones
c5ff0fc828
Added result-to-result feature for seca rules, based on patch from Adrian Crum but changed to be more consistent with context-to-result, AND to only copy over values that are valid for the service that triggered the eca; Jira #OFBIZ-1237
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579424 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 01:32:37 +00:00
Andrew Zeneski
1ef6a9f731
changed where semaphores are released (in finally block to make sure it is run even in the case of an exception) implemented per-service configurable settings for wait/sleep (sleep in milliseconds; wait in seconds) semaphore-wait-seconds="300" (default) is 5 minutes. The max time a service will wait before failing to run.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577141 13f79535-47bb-0310-9956-ffa450edef68
2007-09-19 04:04:08 +00:00
David E. Jones
4c02885546
Added global-commit-post-run event that gets a context after the service and eca rules run
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576815 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 10:04:50 +00:00
Andrew Zeneski
d4c785dad4
implemented ServiceSemaphore; built in locking to prevent services (when defined) from running at the same time; uses database record to work with a cluser of application servers. Three modes are available:
...
None - Does no locking
Wait - Waits for the previous service to complete (currently up to 5 minutes)
Fail - Fails when the same service is already running
use the semaphore="none|wait|fail" in the service definition (none is the default when the attribute is not defined)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575074 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 20:58:44 +00:00
David E. Jones
1d6d5edea5
Refactor of service def attribute default-value stuff, fixes the corner case found in OFBIZ-1226; was able to get through test case that previously erred out
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573140 13f79535-47bb-0310-9956-ffa450edef68
2007-09-06 03:25:29 +00:00
David E. Jones
e3feec113a
Fixed issue reported by Si in #OFBIZ-1226, and added comment to services.xsd to explain how this is used; BTW, the commit that caused this problem broke rule #1 of first do no harm, that broke existing functionality to add something new that didn't work either
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573126 13f79535-47bb-0310-9956-ffa450edef68
2007-09-06 00:47:47 +00:00
Andrew Zeneski
e63fc39ea4
implemented internal email notifications for service invocations; configure groups for notifications, setup templates, email addresses and assign services to groups (serviceengine.xml) all services belong to the default group, in case you want to monitor all errors, failures and/or success
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@523801 13f79535-47bb-0310-9956-ffa450edef68
2007-03-29 19:12:10 +00:00
David E. Jones
79e2463756
Changed the runAsUser here to also be run-as-user for consistency; still supports old runAsUser in Java parsing code, though there will be a parse error
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514602 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 08:41:37 +00:00
David E. Jones
45ebdaec6d
Changed runAsUser to run-as-user to be consistent with everything else in the entire framework; still supports the old attribute in parsing code
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514251 13f79535-47bb-0310-9956-ffa450edef68
2007-03-03 21:51:13 +00:00
David E. Jones
8bc8a3f460
Changed default for the optional attribute on the implements element from false to true, because as is ALL attributes are being set to optional, which I think is not normally what is wanted and I bet there have been a few surprises and frustrations from this
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514243 13f79535-47bb-0310-9956-ffa450edef68
2007-03-03 21:13:17 +00:00
Andrew Zeneski
f0cbbac2ea
ECA actions can now specify to run in a new transaction
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@508207 13f79535-47bb-0310-9956-ffa450edef68
2007-02-15 22:29:03 +00:00
Jacques Le Roux
dad67935f7
A (large) patch from Scott Gray "Update ASL header" ( https://issues.apache.org/jira/browse/OFBIZ-637 ).
...
I put also some svn:ignore for shark build and lib diretories and assetmaint/build
I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.
I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
David E. Jones
c8ffca7540
Added resource-description attribute to permission-service element, which if not specified will default to the service-name for the main service; this is then passed to the permission service for use in error messages, etc; added example to this in the example component; also updated the header on the ExamplePermissionServices.xml file to make it more consistent
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@494762 13f79535-47bb-0310-9956-ffa450edef68
2007-01-10 08:18:50 +00:00
Andrew Zeneski
45cf1f4ea1
implemented new service based permission; removed the ServiceSecurity interface which this now replacess
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@494718 13f79535-47bb-0310-9956-ffa450edef68
2007-01-10 05:29:30 +00:00
Andrew Zeneski
a8968a03cf
implemeted:
...
1) default values for service parameters; when default-value is set, it becomes optional, if no value is passed, the defined default value is used.
2) implemented new interface for custom service security
Changed JobManager finalize() method to shutdown() since calling finalize() is not recommended in java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@493185 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 20:42:51 +00:00
Andrew Zeneski
ff901cfd8c
refactor of service groups; implemented in-line group definition in standard service defs, this removes the need to create two definitions for a service group. Old group definition files are still supported, but need to be updated to change 'service' to 'invoke'. Update to existing group files will follow in next commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@493117 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 18:26:51 +00:00
Andrew Zeneski
d9fceae1b8
fixed XSD error
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@492871 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 02:35:40 +00:00
Andrew Zeneski
3dcd312c08
changed which implement other services to specifiy if the parameters should be optional or default to the inherited service; rather than always being optional.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@492815 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 23:45:08 +00:00
Andrew Zeneski
47346f6abf
implement field override for eca services; you can now use :
...
<set field-name="[name of context field]" value="RAW_VALUE"/>
or
<set field-name="[name of context field]" env-name="[another field name]"/>
There are also format options, see the updated XSD for options.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@492770 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 21:56:22 +00:00
David E. Jones
86634c3cbe
Small change to allow seca files without any rules in them
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@469030 13f79535-47bb-0310-9956-ffa450edef68
2006-10-30 00:18:50 +00:00
Jacopo Cappellato
de1b33bba9
License change from MIT to ASL2.0 for the files of the service component.
...
Thanks to Scott Gray for the patch (Apache OFBIZ-87).
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@423866 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 10:19:51 +00:00
David E. Jones
94fe6d1cda
Initial OFBiz import from revision 7923 of the old svn.ofbiz.org SVN repository.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418498 13f79535-47bb-0310-9956-ffa450edef68
2006-07-01 19:05:20 +00:00