(StateEnum state, final C context)
| 237 | } |
| 238 | |
| 239 | protected void doOnTerminate(StateEnum state, final C context) { |
| 240 | if (!context.isTerminated()) { |
| 241 | try { |
| 242 | if (isTrace()) |
| 243 | log.debug("terminating context {}", context); |
| 244 | |
| 245 | context.setTerminated(); |
| 246 | handlers.callOnFinalState(state, context); |
| 247 | } catch (Exception e) { |
| 248 | log.error("Execution Error in [whenTerminate] handler", e); |
| 249 | } |
| 250 | } |
| 251 | } |
| 252 | } |
no test coverage detected