Dynamically Invoking Subprocesses Using SetEPR Activity
This sample illustrates the Dynamic Invocation of the Subprocess using Set EPR activity. The Set EPR activity generates the Endpoint Reference and determines the service to be invoked at runtime. In this sample, the Service Consumer and Service provider reside in different applications.
Setup
Import the sample project into the workspace. Ensure that both applications are in the workspace. For more information, see Accessing Samples.
Description of the Project
This sample comprises two applications. Service Provider (Provider.bwp) and Service Consumer (Consumer.bwp).
- The Service Consumer invokes the service using Dynamic Process Reference, which is located in the Service Provider application.
- Service Consumer has one process, Consumer.bwp. This process has the Dynamic Reference to the Service. The Consumer process contains a Sleep activity which ensures that consumer waits to invoke the service, till the service gets deployed and is ready to process the request.
- Service Provider has one process, Provider.bwp. This process uses the Hello.wsdl file to implement the service and sends a response message to the incoming request.
Note: Every application requires at least one component to deploy the application. In this sample, the
Activator.bwp process is used in the service provider application for the
Provider.bwp to be deployed without configuring the binding.
The following image shows the configuration details of the Set EPR activity in the Consumer.bwp.
![](GUID-29AFB47D-9ABC-4D29-AED3-830B535BD655-display.png)
The following image shows the details of consumer using the Dynamic Process Reference as the Reference Type.
![](GUID-BAB63E34-F068-436C-89A0-E3D6A6D3A2D7-display.png)
Procedure
Related tasks
Copyright © Cloud Software Group, Inc. All rights reserved.