Problem in Xpath expression(ccBPM).
I have given the following expression in the container operation and assigned the xpath /MT_RS2/FIL/substring(FILE_NAME,15,17) to the simple variable that I declared in container data.I used this variable to check the condition in switch.The problem is the switch is always set to false and condition is not being executed.I donot get any XPath error but swtitch step fails.Is there a way to trouble shoot this?
Hi Sravya,
substring is wrong declared. Try:
substring (//MT_RS2/FIL/FILE_NAME,15,17)
Regards, Udo
Similar Messages
-
Hi all,
I have an XML document with entries of the following form:
<record><header><identifier>info:ugent-repo/aleph/rug01-000000003</identifier><datestamp>2007-01-20</datestamp></header><metadata><marc:record xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd">
<marc:leader>00000nam 22 a 4500</marc:leader>
<marc:controlfield tag="001">000000003</marc:controlfield>
<marc:controlfield tag="005">20050826200104.0</marc:controlfield>
<marc:controlfield tag="008">970601s1971 xx r 000 0 ger d</marc:controlfield>
<marc:datafield tag="020" ind1=" " ind2=" ">
<marc:subfield code="a">3110035170</marc:subfield>
</marc:datafield>
<marc:datafield tag="040" ind1=" " ind2=" ">
<marc:subfield code="a">UGent</marc:subfield>
</marc:datafield>
<marc:datafield tag="050" ind1=" " ind2=" ">
<marc:subfield code="a">HE155 .P85</marc:subfield>
</marc:datafield>
<marc:datafield tag="100" ind1="1" ind2=" ">
<marc:subfield code="a">Putschke, Wolfgang</marc:subfield>
</marc:datafield>
<marc:datafield tag="245" ind1="1" ind2="0">
<marc:subfield code="a">Sachtypologie der Landfahrzeuge :</marc:subfield>
<marc:subfield code="b">ein Beitrag zu ihrer Entstehung, Entwicklung und Verbreitung.</marc:subfield>
</marc:datafield>
<marc:datafield tag="260" ind1=" " ind2=" ">
<marc:subfield code="a">Berlin :</marc:subfield>
<marc:subfield code="b">de Gruyter,</marc:subfield>
<marc:subfield code="c">1971.</marc:subfield>
</marc:datafield>
<marc:datafield tag="300" ind1=" " ind2=" ">
<marc:subfield code="a">VII, 163 p., krtn, ill.</marc:subfield>
</marc:datafield>
<marc:datafield tag="440" ind1=" " ind2="0">
<marc:subfield code="a">Schriften zur Volksforschung</marc:subfield>
<marc:subfield code="v">4</marc:subfield>
</marc:datafield>
<marc:datafield tag="852" ind1="4" ind2=" ">
<marc:subfield code="4">Dept. LW17</marc:subfield>
<marc:subfield code="5">L67A</marc:subfield>
<marc:subfield code="b">LW17V</marc:subfield>
<marc:subfield code="c">L67A</marc:subfield>
<marc:subfield code="j">L67A.V18.447</marc:subfield>
</marc:datafield>
<marc:datafield tag="920" ind1=" " ind2=" ">
<marc:subfield code="a">book</marc:subfield>
</marc:datafield>
</marc:record></metadata></record>Now it works to get information out of the file using marc tags and tag codes: I do it with the following command:
<entry key="AUTHOR" value="//marc:datafield[@tag='100']/marc:subfield[@code='a']"/>but now I want to get the url out of the identifier field... I thought this command should work, but it doesn't:
<entry key="URL" value="//record/header/identifier"/>Does anyone has an idea what I'm doing wrong?
thanks in advance
Mathiasthis is the beginning of the xml file...
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="/OAI/style/rug01.xsl"?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2007-10-09T11:32:38Z</responseDate><request metadataPrefix="marc" verb="ListRecords">http://aleph.ugent.be:8080/OAI/rug01</request><ListRecords>
<record><header status="deleted"><identifier>info:ugent-repo/aleph/rug01-000000001</identifier><datestamp>2007-03-27</datestamp></header></record>
<record><header><identifier>info:ugent-repo/aleph/rug01-000000002</identifier><datestamp>2007-01-20</datestamp></header><metadata>
<marc:record xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd">
<marc:leader>00000nam 2200301 i 4500</marc:leader>
<marc:controlfield tag="001">000000002</marc:controlfield>
<marc:controlfield tag="005">20060108100247.0</marc:controlfield>
<marc:controlfield tag="008">780804s1977 enk b 001 0 eng </marc:controlfield>
<marc:datafield tag="010" ind1=" " ind2=" ">
<marc:subfield code="a">78307846</marc:subfield>
</marc:datafield>
...Hope you guys can help me out with this, because I really don't know what I'm doing wrong
gr -
Receiver determination - Xpath expression problem with count
I am working with a scenario where I pick up records from a JDBC connection and if the number of records I pick up is less than a certain number I want to call a webservice. If it is greater than the number I want to write out a file to be processed by a different process on the receiving end. I have created the receiver determination condition with the following conditions:
(/p1:MT_HOG_Data/row[count(row) > 3] EX)
(/p1:MT_HOG_Data/row[count(row) <= 3] EX)
The integration is always processing the second condition no matter how many records come in. I have tried with and without the multiline option. Can anyone help with this?
I have searched through the forum and checked the following links without any resolution:
http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
http://help.sap.com/saphelp_nwpi71/helpdata/EN/ab/13bf7191e73a4fb3560e767a2525fd/frameset.htm
/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
I can't find any examples where a count of records is checked in the expression editor. Thanks in advance for any help.You can not use the EX operator in that case, because that is used only for node existence checks, not for value checks.
Do you have a row number in your structure ? Then you could write the xpath expression with that counter tag and value
Example: you want to send to receiver A if count > 3, else to B:
you set /rowNumber EQUAL 4 for sender A
and /rowNumber NOT EQUAL 4 for sender B
The condition is applied to the whole document. If one of the node/values are true for that condition, then the whole condition is set to true.
Problem with that is that the second condition also will be true because nodes for that condition will be found
better would be to have a rowcount tag in the structure. If that is not possible, you can use the "Enhanced Receiver determination" where you can define a mapping which determines the receivers. There you can do anything complicated you want.
CSY -
Namespace problem The result is empty for the XPath expression
I have a problem with BPEL namespaces. The webservice that my BPEL process is using has changed namespaces (i.e. the java code package names changed and therefore the namespaces associated with the packages.)
Before there was only one namespace associated with this web services; now there are multiple namespaces.
I have changed the namespaces in my .bpel file; however I get the result is empty for XPath expression:
/nsxml0:getMailResponse/nsxml0:getMailReturn/nsxml1:mailOut
Any help appreciated...:(hey b-o-s-t-o-n,
have your verified that the namespace import is correct, and with the right prefix
you xpath contains 2 namespace prefixes
/nsxml0:getMailResponse/nsxml0:getMailReturn/nsxml1:mailOut
so check the bpel file and maybe the wsdl that has been generated (that inclused the plnk extensions for your external service)
this is the most common issue ..
hth clemens -
Hi everyone,
I developed a workflow. I builded and deployed successfully.
And I assing this workflow to a policy.
I create a request, but this request gave a fail.
Error in <assign> expression: <to> value is empty at line "181". The XPath expression : "" returns zero node, when applied to document shown below:
Line 181 :
<copy>
<from variable="inputVariable" part="payload"
query="/ns3:process/ns4:RequestID"/>
<to variable="initiateTaskInput" part="payload"
query="/ns2:initiateTask/task:task/task:payload/task:RequestID"/>
</copy>
It seems that I could not take requestID.
Do you have any idea ?
Thanks for your help.
RegardsHow did you resolve the issue? We're facing the same problem.
-
In XSLT, make XPath expression to retrieve attribute nodes
I have a problem fetching attribute nodes in an Xpath expression.
SOAP Request:
<Create ID=5/>
<Name>Per</Name>
I want to fetch the value of ID and put it into another variable with an XPath expression in a XSLT transformation.
If you look at http://www.w3schools.com/xpath/xpath_syntax.asp
You should be able to do this with "//Create[@ID]" according to the examples, but this is not working at all in JDev.
Any thoughts?
/PerThanks, that worked!
Just thought about it. How do you do the other way around.
<Create>
<ID>7</ID>
to
<Create ID=7>
. -
XPath expression for fetching element names & attributes
Hi out there!
I�m trying to get a result set out of a xml schema, using XPath. The problem is, that any expression gets just a whole node set back, as it seems. The result I�d like to get would be the following. Imagine I got a schema like this:
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:r="http://recipes.org"
targetNamespace="http://recipes.org"
elementFormDefault="qualified">
<element name="recipe">
<complexType>
<sequence>
<element name="title" type="string"/>
<element ref="r:ingredient" minOccurs="0" maxOccurs="unbounded"/>
<element ref="r:preparation"/>
<element name="comment" minOccurs="0" type="string"/>
<element name="nutrition">
<complexType>
<attribute name="protein" type="r:nonNegativeDecimal" use="required"/>
<attribute name="carbohydrates" type="r:nonNegativeDecimal" use="required"/>
<attribute name="fat" type="r:nonNegativeDecimal" use="required"/>
<attribute name="calories" type="r:nonNegativeDecimal" use="required"/>
<attribute name="alcohol" type="r:nonNegativeDecimal" use="optional"/>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>
Now, when I`m refering to the element <attribute name="protein" type="r:nonNegativeDecimal" use="required"/>, I would like to get all ancestors of it, which is not a big issue at all, but i`d just like to get their names and attributes, if they have some. So the result should be something like:
<element name="recipe">
<complexType>
<sequence>
<element name="nutrition">
<complexType>
</complexType>
</element>
</sequence>
</complexType>
</element>
Any ideas anybody?
Thanks in advance, JensWell, I would use the org.apache.xpath.XPathAPI class and parse the input XML into a DOM document., and then utilize the single xpath expression //attribute[@name=protein]/ancestor::* to recover all ancestors (in a directal-tree-traversal order) of any node called "attribute" and with attr "name=protein" .
Could it be? -
The result is empty for the XPath expression
Hi friends
Please, could anyone help-me with this issue? My BPEL process was working yesterday and stoped today...
I think I´m facing a namespace problem.
If I start my process using BPEL Console, filling the "HTML form" option, all works ok.
If my process is started by a call from another bpel process, my XPath query gives me an error, but the 2 received messages are "almost" egual:
Using BPEL Console:
<RejectionMessage>
<part name="message" >
<RejectedMessage ns1:BatchId="" ns1:PrimaryKey="" ns1:RejectionId="invalid_msg_processName_token1_token2_token3" ns1:BatchInfo="" >
<MessageHeader/>
<MessagePayload/>
<RejectionReason/>
</RejectedMessage>
</part>
</RejectionMessage>
Started by another BPEL Process:
<RejectionMessage>
<part name="message" >
<RejectedMessage RejectionId="INVALID_MSG_BatchTest_Read_20060418_101233_0463" BatchId="" BatchInfo="" PrimaryKey="" >
<MessageHeader/>
<MessagePayload> AgICAgICAgICAgICAgICAgIE1aIEpBSVJPUyAg MDYwMzA4MTAwMQ0K </MessagePayload>
<RejectionReason> ORABPEL-11008</RejectionReason>
</RejectedMessage>
</part>
</RejectionMessage>
XPath Query:
bpws:getVariableData('RejectionMessage','message','/ns2:RejectedMessage/@ns2:RejectionId')
In the first case, it works.
In the second case, it raises a "The result is empty for the XPath expression" error.
As you can see, this process is used as a "Rejection Handler" process: It implements the interface defined in RejectionMessage.wsdl
Could you help me?
Thanks in advanceHi All
I find a workaround to the problem. I´m almost sure it is a bug in BPEL.
As you can see on my previous post, the diferences between the two messages is that the attributes have qualified names on one message and unqualified names on the other: ns1:BatchId, ns1:PrimaryKey...
The schema definition for this message (JCAErrorHandling.xsd) define that attribute names MUST be qualified (attributeFormDefault="qualified"). The problem is that the File Adapter sends the message with unqualified attribute names!!
So I edited JCAErrorHandling.xsd (<ORACLE_HOME>\integration\orabpel\system\xmllib\jca) file, changing it to attributeFormDefault="unqualified".
The correct solution is to fix File Adapter to send the message with qualified names, so I´m opening a Service Request at Oracle Metalink.
Thanks. -
Xpath expression in condition editor
Hi Expert Forum !
I have an xml structure like this :
<aaa>
<bbb>
<ccc>
</ccc>
</bbb>
</aaa>
In my condition editor (receiver determination) I want to refer to an element which is a child of node <ccc>. However, node ccc is not defined in my data type.
I can without any problems type my xpath expression manually but it doesn't seem to work though. As if it doesn't recognize node ccc if it's not in the data type. I know for 100% sure that node ccc will be in my inbound message.
Is it possible to reference an element in the condition editor - knowing that it will be present in the inbound message - even though it's not defined in the underlying data type ??
So why not just change the data type if I know <ccc> will be there? Well, data type is an external definition and I don't wanna edit it only to support an xpath expression in my rec. determination. If I can avoid it...
Message was edited by:
Hans Hougaard
Message was edited by:
Hans HougaardManaged to make xpath expression work. It is possible to reference an element which is not defined in the data type. My problem turned out to be a namespace issue..
-
Hello,
I am using jsp to read an xml file, then build a table from the contents. My xml looks like this:
<document>
<first> Text of First tag
<second> Text of second tag
<inner> Text of inner tag</inner>
<inner> Text of inner tag</inner>
</second>
</first>
<first> Text of First tag
<second> Text of second tag
<inner> Text of inner tag</inner>
<inner> Text of inner tag</inner>
</second>
</first>
</document>I am using the standard tag library to iterate over the nodes of type <first>. My problem is that when I get to each <first> node, I want to iterate over each <inner> node, but I don't know how to reference them with XPath. Here is a snippet of my jsp:
<c:import var="xml" url="test2.xml"/>
<x:parse varDom="dom" xml="${xml}"/>
<x:forEach var="First" select="$dom/document/first"> // iterates over each <first> tage
<x:set var="Second" select="string($First/second)" /> // only one second tag per first tag
<x:forEach var="inner" select="$Second/inner" > // now I want to loop over all the <inner> tags
// process inner tags here
</x:forEach>
</x:forEach>I can't figure out how to access the inner tags with xpath. I can access the "Second" variable, but when I try to go into the second loop, I can't get the text of the <inner> tag. Any suggestions?Good question. I looked at the documentation for the x:forEach element, and it says that it sets the context node to each element of the iteration. So, inside your x:forEach element you can assume that the context node is a first element from your document. The XPath expression to find your inner elements relative to that context node is "inner/second". So:<x:forEach var="inner" select="second/inner" >
-
XPath expression to element with xsl: namespace
Hi,
I have a problem selecting a node in an XSL document. What I'm trying to do is to load an XSL file and change the 'select' attribute of <xsl:for-each select='//whatever'>
I tried it something like this:
Node articleSelect = XPathAPI.selectSingleNode(xslDOM, "//for-each");
articleSelect.getAttributes().getNamedItem("select").setNodeValue("//article[@ArticleNr='" + articleNumber + "']");However, articleSelect is always null so the second line throws an exception. I also tried "//xsl:for-each" and "//xsl:for-each[@select='//whatever']" and whatnot as the XPath expression, but still no luck... :(
Any thoughts or ideas will be greatly appreciated :)
Greetings,
ErikErik, your code is working fine but you must ensure that the document builder used to create xslDOM has nameSpaceAware = true!
May I suggest this rewriting - not necessary - but more clear I think:
Element articleSelect = (Element) XPathAPI.selectSingleNode(xslDOM, "//xsl:for-each");
articleSelect.setAttribute("select", "//article[@ArticleNr='" + articleNumber + "']"); -
XPath expression to element with xsl: namespace - Take 2
I posted the below question earlier today. Unfortunately, it seemed to have disappeared from the forum although it still is in my watches list ~:-/
Anyways, here it goes:
Hi,
I have a problem selecting a node in an XSL document. What I'm trying to do is to load an XSL file and change the 'select' attribute of <xsl:for-each select='//whatever'>
I tried it something like this:
Node articleSelect = XPathAPI.selectSingleNode(xslDOM, "//for-each");articleSelect.getAttributes().getNamedItem("select").setNodeValue("//article[@ArticleNr='" + articleNumber + "']");
However, articleSelect is always null so the second line throws an exception. I also tried "//xsl:for-each" and "//xsl:for-each[@select='//whatever']" and whatnot as the XPath expression, but still no luck... :(
Any thoughts or ideas will be greatly appreciated :)
Greetings,
ErikNever mind... the original post misteriously re-appeared :-)
-
XPath Expression won't evaluate
Hi,
I am using the ora:doc() function to read an xml and XPath to get extract particular values from it. The issue is that the XPath expression doesnt evaluate correctly on Oracle BPEL process manager where as the same expression is being evaluated correctly in XMLSPY with XPath 1.0.
The XML that I am trying to read is of the format
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2006 U (http://www.altova.com)-->
<n:CHNotification xmlns:n="http://www.example.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.org
C:\OraBPELPM_1\integration\jdev\jdev\mywork\BPELWorkspace\testXML\CallHomeNotification.xsd">
<Notification id="String">
<n:mailto>String</n:mailto>
<n:mailcc>String</n:mailcc>
<n:subject>String</n:subject>
<n:body>String</n:body>
<n:additionalbody>String</n:additionalbody>
</Notification>
<Notification id="String32432">
<n:mailto>String</n:mailto>
<n:mailcc>String</n:mailcc>
<n:subject>String</n:subject>
<n:body>String</n:body>
<n:additionalbody>String</n:additionalbody>
</Notification>
</n:CHNotification>
The function being used in OracleBPEL Process manager is
ora:doc('${server_url}/xmllib/notification.xml', //Notification[@id="String"]/n:mailto)
Can somebody please tell me where I could be going wrong?....It'll be a great help.
Thanks,
GunjanI have the same problem posted in the constants discussion
Hi
I am trying out the xml file solution. I have places an XML-file in the xmllib location. The file has the following content :
<?xml version="1.0" encoding="UTF-8">
<bpel-domain>
<preferences>
<property name="defaultRentepercentage"> 0.3 </property>
</preferences>
</bpel-domain>
In the Assign step in BPEL I do the following
orcl:lookup-xml('http://localhost:9700/orabpel/xmllib/trials-properties.xml', '/bpel-domain/preferences/property[@name="defaultRentepercentage"]')
The error I get when running this is the following
XPath expression failed to execute.
Error while processing xpath expression, the expression is "orcl:lookup-xml("http://localhost:9700/orabpel/xmllib/trials-properties.xml", "/bpel-domain/preferences/property[@name="defaultRentepercentage"]")", the reason is ExtFuncFunction.
Please verify the xpath query.
I have tried the xpath expression in XMLSpy, and there it seems to work
Am i missing something ? -
XPATH expression to get Array node
Hi
I have a problem with an XPATH expression in BPEL. I want to get to a particular node in the following result set ..
<return xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://com.quion.taken.services/ITakenService.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:Array" ns2:arrayType="ns3:com_quion_dto_taken_BouwnotaVoorraadDTO[2]">
<item xsi:type="ns3:com_quion_dto_taken_BouwnotaVoorraadDTO">
<begunstigde xsi:type="xsd:string">Sjoerd</begunstigde>
<datum xsi:type="xsd:dateTime">2005-10-31T23:00:00.000Z</datum>
<bedrag xsi:type="xsd:string">1000.0</bedrag>
<geldLeningId xsi:type="xsd:string">4.0</geldLeningId>
<rekeningnummer xsi:type="xsd:string">1234</rekeningnummer>
<notaId xsi:type="xsd:string">1.0</notaId>
</item>
<item xsi:type="ns3:com_quion_dto_taken_BouwnotaVoorraadDTO">
<begunstigde xsi:type="xsd:string">Laszlo</begunstigde>
<datum xsi:type="xsd:dateTime">2005-10-31T23:00:00.000Z</datum>
<bedrag xsi:type="xsd:string">1.0</bedrag>
<geldLeningId xsi:type="xsd:string">4.0</geldLeningId>
<rekeningnummer xsi:type="xsd:string">5678</rekeningnummer>
<notaId xsi:type="xsd:string">2.0</notaId>
</item>
</return>
The first thing is that my variable in BPEL does not show the ïtem"level", it shows for example 'return/notaId'.
However I can get to the second node by keying in
EXPRESSION 1:
bpws:getVariableData('invokeGetBouwnotaVoorraadVoorLening_getBouwnotaVoorraadVoorLening_OutputVariable','return','/return/item[1]/notaId')
No I want to dynamically determine the particular node instance. I do this as follows [copied from the Array sample]:
EXPRESSION 2:
bpws:getVariableData('invokeGetBouwnotaVoorraadVoorLening_getBouwnotaVoorraadVoorLening_OutputVariable','return','/return/item[', bpws:getVariableData('i'),']/notaId')
BPEL throws the following error
assignNotaId (faulted)
[2005/11/09 09:49:36] Updated variable "invokeTaskManager_initiateTask_InputVariable" More...
<invokeTaskManager_initiateTask_InputVariable>
<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
<task xmlns="http://services.oracle.com/bpel/task">
<taskId />
<title />
<creationDate />
<creator />
<modifyDate />
<modifier />
<assignee>jstein</assignee>
<status />
<expired />
<expirationDate />
<duration />
<priority />
<template />
<customKey />
<conclusion />
<attachment />
</task>
</part>
</invokeTaskManager_initiateTask_InputVariable>
[2005/11/09 09:49:36] Error in evaluate <from> expression at line "172". The result is empty for the XPath expression : "bpws:getVariableData('invokeGetBouwnotaVoorraadVoorLening_getBouwnotaVoorraadVoorLening_OutputVariable','return','/return/item[', bpws:getVariableData('i'),']/notaId')".
[2005/11/09 09:49:36] "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown. less
<selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
<part name="summary">
<summary>empty variable/expression result. xpath variable/expression expression "bpws:getVariableData('invokeGetBouwnotaVoorraadVoorLening_getBouwnotaVoorraadVoorLening_OutputVariable','return','/return/item[', bpws:getVariableData('i'),']/notaId')" is empty at line 172, when attempting reading/copying it. Please make sure the variable/expression result "bpws:getVariableData('invokeGetBouwnotaVoorraadVoorLening_getBouwnotaVoorraadVoorLening_OutputVariable','return','/return/item[', bpws:getVariableData('i'),']/notaId')" is not empty.</summary>
What is wrong with my expression 2?
Thanks
Jan WillemThis Example works fine for arrays that are part of a WSDL message.
But in 10.1.3.1 this does not work with a array that is part of an XSD declaration
for Example XSD snippet
<xsd:element name="itemList">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="1" ref="tns:Item" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
using the following in assign statement
<copy>
<from expression="concat('/ns9:itemList/ns9:Item[',string(bpws:getVariableData('index')),']')"/>
<to variable="idxXpath"/>
</copy>
<copy>
<from expression="bpws:getVariableData('OutputItemList',bpws:getVariableData('idxXpath'))"/>
<to variable="idx_item"/>
</copy>
gives a compiler error that is
Error(176):
[Error ORABPEL-10085]: invalid argument
[Description]: in line 176 of "D:\OnlineShopping_1\bpel\OnlineShopping.bpel", the second argument "bpws:getVariableData("idxXpath")" for getVariableData is not a literal expression.
[Potential fix]: Please correct the second argument, you might need to escape using single quote or " to make it literal.
Can anyone site the reason for the same or a possible solution?
Message was edited by:
user607972 -
Assigning JMS message in BPEL: The result is empty for the XPath expression
Hi,
My project, an Oracle BPEL 11g project, is reading an XML payload from a JMS queue. I would like to transform the message and assign the elements of the messages to other variables. But when I am doing that in the "assign" step, it raises an error: Error in evaluate <from> expression at line "63". The result is empty for the XPath expression : "/ns2:publishProject/payload/Message".
Even though I can see the message payload in the Audit with all the values.
To me it looks like a name space issue, but I could not find out how to correct it. Any hint will be a big help. Please let me know if you want to check the .xsd for the message.I publish a JMS message to a topic in one BPEL process and have another BPEL process read from the topic and start the flow. The problem I have is that the first process is writing fine to the topic, but the second process seems to be reading twice. I am seeing two instances of the second process in em.
Can anyone help? I am using JDev 11.1.1.1.0
Thanks
Maybe you are looking for
-
How to submit a concurrent request from a button in Selfservice
Hi, I hope this is the forum where to start. I want to submit a concurrent request when a button is pushed in selfservice. I've implementend the event for button in java and its woring fine, but how to submit a conurrent request in java? Can anyone h
-
11g presentation hierarchy - limit of levels?
Do you know of a limit on presentation hierarchy levels that can be displayed in OBIEE 11g analytics? I faced an drill issue in my project and was able to reproduced it with OBIEE Samples Virtual Box image. In particular case it's not possible to bro
-
Having major problems with iPod Shuffle, please help!!
Okay, I have a 2nd iPod shuffle and it just will not connect to my computer. I've used to adaptor that came with it and it worked once but I only added a couple of songs and I want to add more now but I can't! The light blinks orange 3-4 times and no
-
Time Machine restore is grayed out even after selecting a file
(step one) I used Migration Assistant to restore a 2009 27" iMac with my Time Machine backup from my 2009 24" iMac that crashed. (step two) I open Mail on the restored iMac, the inbox loads, my folders in "on my mac" are listed, but the email message
-
Converting single ASM to RAC ASM
How i can convert single ASM to RAC ASM?