The PRT is not currently designed to support receiving an unknown number of documents which are desired to be correlated to a single process instance.
One solution I have used in the past with success is to externalize the logic that waits for an arbitrary number of documents to arrive and then publishes a single document list to the process that contains all the individual instances of the documents needed by the process.
Given the example process flow posted here:
Transition from step A to step B would join on receiving the final document list.
Create a trigger on the Integration Server that subscribes to the document type(s) that will eventually join with the process. Register a service to the trigger that processes each document recieved and execute any decision logic needed to determine when the condition is met that all documents have arrived. When the condition is met read from the DB each document and composed a single document list and publish it to the process and then let the process flow continue.
-Rob
#webMethods#webMethods-BPMS#BPM