cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] Parallel workflow: 'required percentage' parameter

rookie
Champ in-the-making
Champ in-the-making
Hi everyone!

I successfully implemented the parallel review workflow in Alfresco via the file parallelreview_processdefinition.xml.
My request is about the required approval percentage. Each time I assign a new task to multiple users, it asks me for this percentage. I would like to get rid of the parameter on the web client UI. I understand that in the file parallelreview_processdefinition.xml, I am supposed to put this
wf_requiredPercent = 100;
instead of this
wf_requiredPercent = wf_requiredApprovePercent;
, but it still asks me for this in the UI.

Does anyone know how to delete this parameterwithin the UI?

Many thanks in advance! Hope you'll be able to answer that, it will help me a lot! :mrgreen:
3 REPLIES 3

rookie
Champ in-the-making
Champ in-the-making
This could simply be achieved by editing the file web-client-config-properties.xml.

hammerguy
Champ in-the-making
Champ in-the-making
Hi

I'm trying to do the same thing (I want to hide requiredApprovePercent and set its value to 100)
I have done the same and succeeded in the hiding
yet it still takes the default value of the field, namely 50 and not 100

I did change the code in parallelreview_processdefinition.xml,
Is there something I'm missing?

crono40
Champ on-the-rise
Champ on-the-rise
I found it. For my part, i would like to modifiy the defaut value to 100 in the share UI. The workflow form creation call a file named percentage-approve.js.

In this one (in percentage-approve-min.js in fact) you have to modify this line to custom the value.


  onReady: function PercentageApprove_onReady()
      {
         Dom.get(this.id).value = 100; //Custom line !
         this._updateCurrentValue();

         // Add listener for input field to keep the generated value up-to-date
         Event.addListener(this.id, "keyup", this._handleFieldChange, this, true);
      },


Hope it will help.