AnsweredAssumed Answered

move a document into a certain folder

Question asked by roseta on Oct 19, 2010
Latest reply on Oct 25, 2010 by rwetherall
In my customized advanced workflow, I would like to move documents into different folders: to the folder called Approved for those documents which have been approved and to the folder called Rejected for those which have been rejected (in any step of my long customiced workflow). How could I do it? Has anyone information about it?

Let's guess my workflow is just one simple Review workflow like this one:

<process-definition xmlns="" name="wf:review">

    <swimlane name="initiator" />

    <start-state name="start">
        <task name="wf:submitReviewTask" swimlane="initiator" />
        <transition name="" to="review" />

    <swimlane name="reviewer">
        <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">

    <task-node name="review">
        <task name="wf:reviewTask" swimlane="reviewer">
            <event type="task-create">
        <transition name="approve" to="approved" />
        <transition name="reject" to="rejected" />

    <task-node name="rejected">
        <task name="wf:rejectedTask" swimlane="initiator" />
        <transition name="" to="end" />

    <task-node name="approved">
        <task name="wf:approvedTask" swimlane="initiator" />
        <transition name="" to="end" />

    <end-state name="end" />