cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding creating rule in workflow

rajanigupta
Champ in-the-making
Champ in-the-making
hii,

I have a workflow having three groups of users i.e CREATOR,APPROVERS,PUBLISHER . The following steps are to be followed

1-CREATOR  creates a document and submitt for approval

2-APPROVERS  i.e a1,a2,a3  approves the document and pass it for publish (there are three approvers )

3- PUBLISHER publishes it

I have created the workflow and its working.   The issue is that I am unable to make a rule that if the document is approved by all
the three approvers only then it has to be published
.    I am new to Alfresco.If I have to create java script code or what?
How can I make rule regarding this situation.Please help me :?:  :?:
4 REPLIES 4

sebp
Champ in-the-making
Champ in-the-making
Have a look at alfresco\WEB-INF\classes\alfresco\workflow\parallelreview_processdefinition.xml

If you set the requiredApprovePercent to 100% and assign the approvedParallelTask Task to the publisher then the parallelreview_processdefinition.xml is the workflow you described.

rajanigupta
Champ in-the-making
Champ in-the-making
hiii,
Thanks for ur reply.It is really helpful but please tell me where I have to write this code :!:  :!:
And in parellelview_processdefinition.xml what is the significance of "bpm_assignees" .As I have created a group of approvers …So how will I use
my group  in place of "bpm_assignees" :?:  :?:
for reference the somecodelines are as follows:

<node name="startreview">
        <action class="org.alfresco.repo.workflow.jbpm.ForEachFork">
           <foreach>#{bpm_assignees}</foreach>         
  <var>reviewer</var>
        </action>

And one more thing…till now I have created simple workflow for my scenario and its working ,only my condition of approval by three can not be applied.
So now If I have to create advance workflow or parellelview_processdefinition.xml  can be used in my simple workflow :?:  :?:
Waiting 4 reply

sebp
Champ in-the-making
Champ in-the-making
Ah ok, I did not realize that you want to use a simple workflow. In this I don't know a solution your problem "…to make a rule that if the document is approved by all the three approvers only then it has to be published".

If you are going to use advanced workflows have a look at http://wiki.alfresco.com/wiki/WorkflowAdministration first. The significance of  "bpm_assignees" is explained there.
Besides the parellelview_processdefinition.xml there is also a parallelreview_group_processdefinition.xml that shows how to assign a review task to each person in a group of reviewers.

rajanigupta
Champ in-the-making
Champ in-the-making
good  evening,
I am now using advanced   workflow.I have tried all things but facing the same problem
In my scenario all the document should be in "draft" folder  initially;then they should move to "pending 4 approval" folder and then they should move to "publish"
folder after approval

when I created advanced workflow  ;all the three approvers got a document to approve in TO DO TASK list and after clicking on "approve" button
the documents got transferred to COMPLETED TASK list.

1-I want to know where should I specify the condition to move the document in a specific folder after "approval" or "rejection" :?:  :?:  in "parellelgroupreview_process.xml " file  or in which file:?:  :?:

2-
     Can I use  files   "workflow-messages.properties " and "workflowModel.xml " in my scene?
I have created  custom workflow in datadictionary…in which I wrote the code given in parellelgroupreview_process.xml file.I wanted to know If I have to create some other file with it  or not :?:  :?:
means if I have to create web-client-custom.xml :?:  :?:
Please help me out with this :idea:
Waiting 4 reply