Catch and handle exceptions in OutputParameter.execute()

Hello Folk’s,

Scenario

  • ExternalTask maps “${result.outputs.metrics.level}” to “level”
  • result.outputs.metrics.level will be created on completion (POST /external-task/{id}/complete)
  • timeout on task execution causes incident in jboss

Error

Process-Instance cannot be stopped because OutputParameter.execute() can’t read not existing result.outputs.metrics.level

Fix

catch exception and whrite null to result.outputs.metrics.level

Hello Nicole,

I didn’t get what is the problem.
You don’t know how to catch the exception or …? Could you please explain further.

Best regards,
Yana