cancel
Showing results for 
Search instead for 
Did you mean: 

BP: Only continue when number of records is greater zero

Former Member
0 Kudos

Hi everybody!

In my business process I have a decision step which should end the process if a synchronous send step does not yield a result.

I thought this could be achieved using an XPATH syntax like so:


count(/p1:data/p1:records/p1:PKEY)

Using a container operation I assign the result of this count to a variable. However, this XPATH expression yields 0 - regardless of the number of records received. What am I doing wrong?

Regards, Joerg

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

it has to work but the xpath needs to be used <b>correctly:</b>

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hi,

Solved the problem myself. Unfortunately I couldn't get the XPATH right. So I just created a simple mapping which counts the number of records, added a transformation step to my BP and used the result in a condition step to end the process if the count was zero.

Thanx for the help, though!

Regards, Joerg