Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3560

Pick up SQL result in the xPath Expression of a Branch Condition

$
0
0

Hello

 

I have create in B1IF a process that’s send the Delivery to a transporter organization as a XML file when on BP property 1 is ‘Y’ (checked).

In the first atom of my process the xForm atom gets de fields of the delivery.

The second atom created the SQL query for getting the value of BP property 1 (qrygroup1).

The third Atom, Branch Condition,  needs to check the value of qrygroup1 and after that the process will proceed by qrygroup1=’Y’ or ignore by qrygroup1=’N’.

Without the Branch Condition atom the process will work fine, but I don’t get the Branch Condition atom working.

 

In the sql Atom I have the SQL statement:

#select e_mail, qrygroup1 from ocrd where cardcode = '$CardCode'

 

I try to use the query result in my xPath Expression of the Branch Condition, like:

/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom2']/jdbc:ResultSet/jdbc:Row/jdbc:qrygroup1 = ‘Y’

 

(this gives the error: “xPath expression is not valid!

Error checking type of the expression 'funcall(local-name, [=(AbsoluteLocationPath(ParentLocationPath(ParentLocationPath(ParentLocationPath(ParentLocationPath(ParentLocationPath(step("child", 14), step("child", 15)), step("child", 17, pred(=(step("attribute", 16), literal-expr(atom5))))), step("child", 18)), step("child", 19)), step("child", 20))), literal-expr(Y))])'.”

 

Or

[/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom5']/jdbc:ResultSet/jdbc:Row/jdbc:qrygroup1=’Y’]

 

(this gives the error: “xPath expression is not valid!

: line 1: Required attribute 'select' is missing.”)

 

So, what is the correct way/syntax to do this?

 

regards


Viewing all articles
Browse latest Browse all 3560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>