on 12-21-2016 5:59 AM
script.txtHi Experts,
I have a script in an integration flow, i am trying to throw an exception from script if condition is not met. But it is not working. Kindly help me in completing this.
Regards,
Vijay
Hello Vijay,
Can you please share your complete or snippet of Groovy script you have written.One which you have shared is not complete.
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hhi Sriprasad,
I have tried the same but it is failing with the below error message. Kindly help me in solving it.
javax.script.ScriptException: java.lang.Exception: java.lang.Exception: not valid@ line 25 in script.groovy, cause: java.lang.Exception: not valid
Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vijay ,
Could you please elaborate more on the issue you are facing.?
Do not see any issue with your script,except there is missing statement "return message;" in last line.
I am able to see custom exception raised from Integration Process.
Regards,
Sriprasad Shivaram Bhat.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.