Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
BPEL and Java Cookbook

You're reading from   BPEL and Java Cookbook Written by an SOA guru to help you orchestrate web services, the 100 recipes in this book will make integrating Java and BPEL a smooth process. Using the examples you'll avoid common problems and learn sophisticated techniques.

Arrow left icon
Product type Paperback
Published in Sep 2013
Publisher Packt
ISBN-13 9781849689205
Length 382 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Jurij Laznik Jurij Laznik
Author Profile Icon Jurij Laznik
Jurij Laznik
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Calling BPEL from Java FREE CHAPTER 2. Calling Services from BPEL 3. Advanced Tracing and Logging 4. Custom Logging in the Oracle SOA Suite 5. Transforming and Validating the BPEL Services 6. Embedding Third-party Java Libraries 7. Accessing and Updating the Variables 8. Exposing Java Code as a SOAP Service 9. Embedding Java Code Snippets 10. Using XML Facade for DOM 11. Exposing Java Code as a Web Service Index

Setting the BPEL process variables


This recipe explains how to send the data to the BPEL process variable.

Getting ready

In order to complete the recipe, we will update the BPEL_and_Java_1_1 process schema (BPEL_and_Java_1_1.xsd). The new element in the response message is clientResponseMsg:

<element name="processResponse">
  <complexType>
     <sequence>
      <element name="resultFmtBPEL" type="string"/>
      <element name="resultFmtJava" type="string"/>
      <element name="clientResponseMsg" type="string"/>
    </sequence>
  </complexType>
</element>

The newly defined element will be used to return the changed input message to the client.

How to do it…

Open the BPEL_and_Java_1_1 process and insert the Java Embedding activity (SetVar).

Double-click on the SetVar activity to insert a code snippet.

  1. First we read the input data:

    String input_txt_from_var= (String)getVariableData("Input_Txt_Var");
  2. In the next step we will reverse the input text...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image