Examples of BoundaryEvent


Examples of org.eclipse.bpmn2.BoundaryEvent

    return reason;
  }

  @Override
  public boolean update(IUpdateContext context) {
    BoundaryEvent event = (BoundaryEvent) getBusinessObjectForPictogramElement(context.getPictogramElement());

    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;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.