0 Replies Latest reply: Feb 4, 2013 1:24 AM by 962431 RSS

    Incorrect type as java.lang.BigDecimal for xsd:decimal element

    962431
      Hi,

      I have created a BPEL process which has HumanTask Activity .

      Following is the myHumanTask.xsd for the humanTask


      <?xml version = '1.0' encoding = 'UTF-8'?>
      <schema targetNamespace="http://xmlns.oracle.com/bpel/workflow/task" xmlns:tns="http://xmlns.oracle.com/bpel/workflow/task" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <complexType name="myHumanTaskPayloadType">
      <sequence>
      *<element name="dummyDecimalVariable" type="xsd:decimal"/>*
      </sequence>
      </complexType>
      </schema>


      We generate the Human Task Project using "Auto Generate Task Form" wizard .


      Following is the auto generated myHumanTaskPayloadType.xml file which consist "dummyDecimalVariable" type as java.lang.BigDecimal which is incorrect.

      Which resulted in ClassCastException while casting it to java.math.BigDecimal in Human Task Controller

      <?xml version="1.0" encoding="UTF-8" ?>
      <JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.60.13"
      id="myHumanTaskPayloadType" Package="Project2_myHumanTask"
      BeanClass="Project2_myHumanTask.myHumanTaskPayloadType"
      isJavaBased="false">
      *<Attribute Name="dummyDecimalVariable" IsUpdateable="0"*
      Type="java.lang.BigDecimal">
      <Properties>
      <CustomProperties>
      <Property Name="minOccurs" Value="1"/>
      <Property Name="maxOccurs" Value="1"/>
      <Property Name="LABEL" Value="Dummy Decimal Variable"/>
      <Property Name="LeafElement_hint" Value="LeafElement_no_attribute"/>
      <Property Name="nillable" Value="false"/>
      <Property Name="originalName" Value="dummyDecimalVariable"/>
      <Property Name="targetNamespace"
      Value="http://xmlns.oracle.com/bpel/workflow/task"/>
      *<Property Name="type" Value="java.lang.BigDecimal"/>*
      </CustomProperties>
      </Properties>
      </Attribute>
      </JavaBean>

      Edited by: 959428 on Feb 3, 2013 11:23 PM