"Live as if you were to die tomorrow. Learn as if you were to live forever.The more that you read, the more things you will know. The more that you learn, the more places you'll go."
This blog has been created for the same objective.
I write on things which I come across in my daily life and feel to share it with the people across the world.
Sharing is Always Fun
Working with SOA technologies , implementing solution using IBM BPM , IBM Integration Designer,IBM WODM and IBM DataPower
Monday, 6 May 2013
Creating Custom Selectors with IBM Integration Designer(BPMv7.5)
A selector is a dispatch pattern
you use to dynamically determine which implementation of a component to invoke
at runtime. Like a rule group, a selector has date range entries, selection
criteria, and a default destination. That is, when a selector is invoked, it
selects a destination using the selection criteria and date range entries. A
destination could be any service-oriented component.
Process Server selectors let you determine
dynamically which implementation to invoke at runtime based on a specified set
of criteria, which is currently limited to dates. Although the standard
selector implementation has the date limitation, with a little knowledge (and a
little programming experience) you can create a custom selector that can use
more varied selection criteria.
How is this
useful? You often need non-date selection criteria in real world Business Processes.
For example, the company XYZ has a Web site from which it must calculate sales
taxes differently based on the state from which the order is placed. XYZ
company would like its online invoice process to select the correct tax
calculation process, based on the state code entered on the order form by the
A selector can use any Process Server Components
as its outcome choices, including those defined in other modules. With a custom
selector, you can write code that makes selections based on the values of some
interface parameter passed into the selector. Other components can then use
selectors that need to select behavior based on the criteria expressed in the