Hi Chris

Thanks for your reply. I'm currently working this out with Magnolia. As you 
mentioned I wrote a new Command which I want to call out of the workflow when 
it is needed.

In the workflow the parameter category will be set, because I'll read it in the 
Java code to compare the category to the workitems category. The result of the 
comparison will be injected back to the workflow, where I can act accordingly.

I'm currently trying to figure out which id I need to pass this method 
[code]InFlowWorkItem workItem = 
WorkflowUtil.getWorkItem("whereToGetThisId");[/code] and how I can get the page 
or document behind the workitem, so that I'm able to retrieve it's categories.

My code will then look something like this:
[code]
<set field="category" value="/does/this/item/have/this/category"/>
<participant ref="command-categoryMatcherCommand"/>
<if test="${field:categoryMatches} == true">
    <to-myGroup/>
</if>
[/code]

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=d60747a7-0a77-4f57-99ce-09ec77d7d6e6


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to