Invoking synchronous service using service task
You have being using service task for invoking synchronous operations in services. You have invoked the synchronous service StockValidator_EBS, to validate stock in Chapter 8, Exception Management. However, in this section, you will learn how synchronous service invocation works.
How to do it...
Here, you will learn to invoke a synchronous service using a service task:
1. Add a service task to the point where you want to invoke a synchronous operation on a service.
2. In the Implementation tab of the properties of the service task, browse for the service.
3. Select the StockValidator_EBS service from the list.
4. Select the synchronous operation from the list.
5. Check data association and assign the quote object as Input and the StockAvailability object as Output, to the ValidateStock service task, which invokes the StockValidator_EBS service.
6. When you have finished this, click on Save.
How it works...
BPMN Service Engine runs a service task and...