Hi Jan,
Thanks a ton for the reply!!!
I have gone trough the link you have provided but still need some help.
I have 3 users associated with corresponding user groups as mentioned below,
editor -> editors(group)
sreditor -> senioreditors(group)
publisher -> publishers(group)
Activation flow works fine for user flow
editor->sreditor->publisher.
But the problem is who ever activates the work item moves to sreditor inbox.
For this I have to check the usergroup who have triggered the activation flow
before moving the work item.
But, I am not sure of validating the usergroup.
Please help me in validating the usergroup.
Please find below the modified activation workflow,
<process-definition name="activation" revision="j0.0.2">
<sequence>
<set field="activator" field-value="userName"/>
[b]<!-- go to senioreditors first -->
<to-senioreditors/>[/b]
<!-- will loop if rejected -->
<if test="${field:action} == reject">
<revision-round/>
</if>
<log message="activate: ${field:action}"/>
<!-- if the last action was proceed: activate-->
<if test="${field:action} == proceed">
<activate/>
</if>
</sequence>
<process-definition name="revision-round">
<loop>
<while>
<equals field-value="action" other-value="reject" />
</while>
<to-editor/>
<if test="${field:action} != proceed">
<break/>
</if>
<to-senioreditors/>
</loop>
</process-definition>
<process-definition name="to-senioreditors">
<sequence>
<unset field="assignTo"/>
<participant ref="group-senioreditors"/>
<if test="${field:action} == proceed">
<to-publishers/>
</if>
</sequence>
</process-definition>
<process-definition name="to-editor">
<sequence>
<!-- assign back to the user who launched the activation -->
<set field="assignTo" field-value="activator"/>
<participant ref="group-editors"/>
</sequence>
</process-definition>
<process-definition name="to-publishers">
<sequence>
<unset field="assignTo"/>
<participant ref="group-publishers"/>
</sequence>
</process-definition>
<process-definition name="activate">
<sequence>
<!-- wait if scheduled -->
<if>
<defined field-value="startDate"/>
<sleep until="${f:startDate}"/>
</if>
<!-- activate -->
<participant ref="command-activate"/>
<if>
<defined field-value="exception"/>
<!-- restart again -->
<to-publishers/>
<break/>
</if>
<!-- deactivate (if scheduled)-->
<if>
<defined field-value="endDate"/>
<sequence>
<sleep until="${f:endDate}"/>
<participant ref="command-deactivate"/>
</sequence>
</if>
</sequence>
</process-definition>
</process-definition>
NOTE: You have mentioned to modify the ID of the workflow upon every change.
Can you please tell me where this ID field available???
Thanks,
Sushama
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=359781df-a753-452d-916c-2435ce806177
----------------------------------------------------------------
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]>
----------------------------------------------------------------