boolean isSimulate = instance instanceof SimulatorProcessInstance;
super.afterComplete(instance);
if (getReceiverRole() != null && !isSimulate) {
RoleMapping receivers = getReceiverRole().getMapping(instance);
if (receivers != null) {
receivers.setDispatchingOption(Role.DISPATCHINGOPTION_RECEIVE);
instance.putRoleMapping("receiver_" + getTracingTag(), receivers);
}
}
}