http://ofbiz.116.s1.nabble.com/OFBiz-Dev-returning-errors-from-service-tp165851p165853.html
better results back than that...
> i have a minilang service (changeParkedInvoices) called as an event:
>
> <request-map uri="changeParkedInvoices">
> <security https="true" auth="true"/>
> <event type="service" invoke="changeParkedInvoices"/>
> <response name="success" type="view"
> value="findParkedInvoices"/>
> <response name="error" type="view"
> value="findParkedInvoices"/>
> </request-map>
>
> service definition:
>
> <service name="changeParkedInvoices" engine="simple"
> location="au/com/arl/account/AccountServices.xml"
> invoke="changeParkedInvoices" auth="true" use-
> transaction="true">
> <description>Accept or Reject Invoices</description>
> <attribute type="String" mode="IN" name="operation"
> optional="false"/>
> <attribute type="String" mode="IN" name="requestMessage"
> optional="true"/>
> <attribute type="List" mode="IN" name="invoiceId"
> optional="false"/>
> </service>
>
> if i do <add-error> and <check-errors> in the service i don't see
> this meaningful error on the return ftl. instead i get this:
>
> The Following Errors Occurred:
> layoutEvents.error_call_eventorg.ofbiz.webapp.event.EventHandlerExcept
> ion: Service invocation error (Commit transaction failed)
> qns:
>
> 1) how can i return an error properly from a minilang service
> called as an event?
> 2) how can i return an error properly from a bsh service called as
> an event?
>
> thanks, luke.
>
>
> _______________________________________________
> Dev mailing list
>
[hidden email]
>
http://lists.ofbiz.org/mailman/listinfo/dev