Hi Michael,
You can write something like
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.camunda.bpm.model.bpmn.instance.EndEvent;
public class MyDelegate implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
boolean isEndEvent = execution.getBpmnModelElementInstance() instanceof EndEvent;
}
}
Cheers,
Thorben