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.
The following image shows the details of consumer using the Dynamic Process Reference as the Reference Type.
Procedure
Related tasks
Copyright © Cloud Software Group, Inc. All rights reserved.