Hi I've successfully added secas many times before, but only on actions that run after the service, such as "return" or "commit" events. I now need an "invoke" seca, and it isn't working the way I expected. So I re-read the documentation, and all that did was confuse me. :-( Searching the mailing list showed me plenty of examples that did make sense, but only for "return" or "commit" events, so they didn't help me at all.
At http://ofbiz.apache.org/docs/services.html#ECAs it says for the eca tag "run-on-error Should this ECA run if there is an error in the service". I know the service it refers to is the one named in the eca tag. But if the event is set to invoke, the action service is run before the eca service is invoked. Does this mean the run-on-error attribute is irrelevant for an invoke event? Further down in the same page it says for the action tag "ignore-error Ignore any errors caused by the action service. If true the error will cause the original service to fail. Default true.". Does this mean, if ignore-error is true and the "invoke" action service returns an error, that: 1) the eca service will not be run, and an error will be returned ( I think not, as the attribute name would then be wrong)? OR 2) the eca service will not be run, but a failure will be returned? OR 3) the eca service will be run, but a failure (or error) will be returned no matter the result of the eca service? OR 4) the eca service will be run, and the return will be whatever the eca service returns What I'm trying to do is use a seca to check some things and not run the main service if the seca action service fails/errors. Perhaps I should be doing this on "auth" or "in-validate" events, but I'll still need a better understanding of "run-on-error" and "ignore-error". Anyone able to explain? Cheers, Anne. -- Coherent Software Australia Pty Ltd PO Box 2773 Cheltenham Vic 3192 Phone: (03) 9585 6788 Fax: (03) 9585 1086 Web: http://www.cohsoft.com.au/ Email: [email protected] Bonsai ERP, the all-inclusive ERP system http://www.bonsaierp.com.au/
