How to handle multiple events correctly if number of event producers is undetermined in common case?
Suppose we have 2 process definitions: Service1 activation and Service2 activation.
Service1 activation should be done after all Service2 are activated. Number of ordered Service2 can vary from 0 to N.
Tried to receive event, check condition on counter and exit to empty task if counter doesn’t match necessary value, but such approach leads to multiple excess ugly elements in process and requires to adjust counter value for each of N possible configurations.
Is there stylish solution?