FORUMS


Discussion about Intalio|BPP Community Edition.


Back to Intalio|BPMS 5.2.1 (0 viewing) 
Go to bottom Favoured: 0
TOPIC: Re:Xpath issue in AJAX Form
Jun 22, 2009 9:25 am
suhail.ahmed (User)
30 posts
Junior Boarder

Karma: 0  
HI Every One,


I am facing issue with Xpath, for auto generation of string, i am xpath function,

when initiate the process by pressing start process it will show

Error sending to tempo.

and my xpath errors is


Code: :

  Namespace:      http://docs.oasis-open.org/wsbpel/2.0/process/executable Name:     selectionFailure Explanation:     An exception occured while evaluating "{OXPath10Expression concat("Test", ora:returnstatic())}"Error while executing an XPath expressionnet.sf.saxon.trans.XPathExceptionXPath syntax error at char 33 in {...at("Test"ora:returnstatic...}: Cannot find a matching 0-argument function named {java:com.example.xpath.GetStatic}returnstatic() Line number:     196 Aiid:     52




How can i solve this issuse, some idea or suggestion???


Thanks in advance

Suhail Ahmed
 
 
Suhail Ahmed
  The administrator has disabled public write access.
Jun 22, 2009 4:37 pm
Antoine (Admin)
2748 posts
Admin

Karma: 56  
ora:returnstatic() sounds like an Oracle specific XPath function.

We don't support such functions.

Thanks,

Antoine
 
 
Intalio, The Enterprise Cloud Company
www.intalio.com
  The administrator has disabled public write access.
Jun 23, 2009 7:13 am
suhail.ahmed (User)
30 posts
Junior Boarder

Karma: 0  
Hi,

Thank you Antoine for reply,


but its the name only, but it should match, like valx,


if i am doing wrong just explain me
what is difference between valx and ora... or some other key words are there????

and this my xpath coding

Code: :

  <div1 id="Custom function" xmlns:ora="java:com.example.xpath.GetStatic"> <head>custom functions Return static</head> <div2 id="func-return-static">         <head>ora:returnstatic</head>     <example role="signature">         <proto name="returnstatic" return-type="xs:int" returnEmptyOk="no" returnSeq="no"                 returnVaries="no" isSchema="yes" isDatatype="no" isSpecial="no" isOp="no">             <arg name="arg1" type="xs:any" emptyOk="no"/>                    </proto>     </example>     <p>This function generates status for particular day</p> </div2> </div1>




Regards
 
 
Suhail Ahmed
  The administrator has disabled public write access.
Jun 23, 2009 3:19 pm
Antoine (Admin)
2748 posts
Admin

Karma: 56  
I don't understand what you mean by valx. If I understand correctly, you defined a custom XPath operation. Did you define this operation on the server as well, by dragging its jar to the appropriate folder ?

Thanks,

Antoine
 
 
Intalio, The Enterprise Cloud Company
www.intalio.com
  The administrator has disabled public write access.
Jun 23, 2009 4:02 pm
suhail.ahmed (User)
30 posts
Junior Boarder

Karma: 0  
HI Antoine,

<div1 id="Custom function" xmlns:ora="java:com.example.xpath.GetStatic">

this is define a custom x function,

you said to that ora is for oracle specific path...

if i define as


<div1 id="Custom function" xmlns:valx="java:com.example.xpath.GetStatic">

this for specific for some thing???

That is Question, if you know about this, i can just draw from you...




Thanks
 
 
Last Edit: 2009/06/23 16:02 By suhail.ahmed.
 
Suhail Ahmed
  The administrator has disabled public write access.
Jun 23, 2009 4:07 pm
Antoine (Admin)
2748 posts
Admin

Karma: 56  
No, the ora prefix is not reserved, you should be fine using it.

OK, I found the problem. The function you defined needs a non-null argument:
Code: :

  <arg name="arg1" type="xs:any" emptyOk="no"/>  



but when using it, you used it without arguments:
concat("Test", ora:returnstatic())

Please make sure you give an argument to the function or define it with an optional argument so that the XPath engine can find it.

Thanks,

Antoine
 
 
Intalio, The Enterprise Cloud Company
www.intalio.com
  The administrator has disabled public write access.
Jul 4, 2009 6:50 am
suhail.ahmed (User)
30 posts
Junior Boarder

Karma: 0  
HI Antoine,





Thanks for reply... Your suggestion to solution was good, i got thing to be done thanks







Thanks
 
 
Suhail Ahmed
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Upcoming Trainings

More Trainings...

Upcoming Webinars

More Webinars...

Top Posters

Last 30 days

  • Antoine (138)
  • himar.rodriguez (9)
  • german.santana (8)
  • kevin.fernandez (8)
  • ddd.m123 (8)
  • lars.roediger (6)
  • gayatri.chandak (5)
  • jal1967 (5)
  • rune.lindvig (4)
  • iakovos.karakas (4)

All time

  • Antoine (2748)
  • Shivanand (1194)
  • cshekhar (933)
  • psq (797)
  • metabyte (415)
  • jag (393)
  • dfrench (367)
  • arnaud (329)
  • jalateras (325)
  • talita.pezzi (253)

Show last 4 hrs - 12 hrs - 24 hrs

Copyright © Intalio, 1999-2010.