AnsweredAssumed Answered

Access workflow task from custom ui action

Question asked by solo8788 on Apr 14, 2010
I would like to add an custom ui action to the "document_browse" action group that would directly access the current workflow task node.  Something along these lines:

web-client-config-custom-actions.xml

<config>
    <actions>
        <action id="custom_manage_task">
            <label-id>manage_task</label-id>
            <image>/images/icons/manage_workflow_task.gif</image>
            <action>dialog:manageTask</action>
            <action-listener>#{WorkflowBean.setupTaskDialog}</action-listener>
            <params>
                <param name="id">#{actionContext.id}</param>
                <param name="type">#{actionContext.type}</param>
            </params>
       </action>
       <action-group id="document_browse">
       <show-link>false</show-link>
            <style-class>inlineAction</style-class>
           <action idref="manage_task" />
      </action-group>
    </actions>
</config>

Currently WorkflowBean.setupTaskDialog is expecting the taskId and workflow model definition of the current task.  I can hard code the respective values and it works, so my question is what is the best/recomended method to access the current workflow task the content belongs to?

Outcomes