I want to handle exceptions occuring in an external java class. The class is called in a script step. Now I want to pass this to an Exception Start in the Process Model. Can I achive this?

Script Step:

 try {
        out.geoCodeResponse = geoCode.getXMLByGoogle(address);          
        } catch (Exception e) {
        // Pass exception to exception start
    }

Thanks for any help!

Edit: It just came accross my mind to set an ivy-variable error:Boolean and set a condition to choose a different process path in error case. But regardless this fact, is it possible to start an Ivy-Exception start from a try-catch-block?

asked 18.10.2013 at 11:01

Nikel%20Weis's gravatar image

Nikel Weis
(suspended)
accept rate: 57%

edited 18.10.2013 at 11:06


This is not possible on the Script Step at the moment. There are multiple feature requests open for this problem. See issues #23146, #22739, #17874.

As workaround you can use a PI process element. This element allows you to configure an exception element that is called if the PI code fails. The PI code itself must be written in Java as a PI bean.

link

answered 24.10.2013 at 17:16

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857
accept rate: 74%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×52

Asked: 18.10.2013 at 11:01

Seen: 1,489 times

Last updated: 24.10.2013 at 17:16