SOA- oraext: parseEscapedXML - PullRequest
       7

SOA- oraext: parseEscapedXML

0 голосов
/ 08 февраля 2019

В SOA 12c моя входная переменная содержит эти данные

<JobSchedulerCollection
    xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/GetOrdersForTasking">
    <JobScheduler>
        <id>20376643</id>
        <jobid>20376643</jobid>
        <xmljob>
            <job type = "JAVA" class ="com.WorkDistributor" action = "callWorkDistributor">
                <arguments>
                    <arg seq = "1" name = "orderId" value = "5640273" datatype = "STRING" type ="IN"/>
                    <arg seq = "2" name = "workSourceName" value = "NI_NUT_WS" datatype = "STRING" type ="IN"/>
                    <arg seq = "3" name = "retaskWork" value = "Y" datatype = "STRING" type ="IN"/>
                    <arg seq = "4" name = "untaskWork" value = "Y" datatype = "STRING" type ="IN"/>
                </arguments>
            </job>
        </xmljob>
        <jobtype>WorkDistributor</jobtype>
        <needBpelTask>N</needBpelTask>
    </JobScheduler>
</JobSchedulerCollection>

Я хочу xmljob, поэтому я использовал parseEscapedXML, пробовал oraext: parseXML также

переменная tempURI -> xsd: anytype

oraext:parseXML(bpws:getVariableData('inputVariable','JobSchedulerCollection','/ns3:JobSchedulerCollection/ns3:JobScheduler/ns3:xmljob'))
<?xml version="1.0" encoding="UTF-8"?><tempURI>
   <t type="JAVA" class="com.WorkDistributor" action="callWorkDistributor">
      <arguments>
         <arg seq="1" name="orderId" value="5640273" datatype="STRING" type="IN"/>
         <arg seq="2" name="workSourceName" value="NI_BGW_WS" datatype="STRING" type="IN"/>
         <arg seq="3" name="retaskWork" value="Y" datatype="STRING" type="IN"/>
         <arg seq="4" name="untaskWork" value="Y" datatype="STRING" type="IN"/>
      </arguments>
   </t>
</tempURI>

позже я хочу скопировать, поэтому создал другую переменную orderID типа xsd: string

используемую копию в присвоении

bpws:getVariableData('tempURI',"/tempURI/arguments/arg[@name='orderId']/@value")

я получаюэта ошибка

The <from> value is invalid.
The result of from-spec is null.
Either the from node value or the XPath query in the from node value was invalid.
According to BPEL4WS spec 1.1 section 14.3, the from node value should not be empty. Verify the from node value at line number 295 in the BPEL source.

Может кто-нибудь сказать мне, что я могу сделать, чтобы исправить это?

...