MCPcopy Create free account
hub / github.com/Beh01der/EasyFlow / leave

Method leave

src/main/java/au/com/ds/ef/EasyFlow.java:207–224  ·  view source on GitHub ↗
(StateEnum state, final C context)

Source from the content-addressed store, hash-verified

205 }
206
207 private void leave(StateEnum state, final C context) {
208 if (context.isTerminated()) {
209 return;
210 }
211
212 try {
213 if (isTrace())
214 log.debug("when leave {} for {} <<<", state, context);
215
216 handlers.callOnStateLeaved(state, context);
217
218 if (isTrace())
219 log.debug("when leave {} for {} >>>", state, context);
220 } catch (Exception e) {
221 doOnError(new ExecutionError(state, null, e,
222 "Execution Error in [whenLeave] handler", context));
223 }
224 }
225
226 protected boolean isTrace() {
227 return trace;

Callers 1

runMethod · 0.95

Calls 4

isTraceMethod · 0.95
doOnErrorMethod · 0.95
isTerminatedMethod · 0.80
callOnStateLeavedMethod · 0.80

Tested by

no test coverage detected