Answered

How to validate a web service?

Hello,

I was wondering if it's possible to use the result of an interface call (web service) as part of a validation step without having to write it to the process?

Ex. Can I perform a validation without having to do this step:

/wPeFZX2LPbf6QAAAABJRU5ErkJggg==

Thanks!

Comments (6)

photo
1

Dear John,

Regarding your question, yes. It is possible. You can save the result of a Web Service method in a Bizagi attribute. You can trace the invocation of the Web Service. When configuring Web service invocations in Bizagi, you may rely on several features for error control and diagnostics.One of these features is the use of Traces whenever you detect there is an issue with the Web service invocation, and you wish to retrieve further detail.

For further information: http://help.bizagi.com/bpmsuite/en/index.html?studio_wstracing.htm and http://help.bizagi.com/bpmsuite/en/index.html?invokingsoap.htm

Best Regards

photo
1

Hello Juan,

I did not describe my question very well. I was actually wondering if there is a way to validate without having to save the result of a Web Service method in a Bizagi attribute.
I have attached a document that gives a better picture of what I'm asking.

Thanks!

photo
1

Also, in order to further describe what we are wanting to do, here is a screen shot of the code (sample code):

/8tLY6D7wqrbAAAAABJRU5ErkJggg==

photo
1

Dear John,

If I understand what you need, then in last step of the wizard, there is an option for catch errors. Bizagi presents an option to configure business error handling.This is especially useful in following two scenarios: when the response XML contains a Web service business error (for instance, messages such as "Customer's ID does not exist"), or when the modeled Process considers a different workflow transition if an error occurs.

In order to use the error handling, you specify which error message is thrown based on the possible scenarios of the invocation.

For the second scenario mentioned above, where another workflow transition is considered, it is required that the Service Task chosen has an attached Error Event.

In this example, no custom error handling is specified.

To view more information about Error handling options, refer to Interfaces Error handling.

soapwebservice06_error_zoom92

Click on Finish.

At this point, the Verify Available Vacation Days Service Task in the Vacation Request Process has been configured to invoke an external SOAP Web service.

Note that when clicking the Finish button, the interface will be automatically created (or updated) in the Systems module view (Modules view) of your Bizagi project. This means that this interface configuration parameters and authentication options can be reviewed or edited in the Systems module (see the next Additional Considerations section).

Regards

photo
1

Hello Juan,

I have attached another document that I think will perfectly describe my question.

Thank you very much for all of your help!

photo
1

Dear John,

Regarding the attached image, it is not possible. I´ve already understood what you need to do. Bizagi has a way to do something similar in a different way. It is using component libraries

The Component library provides the possibility to extend functionality in Bizagi, by allowing you to include bespoke code to be used in the logic behind of your processes.

You may register in the Component library, any number of components having custom code that is executed directly from Bizagi's business rules

We´re now sharing some articles from our Bizagi Help Site, which will give you some answers to your questions:

Regards