Proxy role for workflow script

I am using plone 4.

I want to assign proxy role Manager to a worklow script(
Created with the following


It was not working.

Is there any way to make it working?
Or whether I should use event handler or external method as in

Please, explain in details what you mean (Unauthorized error?)

Still, I fear that proxy roles in workflow scripts stopped working properly ages ago (at the time of Plone 2.5): you probably must switch to a simple scripts that call a custom view.
Stay away from external methods: they still works perfectly but are largely deprecated.

@erasmu maybe also check that when you assign Manager proxy role to the script in the ZMI that it works as you expect. Setting the role via the .metadata file is a separate issue maybe.

I works fine when i assign manager proxy role to the script in the ZMI.