Collection<BoundaryEvent> boundaryEvents = element.getParentElement().getChildElementsByType(BoundaryEvent.class); Collection<BoundaryEvent> attachedBoundaryEvents = new ArrayList<BoundaryEvent>();
public B activityRef(String activityId) { Activity activity = modelInstance.getModelElementById(activityId); if (activity == null) { throw new BpmnModelException("Activity with id '" + activityId + "' does not exist"); } Event event = (Event) element.getParentElement(); if (activity.getParentElement() != event.getParentElement()) { throw new BpmnModelException("Activity with id '" + activityId + "' must be in the same scope as '" + event.getId() + "'"); } element.setActivity(activity); return myself; }
Collection<BoundaryEvent> boundaryEvents = element.getParentElement().getChildElementsByType(BoundaryEvent.class); Collection<BoundaryEvent> attachedBoundaryEvents = new ArrayList<BoundaryEvent>();
Collection<BoundaryEvent> boundaryEvents = element.getParentElement().getChildElementsByType(BoundaryEvent.class); Collection<BoundaryEvent> attachedBoundaryEvents = new ArrayList<BoundaryEvent>();
public B activityRef(String activityId) { Activity activity = modelInstance.getModelElementById(activityId); if (activity == null) { throw new BpmnModelException("Activity with id '" + activityId + "' does not exist"); } Event event = (Event) element.getParentElement(); if (activity.getParentElement() != event.getParentElement()) { throw new BpmnModelException("Activity with id '" + activityId + "' must be in the same scope as '" + event.getId() + "'"); } element.setActivity(activity); return myself; }
public B activityRef(String activityId) { Activity activity = modelInstance.getModelElementById(activityId); if (activity == null) { throw new BpmnModelException("Activity with id '" + activityId + "' does not exist"); } Event event = (Event) element.getParentElement(); if (activity.getParentElement() != event.getParentElement()) { throw new BpmnModelException("Activity with id '" + activityId + "' must be in the same scope as '" + event.getId() + "'"); } element.setActivity(activity); return myself; }