cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Workflow

kmliew
Champ in-the-making
Champ in-the-making
Hi there.. i'm new with Alfresco and i'm hoping that some gurus out there can help me out with this. i need to create a serial workflow with the following requirements:

1. must have 5 levels of review/approval tasks.
2. the initiator selects the approver for the first task, once the 1st approver approved the document, he selects the second approver, and so on.
3. if the second approver rejects, it'll goes back to the first approver. And third to second and so on.

i've been trying to customize this, but no luck so far. hopefully someone has done this before. THANKS!!
6 REPLIES 6

fbehfar
Champ on-the-rise
Champ on-the-rise
Hi,
you can do this with the help of the Eclipse and JBPM process!
check this link, it shows how to create such a workflow! you can handle it with the help of transitions!
http://wiki.alfresco.com/wiki/WorkflowAdministration

hope it helps,
FSB

kmliew
Champ in-the-making
Champ in-the-making
Hi,

Thanks for th reply. I've gone through the wiki, i can't seem to get the 1st approver to select the 2nd approver.

Is there another guide i can refer to?

Thanks again.

fbehfar
Champ on-the-rise
Champ on-the-rise
hi,
you want something like this:

   <task-node name="Notify Tester">
      <task name="crwf:DeveloperCompleted" swimlane="Tester"></task>
      <transition name="Accepted" to="NotifyCCM"></transition>
      <transition name="Rejected" to="Notify Developer"></transition>
   </task-node>

don't use any decision node (cause I used to) for one task node, create 2 transitions, for example the approved transition goes to the following node and the rejected transition goes bach to the previouse task node or any other task node, by doing that you will see 2 buttons (in UI) one is rejected and the other one is approved (the name of the transitions) and by clicking on them you it goes to the reffered task node!

hope I could explain it in a good way, that you can understand!

FSB

kmliew
Champ in-the-making
Champ in-the-making
thanks for the quick reply. i've tested your suggested solution, but i can't point the rejected task back to my previous task.



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

    <swimlane name="reviewer">
        <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
            <actor>#{bpm_assignee}</actor>
        </assignment>   
    </swimlane>

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


i can't deploy the process using eclipse. there's some errors. if i changed it back to the following, it deployed perfectly:



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

fbehfar
Champ on-the-rise
Champ on-the-rise
Hi again,
plz post your complete workflow! with a brief discription, that what you want to do!

for eclipse your should import some JAR files into eclipse:
in eclipse right click on the name of the project and select build path and then Configure Build Path….. in librarie tab click on Add external JARs and select 'Junit-4.0.jar' (if you don't have it download it from any site) and also all JAR files in jBPMProcessDesigner\jbpm-3.1.2\build. and finally click on OK.

start is not a task node that you can reffer to, it's the cause of the error!

FSB

poptarts
Champ in-the-making
Champ in-the-making
Hi,

Thanks for th reply. I've gone through the wiki, i can't seem to get the 1st approver to select the 2nd approver.

Is there another guide i can refer to?

Thanks again.

this one was really great for me:
http://ecmarchitect.com/archives/2007/11/19/785