Quantcast
Channel: Oracle Trainings
Viewing all articles
Browse latest Browse all 12

Templates in Oracle SOA Suite 12c

$
0
0

In this post, we are going to cover Templates and Levels of Templates in SOA 12c  which is one of the new features in SOA 12c and mainly focuses on reusability of the code in Oracle SOA Suite.

Templates in SOA 12c:

  • Templates are re-usable components.
  • The concept of template helps developers to reuse a standardized piece of code which has been published in the form of templates.
  • It leads to reduced development time and more reusability.

Levels of Templates:

Templates in SOA 12c can be created at three different levels:

  1. Project Level Template
  2. Component Level Template
  3. Custom Activity Level Template

Project Level Template:

This template contains full project along with all the artifacts, components and references. We can create project template from Jdeveloper using the following steps:

1.Right click on the SOA Project to be converted into project template and Select the option Create SOA Template.

Create SOA Template

2.Specify the path to store template.

path to store template

3.Check all the files that are required to be included in template and hit finish.

files

4.Project Level Template gets successfully created.

Template gets successfully created.

 

We can build new projects from this project template, the new project imports all the artifacts, components and references which are there in project template.

Below are the steps to create a new project using projects template:

1.Go to file—>New—->Project

file--->New---->Project

2.Select the SOA Project and click ok.

SOA Project

3.Name the Project as per your context and click Next.

Name the Project

4.Select the radio button SOA Template and choose the template on the basis of which you want to create project and hit finish button.

radio button SOA Template

Component Level Template:  

  • This template contains service components.
  • We can create template from any composite component.
  • It also contains all reference components and resources which are there inside that component.
  • You can find this template in the SOA composite application’s Components window and it appears as a custom service component.

Below are the steps to create component level template:

1.Right Click on the component to be converted into component level template

 component

2.Select the option Create Component Template.

Create Component Template

3.Select all the files that are required to be included in template and hit finish.

hit finish

4.Component template gets successfully created.

 gets successfully created

We can build new components from the existing component templates, the new component imports all the artifacts which are there in component template.

Below are the steps to create a new component using component template:

1.Right click on the service component lane and select insert option. Choose Component Template.

service component lane

2.Select the Component Template on the basis of which you want to configure your new component and hit Ok.

Component Template

Custom activity Level Template: 

  • This template contains set of activities of a BPEL process which may include assign, transform, invoke, and receive and partner link.
  • We can use this template in the same BPEL or in any other BPEL.
  • This template also contains all the variables, references and artifacts which are related to that activity. Custom activities will be available in the BPEL palette.

Below are the steps to create custom activity level template:

1.All the activities which are required to be converted into template are required to be pushed into a scope.

scope

2.Right Click on the scope and select the option Create Custom Activity Template

Custom Activity Template

3.Specify the name of the template and select the location to create the template. Hit Next.

name of the template

4.Select all the dependent variable to be included in Custom Activity Template. Hit Next.

dependent variable

5.Select all the dependent files and click finish.

finish

6.SOA Custom Activity Template gets successfully created.

SOA Custom Activity Template gets successfully created

7.This custom activity template gets added in the component pallete as shown below:

component pallete

We can reuse these custom activity templates by dragging them from component pallete into bpel.

So, this is all about the Templates and Levels of Templates in SOA 12c .

We cover this in one of the modules of our Oracle SOA Dev where we also cover Develop SOA Composite, Orchestration, Managing and Monitoring Composite Applications, Fault Handling, DVM & MDS, JCA Adapters, Mediator, Business Rule Component and much more interesting and latest features in SOA 12C.

Did You Find this Blog useful?

Leave a Comment.

Some Interesting Topics in SOA Dev:

  • [Video] Oracle SOA Suite Development: Meta Data Service (MDS) Click here
  • [Video] Oracle SOA Suite Development: Domain Value Map (DVM) Click here
  • [Blog]Error Hospital in Oracle SOA Suite 12C Click here
  • Enterprise Manager Partition in Oracle SOA Suite 12c/11g Click here
  • Subprocess in Oracle SOA Suite 12C Click here

If You’ve not looked at Our Oracle SOA Suite Development Workshop & want to check what we cover in the Workshop then check here & Step By Step Hands-On Activity Guide we cover in Training.

Join Community

Join 3500+ Oracle Professionals like you to discuss Oracle Weblogic Server, Ask Questions or Help Others in Private Facebook Group for Oracle SOA Dev

If you are looking for the commonly asked interview questions for Oracle SOA Suite Development, then Click on the Image Below and receive them in your Inbox right away!

 

The post Templates in Oracle SOA Suite 12c appeared first on Oracle Trainings.


Viewing all articles
Browse latest Browse all 12

Trending Articles