Page 1 of 1

Limit of Gateway Conditions

Posted: Sat May 21, 2016 5:36 am
by JeniferLawrence
Hello there,
I put 8 conditions in an exclusive gateway. But the length of the variable is large. After saving the process(without closing the process), i am able to see the conditions what i have put in it.
After closing and reopen the process, last 2 conditions are missing.
Before closing:
Code: Select all
@@var_Request_Status == 'Creation' || @@var_Research_and_Development_Manager_Validation == 'mwrv' || @@var_Simulation_Manager_Validation == 'mwrv' || @@var_Simulation_Leader_Validation == 'mwrv'
|| (@@var_Simulation_Manager_Validation != 'mworv' || @@var_Condition_Status != 'SMV' ) || (@@var_Simulation_Leader_Validation != 'mworv' || @@var_Condition_Status != 'SLV' )
After closing and reopening the process:
Code: Select all
@@var_Request_Status == 'Creation' || @@var_Research_and_Development_Manager_Validation == 'mwrv' || @@var_Simulation_Manager_Validation == 'mwrv' || @@var_Simulation_Leader_Validation == 'mwrv'
|| (@@var_Simulation_Manager_Validation != 'mworv' || @@var_C
Missing Part:
Code: Select all
ondition_Status != 'SMV' ) || (@@var_Simulation_Leader_Validation != 'mworv' || @@var_Condition_Status != 'SLV' )

Re: Limit of Gateway Conditions

Posted: Mon May 23, 2016 9:59 pm
by amosbatto
I filed a bug report about this problem. See: http://bugs.processmaker.com/view.php?id=20556

As a workaround you can create a trigger with the following code:
Code: Select all
@=result = (@@var_Request_Status == 'Creation' || @@var_Research_and_Development_Manager_Validation == 'mwrv' || @@var_Simulation_Manager_Validation == 'mwrv' || @@var_Simulation_Leader_Validation == 'mwrv'
|| (@@var_Simulation_Manager_Validation != 'mworv' || @@var_Condition_Status != 'SMV' ) || (@@var_Simulation_Leader_Validation != 'mworv' || @@var_Condition_Status != 'SLV' ));
Set this trigger to execute before assignment in the previous task. Then set your condition to be:
Code: Select all
@=result

Re: Limit of Gateway Conditions

Posted: Wed May 25, 2016 12:16 am
by JeniferLawrence
Thank you Amosbatto, i understand the scenario.