2 Replies Latest reply: Mar 21, 2013 5:25 AM by 933746 RSS

    Issue with Transformation.

    933746
      Hi,

      On my process Start Message when I use data association to assign the output to a Process Variable it works fine. But if I use data transformation instead of data association the Process variable remains empty. I dont understand where am I wrong or what am I missing.

      Here is the code from the bpmn file for the start event using data association:

      <dataOutputAssociation>
      <ns2:OracleExtensions/>
      <assignment language="http://www.w3.org/1999/XPath">
      <ns2:OracleExtensions>
      <ns2:DataAssignment mode="simple" isCustom="false"/>
      </ns2:OracleExtensions>
      <from language="http://www.w3.org/1999/XPath" xmlns:bpmn="http://www.omg.org/bpmn20">bpmn:getDataOutput('surveyInput')</from>
      <to language="http://www.w3.org/1999/XPath" xmlns:bpmn="http://www.omg.org/bpmn20">bpmn:getDataObject('viewSurveyResultObj')</to>
      </assignment>
      <sourceRef>surveyInput</sourceRef>
      <targetRef>viewSurveyResultObj</targetRef>
      </dataOutputAssociation>


      The above works fine.

      If I use transformation instead of association, the viewSurveyResultObj remains empty, below is the code for the transformation:

      <?oracle-xsl-mapper
      <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
      <mapSources>
      <source type="XSD">
      <schema location="../xsd/ViewSurveyResultProcessMessage.xsd"/>
      <rootElement name="ViewSurveyResultsInput" namespace="http://www.oracle.net/ViewSurveyResultProcessMessage"/>
      <param name="surveyInput" />
      </source>
      </mapSources>
      <mapTargets>
      <target type="XSD">
      <schema location="../xsd/ViewSurveyResultProcessMessage.xsd"/>
      <rootElement name="ViewSurveyResultsInput" namespace="http://www.oracle.net/ViewSurveyResultProcessMessage"/>
      </target>
      </mapTargets>
      <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.5.0(build 110418.1550.0174) AT [FRI APR 27 15:10:48 BST 2012]. -->
      ?>

      <xsl:template match="/">
      <tns:ViewSurveyResultsInput>
      <tns:SurveyResultData>
      <tns:SPID_BATCH_ID>
      <xsl:value-of select="/tns:ViewSurveyResultsInput/tns:SurveyResultData/tns:SPID_BATCH_ID"/>
      </tns:SPID_BATCH_ID>
      <tns:CORE_SPID>
      <xsl:value-of select="/tns:ViewSurveyResultsInput/tns:SurveyResultData/tns:CORE_SPID"/>
      </tns:CORE_SPID>
      <tns:SPID_CATEGORY>
      <xsl:value-of select="/tns:ViewSurveyResultsInput/tns:SurveyResultData/tns:SPID_CATEGORY"/>
      </tns:SPID_CATEGORY>
      <tns:REGION>
      <xsl:value-of select="/tns:ViewSurveyResultsInput/tns:SurveyResultData/tns:REGION"/>
      </tns:REGION>
      <tns:BATCH_NO>
      <xsl:value-of select="/tns:ViewSurveyResultsInput/tns:SurveyResultData/tns:BATCH_NO"/>
      </tns:BATCH_NO>
      <tns:BATCH_DATE>
      <xsl:value-of select="/tns:ViewSurveyResultsInput/tns:SurveyResultData/tns:BATCH_DATE"/>
      </tns:BATCH_DATE>
      ..
      ...
      ..
      </tns:SurveyResultData>
      </tns:ViewSurveyResultsInput>
      </xsl:template>


      Please let me know if I need to do something different if I move from data association to data transformation.