Hello Holger,
For all my flow:
I have a flow in which select n records
In this flow, for each record, we put in in document called PIVOT, put this PIVOT in jms and put it in Topic.
I have a flow out with trigger on the topic, I put the document from the jms message and I deal with message.
So each time, a flow is launched, the flow in is called one time and the flow out is called n times (each time for the n records selected).
Problem : I don’t know when it is finished.
So I created some database when I specified flow in, flow out, number messages In (the count of the select), number of message out (the number of calling flow out and when it is finished).
Thanks to that, I know where a flow is finished.
But each time I made a flow in this way, I need to create my flow in, read database, knowing the that the flow is available (it means that a instance of flow (flow in and out) is not running, write in database). It is every time the same code.
My idea is to write in my database the servicecalled for each flow in and called the pub.flow:invokeService with the name of the flow (read in database).
It means for all flow I want to create I called systematically the same service but the name of the flow change each time. The invokeService do the job like a delegate in object code.
But I want to know it is a good practice.
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB