Starts multiple services in parrallel in a flow service

Hi, I would like to do the following:

I would like to schedule one flow service that

1 - starts 4 sub services in parrallel (instead of sequentially).

2 - than, upon completion of the 4 steps above, run a validation step (a separate service) that will validate the results of the above 4.

Is this accomplishable without using a model or a broker?

Thanks,
Jeff

Hi,

use doThreadInvoke in see the API (write java service). Start every threaded service with a same uniqueID and a dedicated uniqueID

–start your main service–
doThreadInvoke serviceX with uniqueID = 657244268878 and threadID =1
doThreadInvoke serviceX with uniqueID = 657244268878 and threadID =2
doThreadInvoke serviceX with uniqueID = 657244268878 and threadID =3
doThreadInvoke serviceX with uniqueID = 657244268878 and threadID =4
–end–

-details of serviceX-

(doStuff)
sleepRandom time
write key (%uniqueID%_ % threadID %) to memory ->see PSUtilities how to that that
check if all the 4 memory keys are available
-> yes: do your evaluation
-> no: stop


This is just a solution. Lot’s of java. You must have a pretty good reason not to use the modeller or the broker.

-Rob