Hello Experts,
I am trying to Finish BPF based on some conditions onLoad of form as well as onChanges of certain fields using javascript function formContext.data.process.setStatus("finished") and it is not finishing the BPF.
Also, I encountered that it is setting BPF status to finished sometimes and sometimes not. While I change the status to aborted then then it is working always.
Note: I have two BPFs for same entity, based on conditions I am switching the BPFs. And want to finish the BPF which is currently present on form.







