Throwing Exception from Java PX

I am relatively new to SDK and would like to know how an exception can be thrown from a Java Event PX. The below code in the try block fails with the error ” ActionResult code does not match result”:

return new EventActionResult (eventobject, new ActionResult(ActionResult.EXCEPTION, “Error message”));

Agile User Asked on December 13, 2020 in Software Development Kit (API).
Add Comment
1 Answer(s)

Able to throw exception as below:

return new EventActionResult(eventobject,
new ActionResult(ActionResult.EXCEPTION, new Exception(“Error Message”)));

Agile User Answered on January 18, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.