Re: Dev - how to pass parameters between services in SECAs
Posted by
Alexandre Gomes-5 on
Mar 10, 2006; 10:58pm
URL: http://ofbiz.116.s1.nabble.com/Dev-how-to-pass-parameters-between-services-in-SECAs-tp167141p167143.html
Thanks David,
You mean all the output attributes must equal all the input or just the ones that I need?
Also, can I use the auto-attributes tag or do I have to explicitly declare the attribute with the attreibute tag?
You mean I can catch it on the parameters map on the next service?
I think this pattern of using SECA is very good for customizing code without touching the architecture. I find it an analog of the action/beanshell stuff for the model part of the view-model-controller pattern.
Also you can save your customized SECAs and code on the directory of the new application you're developing and not in the already existing services and directories.
Alex
On 3/10/06, David E. Jones <[hidden email]> wrote:
Right now the only way to do this is design your services such that
the names for the OUT attributes/parameters match the names for the
IN attributes in later services in the sequence. For these things the
Service Engine create a "per-call" context that contains all original
incoming attributes, and all OUT attributes from services already
run, and creates the context for each service call in the ECA actions
from this larger map using the definition of incoming attributes.
-David
On Mar 10, 2006, at 9:01 AM, Alexandre Gomes wrote:
> Hi all,
>
> I'm trying to couple some services in a chain of SECAs but I can't
> understand how to pass parameters between services.
> Can anyone help me on this problem?
>
> Thanks,
>
> Alexandre Gomes
>
> _______________________________________________
> Dev mailing list
>
[hidden email]>
http://lists.ofbiz.org/mailman/listinfo/dev
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev