Display state in process flow formatter dynamically

Prabhh
Kilo Guru

Hello,

We need to add new state "Rejected" for Demand workflow and should be visible in process flow formatter only when state is set to "Rejected" similar to "Deferred". Can anyone please suggest what needs to be done for this?

 

- Prabhh

10 REPLIES 10

Sreeraj
Tera Contributor

Activate reject UI action first

Activate flow formatter for reject

Remove reject condition from deferred flow formatter

Open BR : dmn_demand_ProcessFlowList and add below code after line 48 :

 

if (gr.sys_id == 'd72f6f218f51110040f82ab2f0f92335') {
if (match) {
choices.removeChoice("9"); //remove 'Complete'
choice.setParameter('state', 'current');
} else
continue; //if rejected NOT match don't add to the choice list
}

 

this will hide rejected state in flow formatter just like deferred. 

 

Mark answer as helpful if it works! It worked for me. 🙂