on 02-11-2009 10:35 AM
HI Guys,
i have a requirement where 2 files has to be picked and post to two files.
conditions: if any one of the files are not picked then cancel the process.
Correlation: no common fields exist in the two files.so we can use constant.
can any one give me the steps to design the BPM
Thanks,
Madhu
If you have some time duration till which you want BPM to wait for the files, then
1. Block step with deadline monitoring.
2. Fork with two branches and number of necessary steps = 2. Both have a receive step.
3. Send1 async.
4. Send2 async.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Madhu, you said "conditions: if any one of the files are not picked then cancel the process."
This could happen when one of the file is not received by BPM. At that time fork will ensure that it will wait for both the files before processing further. Deadline step will ensure that this wait at fork is not infinite.
Regards,
Prateek
Prateek,
can i use block step at the starting.
and what should be the end condition in the fork step.
so as per my understanding, if i use a fork step inside the block and a deadline branch for the block step and wait for 1 minute, then if any file is not picked the process will be terminated....is my understanding Right????
thanks,
Madhu
can i use block step at the starting.
Yes
and what should be the end condition in the fork step.
Not mandatory. Just provide number of necessary branches.
if any file is not picked the process will be terminated
Yes, the flow will move to deadline branch and you may use any step there to get executed.
Regards,
Prateek
HI Prateek,
I have done that process as you said.
one Block step and a fork step inside the block and two branches for the fork, each branch with one receive step and each can start the process.and a deadline branch to the block step with 1 minute and a control step to cancel process.
but, the files are picking and the messages are with the status "To be delivered" in integration engine.
please suggest
Thanks,
Madhu
Hi Madhu,
It is not possible to check if the file is not picked up by the adapter in BPM because if the file is not picked up you won't get any messages in Moni. So not possible to check if they are picked up.
You have to apply different condition like wait for some time (Use of deadline) .if within that period file is not picked up then go in exception branch.
Steps given by Prateek seems to be ok for me.
Thanks
Sunil Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sunil,
can we check if the receive step didnt receive the msg then terminate.
according to Prateek.
first a Block step and inside the block fork step with 2 receive steps each for one branch.
and two send steps.
my doubt is what should be the end condition for a fork step.
can i start the process with a block step.
Thanks,
Madhu
Hi Madhu,
As in the Fork Step necessary steps is kept 2 so untill both the receive step inside the fork get messages the fork will not complete and it will wait till the second Message arrives.
By using Deadline over the fork in a block you can ensure that it will not wait more than 1 minute and will cancel the process.
you need not to give any condition other than 2 necessary steps in the fork.
Thanks
Sunil Singh
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.