Calling a Service in BPM Composer

Tweet about this on TwitterShare on Facebook0Share on LinkedIn0Share on Google+0

In the previous post, we created a simple BPM process using BPM Composer.
Now, let’s improve our process including a Service Call to save the employees added.
For this, we will need to do some changes.

Download the sample application: MyProject.zip

Go to Business Catalog.

calling-a-service-in-bpm-composer1

Add a new Service and call it as CreateEmployeeService.
I’m using the service that I created here: Expose Application Module as SOAP Web Service.

calling-a-service-in-bpm-composer2

Add a Service Task activity between the Initiator activity and the End event.
Call it as SaveEmployee.

calling-a-service-in-bpm-composer3

Double-click on SaveEmployee activity.
In the Implementation section, set the type as Service Call and the Service as CreateEmployeeService.
Click on Apply Changes.

calling-a-service-in-bpm-composer4

Go to Project Home and open the CreateEmployeeWF Web Form.
Add four new fields: ID, Last Name, Email and Hire Date.

calling-a-service-in-bpm-composer5

Go to CreateEmployee process and create a new Process Data Object.

calling-a-service-in-bpm-composer6

Right-click SaveEmployee activity, and then click Data Association.
Drag data objects to text boxes and click Apply.

calling-a-service-in-bpm-composer7

Right-click Initiator activity, and then click Data Association.
Drag data objects to text boxes and click Apply.

calling-a-service-in-bpm-composer8

Go to Process Player and execute the process.

calling-a-service-in-bpm-composer9

calling-a-service-in-bpm-composer10

calling-a-service-in-bpm-composer11

calling-a-service-in-bpm-composer12

calling-a-service-in-bpm-composer13

Tweet about this on TwitterShare on Facebook0Share on LinkedIn0Share on Google+0

Autor: Waslley Souza

Consultor Oracle com foco em tecnologias Oracle Fusion Middleware e SOA. Certificado Oracle WebCenter Portal, Oracle ADF e Java.

2 pensamentos em “Calling a Service in BPM Composer”

    1. Desculpe a demora, não é possível fazer isso no composer. Você tem que exportar para o JDeveloper, remover e então importar novamente para o composer. Sei que é trabalhoso, mas é a única forma possível.

Deixe uma resposta

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *