ActivityBehavior activityBehavior = activity.getActivityBehavior();
if (activityBehavior instanceof BoundaryEventActivityBehavior) {
try {
execution.executeActivity(activity);
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new ProcessEngineException("exception while sending signal for event subscription '" + eventSubscription + "':" + e.getMessage(), e);