Answered

Webservice business exception rule do not work on numbers?

Hi there,

I have a service activity in which I call a webservice. The webservice returns just a number. I gave a business exception to it: when the return value of the webservice is 44, then come out through an intermediate error event path.

But when the return value is 44, it do not come out there - simply continues on the happy path.

Is it possible that this do not work because the return value of the webservice is number, and the value we can type in in the wizard can be only a string, so 44 (number) is not equal to "44" (string) and the condition is not met?

thanks,

Laszlo

Best Answer
photo

Dear Laszlo,

Regarding your last question, sometimes, it is necessary to modify some methods of the the web service to work as you need. During these changes, you need to clean up some folders in order to update it in Bizagi. To do this, follow this article: http://kb.bizagi.com/Knowledgebase/Clean-cache-and-Temporary-folders-in-Bizagi

Regards

Comments (6)

photo
1

Sorry for the duplication. Server not responded within 15 minutes...

photo
1

It seems that no matter what condition I give, never comes out through the error event path and it is true for string-to-string comparisons too.

photo
1

Dear Laszlo,

In order to manage this exceptions, you need to follow this article: http://help.bizagi.com/bpm-suite/en/10.7/index.html?invoking_errorhandling.htm

If the problem is not resolved, please send us further information and some screenshots of the wizard.

We look forward to hearing from you

photo
1

Hi Juan,

Thanks for your answer. The problem finally solved - after several tests.

It seems that it is not enough to set up the webservice error handling and click on the Run button. Although it displays a short "Publishing..." popup window, in reality it do not publish (all?) changes.

When I explicitly publish the app by pressing the Publish button and after that the Run, the changes of the webservice error handling will take effect and it will work as it should be.

Laszlo

photo
1

Dear Laszlo,

Regarding your last question, sometimes, it is necessary to modify some methods of the the web service to work as you need. During these changes, you need to clean up some folders in order to update it in Bizagi. To do this, follow this article: http://kb.bizagi.com/Knowledgebase/Clean-cache-and-Temporary-folders-in-Bizagi

Regards

photo
1

Hi Juan,

Thanks for your fast answer!

The article related to .NET, but I use Java. The folders C:\Bizagi\Enterprise\Projects\* do not exists on my machine. So, I will use the Publish button when I made changes on webservice calls or error handlings.

Anyway, your answer helped me, so thanks again!

Laszlo