Rene,
You may also have a look at this thread
http://markmail.org/message/dklkv6xxq67sle2n
I have still no found the time to put it cleanly in the FAQ, could you help
when you will have used it?
Jacques
From: "BJ Freeman" <[email protected]>
There is series of video that clear this up
https://cwiki.apache.org/confluence/display/OFBTECH/Home
The Events are through the Controller from Post from pages.
They can contain Services
Services can be Simple a lot are Java.
Simple is just that, the simplest way to deal with ofbiz data model.
https://cwiki.apache.org/confluence/display/OFBIZ/Mini-Language+Guide
There is another Event that is through the service engine.
these describe in
http://ofbiz.apache.org/docs/serviceconfig.html
Rene Scheibe sent the following on 7/29/2010 4:40 AM:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
What we understand so far:
Event (<event type="java" .../>):
- - close to the http request/response
- - input validations
- - parameter conversions
- - put results into request as attributes
Service (<event type="service" .../>):
- - well-defined IN and OUT parameters via service definition
- - business logic
- - DB operations
Usage statistics within OFBiz:
<event type="service"' /> 1542
<event type="java"' /> 283
<event type="groovy"' /> 16
<event type="simple"' /> 95
runSync 1056
runAsync 171
<call-service /> 1375
Questions (best practices):
1. When shall an event and when service be used?
2. How and where to call services?
- - from controller as an event with type service
- - from within an event
Regards,
Rene
- --
René Scheibe * [email protected]
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
Sitz: Unterföhring * Amtsgericht München * HRB 135082
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxRaLoACgkQUXs9EHvIuCqSAgCfau9FRmedaREbvbLOZLyta28i
/XgAniNxWw8exGwVWkrSdm2EE5MmpdnE
=2cdf
-----END PGP SIGNATURE-----