Selector
Component Overview:-
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.
Problem:-
Scenario:-(Sample Solution)
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
customer.
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
selector.Download document and PI:
CustomSelectorsScenario_mahesh.doc and CustomStateSelector_Mahesh05_May_2013_PI
No comments:
Post a Comment