Workflow: New ActivityInstance.Count macro usage

As of WorkflowGen version 5.5.5, it’s possible to use a new ActivityInstance.Count macro in transition and notification conditions.

This macro returns the number of instances of the completed activity. It’s useful if you need to escalate the workflow to another activity after a certain number of loops, for example.

You can also use it in a notification condition to alert someone if the activity has been completed a certain number of times.

Another usage is to create a specified number of action instances via a loop, and a condition to test the number of instances to create.