BPEL

Record XML Content in the Database for BPEL

In this article I will show how we can record an XML content using DbAdapter BPEL.

Below is a table Describe Command to display the details and field where I will perform the Insert XML

Imagem Blog UansCarvalho

Below I created a simple project in BPEL called GravaXMLBpel

Imagem Blog UansCarvalho

We can then create a DbAdapter to Insert Only option (but may be the Merge smoothly), in my case I called GravaXMLDBAdapter

Imagem Blog UansCarvalho

Now I’m importing the table PROJECT

Imagem Blog UansCarvalho

We created so our DBAdapter.

Imagem Blog UansCarvalho

Now create a BPEL normally and connect with your DBAdapter.

Imagem Blog UansCarvalho

Open your xsd that is your BPEL created, in my case it is GravaXMLBPELProcess.xsd

Imagem Blog UansCarvalho

Edit your input element and create two fields just to be those who need to perform recording in the table.

Imagem Blog UansCarvalho

Now within your BPEL drag the Invoke component and plug in your Adapter and drag a Transformation to we turn our input on our Invoke

Imagem Blog UansCarvalho

Double-click on your Transform and then we turn our input with the input variable of our Adapter.

Imagem Blog UansCarvalho

Click OK and your Transformation will open, then turn the IdDepartamento with projectno and xml field on the right corresponding to your table, click the right button navigate to the Add XSL Node option and choose copy-of

Imagem Blog UansCarvalho

Like this:

Imagem Blog UansCarvalho

Then connect the xml on your left with the copy-of the right hand side

Imagem Blog UansCarvalho

Save everything and make deploy the project and we will test:

Below that within the <ns1:xml> I am passing an XML any
Imagem Blog UansCarvalho

See below our XML content inserted in the table XML field PROJECT

Imagem Blog UansCarvalho

Imagem Blog UansCarvalho

Doubts ? Leave your comment and download the Projet BPEL  :-)

 

Hugs and see you soon

/:-D

 

 

Criei este Blog destinado a desenvolvedores e interessados na Tecnologia Oracle SOA Suite, minha idéia é que no futuro ele sirva de referência para Analistas e Desenvolvedores desde aprendizes a especialistas. Já existem alguns Posts interessantes que abordam um pouco do meu dia a dia, no passar do tempo irei alimentar este Blog com o máximo de informações possíveis, por isso peço por gentileza aos interessados e afins que caso tenham alguma dúvida, sugestão ou crítica que me digam para que eu possa da melhor forma suprir as expectativas e na medida do possível sanar todas as duvidas que vierem a surgir ou até mesmo criar novos Posts abordando algum tópico que venha a ser relevante para todos os interessados. Obrigado Uans Carvalho

Leave a Reply

Your email address will not be published. Required fields are marked *