[
https://issues.apache.org/jira/browse/OFBIZ-5892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arun Patidar updated OFBIZ-5892:
--------------------------------
Attachment: OFBIZ-5892-Fix.patch
Attached is a patch with suggested changes by Jacopo on commit notification:
The new runService method can automatically populate the userLogin field so, if you want to simply call the service as the logged in user, you can simply write:
totalAmount = runService('getInvoiceRunningTotal', [invoiceIds: invoiceIds, organizationPartyId: organizationPartyId]);
> Replace all occurences of dispatcher.runSync in groovy files with runService() of DSL
> -------------------------------------------------------------------------------------
>
> Key: OFBIZ-5892
> URL:
https://issues.apache.org/jira/browse/OFBIZ-5892> Project: OFBiz
> Issue Type: Improvement
> Reporter: Arun Patidar
> Assignee: Ashish Vijaywargiya
> Priority: Minor
> Attachments: OFBIZ-5892-Fix.patch, OFBIZ-5892.patch
>
>
> [~jacopoc] has been added DSL support for groovy files at r1636346.
> Use runService() method to call service in groovy files by replacing dispatcher.runSync() method.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)