Package java.lang

Examples of java.lang.Runtime$SubProcess$SubOutputStream


        graphicInfo.getX(), graphicInfo.getY(),null);
    flowElementNode.put("childShapes", subProcessShapesArrayNode);
  }
 
  protected FlowElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) {
    SubProcess subProcess = Bpmn2Factory.eINSTANCE.createSubProcess();// SubProcess();
    JsonNode childShapesArray = elementNode.get(EDITOR_CHILD_SHAPES);
    processor.processJsonElements(childShapesArray, modelNode, subProcess, shapeMap,sourceAndTargetMap,model);
    return subProcess;
  }
View Full Code Here


  protected String getStencilId(FlowElement flowElement) {
    return STENCIL_EVENT_SUB_PROCESS;
  }

  protected void convertElementToJson(ObjectNode propertiesNode, FlowElement flowElement) {
    SubProcess subProcess = (SubProcess) flowElement;
    propertiesNode.put("activitytype", "Event-Sub-Process");
    propertiesNode.put("subprocesstype", "Embedded");
    ArrayNode subProcessShapesArrayNode = objectMapper.createArrayNode();
    Bounds graphicInfo = BpmnModelUtil.getBpmnShape(model, flowElement.getId()).getBounds();
    processor.processFlowElements(subProcess.getFlowElements(), model, subProcessShapesArrayNode,
        graphicInfo.getX() + subProcessX, graphicInfo.getY() + subProcessY,null);
    flowElementNode.put("childShapes", subProcessShapesArrayNode);
  }
View Full Code Here

        graphicInfo.getX() + subProcessX, graphicInfo.getY() + subProcessY,null);
    flowElementNode.put("childShapes", subProcessShapesArrayNode);
  }
 
  protected FlowElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) {
    SubProcess subProcess = Bpmn2Factory.eINSTANCE.createSubProcess();

    JsonNode childShapesArray = elementNode.get(EDITOR_CHILD_SHAPES);
    //processor.processJsonElements(childShapesArray, modelNode, subProcess, shapeMap);
    return subProcess;
  }
View Full Code Here

        if (element instanceof StartEvent) {

            outgoing = ((StartEvent) element).getOutgoing();
        } else if (element instanceof SubProcess) {
           
            SubProcess subProcess = ((SubProcess) element);
            outgoing = subProcess.getOutgoing();
        } else if (element instanceof Event) {
           
            outgoing = ((Event) element).getOutgoing();
        } else if (element instanceof Activity) {
View Full Code Here

          "Specialized type of sub-process that will have behavior controlled by transaction protocol");
    }

    @Override
    protected SubProcess createFlowElement(ICreateContext context) {
      SubProcess subProcess = ModelHandler.FACTORY.createTransaction();
      subProcess.setName("Transaction");
      return subProcess;
    }
View Full Code Here

  public IReason updateNeeded(IUpdateContext context) {
    Property triggerProperty = Graphiti.getPeService().getProperty(context.getPictogramElement(),
            TRIGGERED_BY_EVENT);
    if (triggerProperty == null)
      return Reason.createFalseReason();
    SubProcess process = (SubProcess) getBusinessObjectForPictogramElement(context.getPictogramElement());
    boolean changed = Boolean.parseBoolean(triggerProperty.getValue()) != process.isTriggeredByEvent();
    IReason reason = changed ? Reason.createTrueReason("Trigger property changed") : Reason.createFalseReason();
    return reason;
  }
View Full Code Here

    return reason;
  }

  @Override
  public boolean update(IUpdateContext context) {
    SubProcess process = (SubProcess) getBusinessObjectForPictogramElement(context.getPictogramElement());

    Graphiti.getPeService().setPropertyValue(context.getPictogramElement(), TRIGGERED_BY_EVENT,
            Boolean.toString(process.isTriggeredByEvent()));

    RoundedRectangle rectangle = (RoundedRectangle) Graphiti.getPeService()
            .getAllContainedPictogramElements(context.getPictogramElement()).iterator().next()
            .getGraphicsAlgorithm();
    LineStyle lineStyle = process.isTriggeredByEvent() ? LineStyle.DOT : LineStyle.SOLID;
    rectangle.setLineStyle(lineStyle);

    return true;
  }
View Full Code Here

      super(fp, "Expanded Sub-Process", "Inner activity");
    }

    @Override
    protected SubProcess createFlowElement(ICreateContext context) {
      SubProcess subProcess = ModelHandler.FACTORY.createSubProcess();
      subProcess.setName("SubProcess");
      subProcess.setTriggeredByEvent(false);
      return subProcess;
    }
View Full Code Here

  public PictogramElement add(IAddContext context) {

    int width = context.getWidth() > 0 ? context.getWidth() : 100;
    int height = context.getHeight() > 0 ? context.getHeight() : 100;

    SubProcess subprocess = (SubProcess) context.getNewObject();

    IGaService gaService = Graphiti.getGaService();
    IPeService peService = Graphiti.getPeService();

    ContainerShape containerShape = peService.createContainerShape(context.getTargetContainer(), true);
    Rectangle invisibleRect = gaService.createInvisibleRectangle(containerShape);

    gaService.setLocationAndSize(invisibleRect, context.getX(), context.getY(), width, height + 18);

    Shape rectShape = peService.createShape(containerShape, false);
    RoundedRectangle rect = gaService.createRoundedRectangle(rectShape, 5, 5);
       
    StyleUtil.applyBGStyle(rect, this);   

    gaService.setLocationAndSize(rect, 0, 0, width, height);
    decorateRect(rect);
    link(rectShape, subprocess);

    Rectangle box = gaService.createRectangle(rect);
    gaService.setLocationAndSize(box, 40, 80, 20, 20);
    box.setFilled(false);
    box.setForeground(manageColor(StyleUtil.CLASS_FOREGROUND));
    decorateBox(box);

    Shape textShape = peService.createShape(containerShape, false);
    MultiText text = gaService.createDefaultMultiText(getDiagram(), textShape, subprocess.getName());
    gaService.setLocationAndSize(text, 10, 10, 80, 80);
    text.setStyle(StyleUtil.getStyleForText(getDiagram()));
    text.setHorizontalAlignment(Orientation.ALIGNMENT_CENTER);
    text.setVerticalAlignment(Orientation.ALIGNMENT_TOP);
    text.getFont().setBold(true);
View Full Code Here

TOP

Related Classes of java.lang.Runtime$SubProcess$SubOutputStream

Copyright © 2018 www.massapicom. 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.