I would like to know the difference between calling a service in a transition directly like
<transition name="createExample">
<service-call name="org.moqui.example.ExampleServices.createExample" in-map="ec.web.parameters"
web-send-json-response="true"/>
<default-response type="none"/>
</transition>
and calling a service inside actions tag like
<transition name="createExample">
<actions>
<service-call name="org.moqui.example.ExampleServices.createExample" in-map="ec.web.parameters"
web-send-json-response="true"/>
<actions>
<default-response type="none"/>
</transition>
How the web parameters are handled in both the cases?
When I am sending a map of arrays in JSON, using AngularJS as input parameters they were getting parsed differently for both the cases.
When the service-call was inside or outside the actions tag the paremeters were being parsed differently for both the cases.
Parameters in JSON
var parameters = { exampleId : ["example1","example2","example3"]};
ec.web.parameters for service-call in actions tag
exampleId : [example1, example2, example3]
ec.web.parameters for service-call outside actions tag
exampleId : [example1, example2, example3]
The elements in the list would contain an extra space for the service outside the action tags.
So is it supposed to work this way?