public static FlowElement getFlowElement(DelegateExecution execution) {
        BpmnModel bpmnModel = getBpmnModel(execution);
        FlowElement flowElement = bpmnModel.getFlowElement(execution.getCurrentActivityId());
        if (flowElement == null) {
            throw new ActivitiException("Could not find a FlowElement for activityId " + execution.getCurrentActivityId());
        }
        return flowElement;
    }
public static FlowElement getFlowElement ( DelegateExecution execution ) { BpmnModel bpmnModel = getBpmnModel ( execution ) ; FlowElement flowElement = bpmnModel . getFlowElement ( execution . getCurrentActivityId ( ) ) ; if ( flowElement == null ) { throw new ActivitiException ( "Could not find a FlowElement for activityId " + execution . getCurrentActivityId ( ) ) ; } return flowElement ; }
Returns the current {@link FlowElement} where the {@link DelegateExecution} is currently at.