Wednesday 28 September 2016

HOW TO CONSUME REST WEBSERVICE IN ORACLE SOA 12c
(REST ADAPTER IN SOA 12c)

1.Create a SOA Project named RESTInvoke



2.Create a Synchronous BPEL process




3.Drag and drop the REST Adapter into the external References




4.Give the name for Rest Reference and choose the appropriate option



5.Enter the Base URI and the resource path of your Rest WebService






6.Create Methods to invoke the WebService



7.Give name for the method,choose the resource path and then choose the operation that you are going to perform.Here I have used GET method.



8.Create URI parameters for the request.




9.Give name for the parameter and choose the style for the parameter.There are two Styles available.

#QUERY parameters are the most common type of parameter, which is appended to the path of the URL when submitting a request.

#  TEMPLATE parameters are a flexible way of parameterizing the actual path of the request.

I have selected query parameter.We can specify the default value also.I have given 77 as the default value.







10.Click finish to complete the rest configuration wizard.





11.Create a wire between BPEL and Rest Adapter



12.Create two json Variables for Invoke input and Invoke Output







13.Drag and drop the invoke activity.




14.Create a wire between invoke and RestReference




15.Choose the method that we are going to invoke and choose the input and output variables.






16.Map the input variables.





17.Map the Output Variables.







18.Now you can deploy and test the Service.











Tuesday 27 September 2016

HOW TO CREATE A DECISION TABLE IN ORACLE SOA 12c

1.Create a SOA project DecisionTableDemo


2.Create a synchronous BPEL DecisionTableBpel



3.Drag and drop the Business Rule component



4.Create rule called EmpGradeRules



5.Assign Input and Output for the rules.














6.Create a wire between Bpel and Rules





7.Double Click on the Rules to define the ruleset



8.Click on the + sign in the Rules Designer window near the Decision table to create the decision table




9.Enter the description as EmpGradeTable



10.Create a valueset and attach it to the process fact





























11.Choose the RuleSet1 to open the rule Designer window




12.Specify the condition




13.Specify the action



14.Now enter the rules.If the salary is 1000 then the result should be Grade C.If the salary is 2000 then Grade-B.If the salary is 3000 the Grade C.












15.Drag and drop the business rule component in the Bpel




16.Double click on the Business Rule and Select the decision table that we have specified



17.Assign Input and Output facts








18.Now you can deploy and test the process