Appending multiple strings in Oracle SOA Suit in a BPEL process
<p>I'm new to the Oracle SOA Suite and I have created a basic BPEL process that allows you to create a "User" with some basic values.</p>

<p>XSD:</p>

<pre><code>//INPUT
&lt;element name="User"&gt;
    &lt;complexType&gt;
        &lt;sequence&gt;
            &lt;element name="First_Name" type="string"/&gt;
            &lt;element name="Last_Name" type="string"/&gt;
            &lt;element name="Age" type="string"/&gt;
            &lt;element name="DOB" type="string"/&gt;
        &lt;/sequence&gt;
    &lt;/complexType&gt;
&lt;/element&gt;
// String to output
&lt;element name="processResponse"&gt;
    &lt;complexType&gt;
        &lt;sequence&gt;
             &lt;element name="Output" type="string"/&gt;
        &lt;/sequence&gt;
    &lt;/complexType&gt;
&lt;/element&gt;
</code></pre>

<p>So using this XSD I want to be able to create a user, and append all the values together and create a response/reply with my synchronous BPEL process.</p>

<p>I've tried simply adding all the values together using the '+' operation but doesn't work as it tries to cast it it a integer, so it seems and the value comes out as "Jon NaN".</p>

<pre><code>  &lt;copy&gt;
    &lt;from&gt;concat("Hello! ", $inputVariable.payload/ns1:Last_Namel)&lt;/from&gt;
    &lt;to&gt;$outputVariable.payload&lt;/to&gt;
  &lt;/copy&gt;
</code></pre>

<p>I've also tried to use multiple concat's but it get's real ugly real quick, and something i would like to avoid is messy code.</p>

<p>So as a summary i want to be able to take all the input values (First Name, Last Name, Age, DOB) and convert them into a nice string with some padding and extra hard coded strings to show a nice message at the end.</p>