How to catch ApiEntityNotFoundException
Through script task, I am calling this method - completeWorkflowTasks - which sits under WorkflowTaskApi. The method Throws ApiEntityNotFoundException - if workflow task does not exist.
I am not sure how to catch the exception. I am using try/catch block, but nothing happens.
try {
workflowTaskApi.completeWorkflowTasks(completeWorkflowTasksRequest)
}
catch(ApiEntityNotFoundException ex) {
loggerApi.info("Api Entity Not Found Exception")
}
The code works, however, on the GUI, a pop-up box appears with "Entity Not Found" title. I was thinking to use the catch block to suppress the pop-up box.
Am I missing something? Is there any class that I have to import?
Thanks.
Ali Khan
Posted 2 years ago · Edited 1 year ago
0 comments