cancel
Showing results for 
Search instead for 
Did you mean: 

Error in NW BPM switch step

Former Member
0 Kudos

Hello Experts,

I have designed a scenario wherein I am receiving a sync message via WS (SOAP to BPM as first step). BPM then makes a sync call to external WS to fetch the response. The response string is then expected to pass through a switch step (from ccBPM) which is Exclusive Choice step where i have written the following condition to check the age of a person and I want to perform some activity if he is equal or older than 18.

numeric-greater-equal(integer(DO_Response/Age),18)

and a default condition set to true incase the age is below 18. If the condition of above 18 is true then we are posting to SAP system and the BPM is expected to give sync response back to user.

The first step is fetching the results correctly but the process is failing at Exclusive Choice step with no logical explanation. I tried debugging the process but gave the following exception

An internal error occurred during: "Connecting to debug...".

String index out of range: 40

The string that has been passed to Exclusive Chice step is number say 5 or 34 etc but still no idea why this error.

Any idea what could have went wrong.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Ur condition looks OK to me, and i doubt the error message which u are getting is only becoz of condition. Check below thread (subject is different but error which Udo was getting is very similar to what u are getting) and specially Jocelyn's last reply.

So instead of debugging BPM process in NWDS, try to check the logs generated in NWA (under BPM Monitoring)

Thanks

Amit Srivastava


Former Member
0 Kudos

Thanks Amit for your reply. It was really helpful. It was throwing NumberFormatException with an additional space.

But the strange part was there is no trim function available. I had to do a round-about to remove extra space at the end.

numeric-greater-equal

(integer(substring(DO_Response/Age,0,string-length(DO_Response/Age)-1)),18)

Regards

Answers (0)