Scenario is N:1 (IDOC to FlatFile) using BPM.
BPM receive step will receive IDOC. But it should terminate when the number of messages equals to 500.
In which step I have to define this count in BPM?