Using "format-number" Function in BPEL (Doc ID 1926206.1)

Last updated on SEPTEMBER 16, 2014

Applies to:

Oracle SOA Suite - Version 11.1.1.7.0 and later
Information in this document applies to any platform.

Goal

 Use the "format-number" function in BPEL and assign the value to a variable:

--------------------------------------------------------------------------------------
<assign name="Assign1">
     <copy>
       <from expression="format-number(13824.149999999992,'#0.00')"/>
       <to variable="Variable1"/>
     </copy>
   </assign>

--------------------------------------------------------------------------------------

When tested the log shows an error:

--------------------------------------------------------------------------------------
<exception  class="java.lang.ClassCastException">
<stack/>
</exception>

--------------------------------------------------------------------------------------


In version 11.1.1.6.0, the function is working fine but when run in 11.1.1.7.0, it doesn't work.
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms