Break the receive idea!
Well if you think that receive activity is the only way to create BPEL instances, think twice. You can do this with Pick onMessage activity as well. Well if this is a surprise to you then read on else dump this stupid post.
Why do this with PICK
Well if you think about it, it makes it clear that you can have multiple Pick onMessage activities at the same time. What that means in plain english is, you can have multiple operations calling in, to create a instance in BPEL. Is that not cool.
You create BPEL process for each operation in onMessage Pick.
Generally you have single operation to create a instance in BPEL.
How to create instance with PICK
Just check the create instance in the activity, that it. You are done.
What can not be done in this
You can not use a onAlarm activity in this Pick onMessage activity.
If you think about why, it is not logical at all.
How do you expire time on some thing that was not created.
Word of caution
At design time there should be strong reason that you are trying to simulate this at operation level. Use this with caution and for some strong reasons.
For example if you want a single web service for each operation from a source system.
Monday, October 13, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment