I have 2 records A and B with one to many relationships, both the records contains a column isActive(boolean). I have a process model that is triggered as related action of record A and this process model contains Start Process(node) with MNI, and a child process will be triggered for each child of record A, this child process is used to deactivate the corresponding child record by marking isActive as false. Here the requirement is, only when all the child process instances finsh by marking the corresponding child rows as deactivated, we need to deactivate the Parent row in the Parent process model,
How can we achieve this?
I tried using send mesaage and recieve message events and it's working but I am not sure this is a preferred way as we are sending message from each and every child instance, if we have 1000 child records 1000 messages will be sent, I don't know weather sending these many messages cause any issue. Is it fine to use the approach or do we have to do something other than this
Discussion posts and replies are publicly visible
One other option could be that every time child process completes, that process model checks if all the related child cases are completed. if answer is yes then mark the parent case as completed.
Kumar Agniwesh Could you please add few more points and explain how to implement this, like how to check related cases are completed or not every time child process completes
Any specifice nodes/smart services or functions that I should use
You can query status of related child cases of the parent case from the current child case. if the status of all child cases are completed you can mark parent case as completed.