Oracle PCS- Integration with SOAP Webservice
UseCase: A User enters an IP into a form and submit it then a public webservice is invoked to get the CountryName based on the IP and the result is displayed in human task for submission.
PCS Version: 17.2.3
On the left upper corner Click Create button and select New Application.
I have already created Space before with Name DirectionSpace.
Create a process and select a pattern start with form.
Add Service task and Submit task( human) from right panel.
Configure Start field and create a new web form so that user can enter the form.
Provide the name as CountryForm.
Drag and Drop two textArea and rename it using name and label properties on the left side.
Rename textArea1 --> IP and textArea2-->Country.
We are going to hide Country filde so select hide property present at left side. Now IP Field will be visible to User at the start of the form launch.
Now click on new Presentation + Icon and provide the name.
Select the based on field as Main Presentation as we are going to change the presentation using Main Presentation.
Deselect hide property for Country.So once Country Name is fetched from Service call. It will be visible on the webform.
Webform is created.
Now we will create Integration for the process.
Go to Application home and select Integrations. Click on + icon, select External-->SOAP.
Select Use URL and Provide WSDL URL.
http://www.webservicex.com/geoipservice.asmx?WSDL
Click Next
Click Next
Click Create.
Now we will browse the integration created just now.
Go back to the process and open properties of service call.
Select Service Call and click on pencil.
Select Webservice and browse the integration.
Open data Association of Service task.
Do the Input-Output mapping of Service call.
Open properties of View Country task and browse the CountryForm and ResPresentation that we created before.
Open data Association of ViewCountryHumantask and do the below mapping.
Input Mapping:
Output Mapping:
Process is created, now publish the changes.
Click on Test button on top right side and click on deploy.
Once Application is deployed.Click on Play button.
Click on play button at Start.
Enter IP : 192.166.1.2 and submit the form.
Click play button at ViewCountry.
Country Name is fetched from Service call.
Click Submit Process will end.
Note that at the start Form Country field was hidden as we selected the hide property in Main Presentation.
At View Country Human task Country field is visible as for this presentation we have deselected the hide properties.
No comments:
Post a Comment