Posted by
Andrew Zeneski on
URL: http://ofbiz.116.s1.nabble.com/run-a-service-with-the-system-userID-tp168847p168848.html
I usually do this when they are scheduled services and loaded w/ seed
data. You can also set the user ID to run ECAs. However, when running
a service called through a web event it will always use the logged in
user.
Andy
On Jun 26, 2006, at 11:00 PM, Hans Bakker wrote:
> Hi ofbiz enthousiasts.
>
> I checked the whole OFBiz system but could not find an example.
>
> Did somebody succeed to run, within a minilanguage script, a
> service using the
> 'system' userid? (this loginid is in the sysadmin group) So not the
> logged on
> user id?
>
> In the checkout process where somebody just registered i need to
> sometimes run
> a service which can only be run with a proper sysadmin userid.
>
> I tried everything, replacing the userLogin GenericValue in the
> context,
> environment, passing it to the service but the system always took
> the logged
> on user.
>
> anybody done that? David?
>
> --
> Regards,
> Hans Bakker
> ANT Websystems Co.,Ltd (
http://www.antwebsystems.com)
>
> If you want to verify that this message really originates from
> from the above person, download the public key from:
>
http://www.antwebsystems.com/hbakkerAntwebsystems.asc