AnsweredAssumed Answered

Get action id for action evaluated in ActionEvaluator impl

Question asked by bpeters on Feb 24, 2011
Latest reply on Feb 24, 2011 by patil
Does any one know if it is possible to retrieve the action id for the action that is currently evaluated when an ActionEvaluator is executed?

I have for example the following action definition in my web-client-config:
<action id="test_id">
  <permissions>
    <permission allow="true">Write</permission>
  </permissions>
  <evaluator>nl.bua.alfresco.action.evaluator.ScriptableActionEvaluator</evaluator>
  <label>Test</label>
  <image>/images/icons/copy.gif</image>
  <action-listener>
    #{ActionHandlerBean.execute}
  </action-listener>
  <params>
    <param name="id">#{actionContext.id}</param>
  </params>
</action>
In my ScriptableActionEvaluator I'd like to retrieve the value 'test_id' when the evaluator evaluates this action.

Thanks in advance,

Bas

Outcomes