Annotation businessProcessQualifier = new BusinessProcessLiteral(event.getProcessDefinition().getKey());
if (type == BusinessProcessEventType.TAKE) {
return new Annotation[] {businessProcessQualifier, new TakeTransitionLiteral(transitionName) };
}
if (type == BusinessProcessEventType.START_ACTIVITY) {
return new Annotation[] {businessProcessQualifier, new StartActivityLiteral(activityId) };
}
if (type == BusinessProcessEventType.END_ACTIVITY) {
return new Annotation[] {businessProcessQualifier, new EndActivityLiteral(activityId) };
}
return new Annotation[] {};