How to Copy Input and Output Payload in a Two Layer BMP Scenario
Last updated on APRIL 12, 2011
Applies to:Oracle SOA Platform - Version: 220.127.116.11.0
Information in this document applies to any platform.
Background information:Two-Layer BPM enables you to create dynamic business processes whose execution, rather than being predetermined at design time, depends on elements of the context in which the process executes. Such elements could include, for example, the type of customer, the geographical location, or the channel.
Two-Layer BPM enables you to model business processes using a layered approach. In that model, a first level is a very abstract specification of the business process. Activities of a first-level process delegate the work to processes or services in a second level.
In Two-Layer BPM, a Phase is a level-1 activity in the BPEL process model. It complements the existing higher-level BPEL activities Business Rule and Human Task. At the location where the user dropped the phase activity in the BPEL process model a new BPEL scope is created and inserted into the BPEL process. The scope has the name of the phase activity. Within the scope, a bunch of standard BPEL activities are created. The most important ones are one invoke activity to a mediator and one receive activity from the mediator. With the SCA composite of the BPEL component, a new Mediator component is created and wired to the phase activity of the BPEL component that comprises the level-1 BPEL process where the phase activity has been dropped into the process model. The input and output of the Mediator component is defined by the input and output of the phase activity. The mediator plan (this are the processing instructions of the mediator component) is very simple; it delegates creation of the processing instructions to the business rules component.
At runtime, the input of the Phase activity is used to evaluate the dynamic routing decision table. This is performed by a specific decision component of the Phase activity. The result of this evaluation is an instruction for the Mediator. The Mediator routes the request to a service based on instructions from the decision component.
Reference:A sample implementation can be found in: Using Two-Layer Business Process Management (BPM)[http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10224/bp_two_layer_bpm.htm].
- In the child BPEL process (e.g.: GoldCustomerRouterService etc), it is not possible to copy (assign) the input payload passed from the parent BPEL process (BPELPhaseCustomerRouter process).
- It is not possible to copy the payload returned from the child BPEL process (e.g.: GoldCustomerRouterService) to any variables (Phase Output variable or any other output variable) in the parent process (e.g.: BPELPhaseCustomerRouter). Refer to Using Two-Layer Business Process Management (BPM) [http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10224/bp_two_layer_bpm.htm] implementation test case to see the Assign.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms