Details
Description
When you call a groovy script from an event controler, some information are present note on the same place on the binding context.
Example if you call a groovy script as service you can found the userLogin with parameters.userLogin or when you call it as event, the userLogin is on the root.
The problem appear with the DSL method 'run service' who search the missing value need by a service (userLogin, locale and timzone) on the map parameters on the binding context, so failed to populate correctly the information for an event.
Call from event
Map serviceResult = run service: 'createInvoice', with: [partyId: partyId, invoiceDate: nowTimestamp]
Failed due to security issue : missing userLogin on the service context.