Graphiti.getPeService().setPropertyValue(context.getPictogramElement(), BOUNDARY_EVENT_CANCEL,
Boolean.toString(event.isCancelActivity()));
Ellipse ellipse = (Ellipse) context.getPictogramElement().getGraphicsAlgorithm();
Ellipse innerEllipse = (Ellipse) ellipse.getGraphicsAlgorithmChildren().get(0);
LineStyle lineStyle = event.isCancelActivity() ? LineStyle.SOLID : LineStyle.DASH;
ellipse.setLineStyle(lineStyle);
innerEllipse.setLineStyle(lineStyle);
return true;