コード例 #1
0
  /* (non-Javadoc)
   * @see de.hpi.bpmn2_0.factory.AbstractBpmnFactory#createBpmnElement(org.oryxeditor.server.diagram.Shape, de.hpi.bpmn2_0.factory.BPMNElement)
   */
  @Override
  public BPMNElement createBpmnElement(Shape shape, BPMNElement parent)
      throws BpmnConverterException {
    ConversationLink link = this.createProcessElement(shape);
    ConversationLinkConnector conLink = this.createDiagramElement(shape);
    conLink.setConversationLinkRef(link);

    return new BPMNElement(conLink, link, shape.getResourceId());
  }
コード例 #2
0
  /* (non-Javadoc)
   * @see de.hpi.bpmn2_0.factory.AbstractBpmnFactory#createDiagramElement(org.oryxeditor.server.diagram.Shape)
   */
  @Override
  protected ConversationLinkConnector createDiagramElement(Shape shape) {
    ConversationLinkConnector conLink = new ConversationLinkConnector();
    conLink.setId(shape.getResourceId() + "_gui");

    conLink.setLabel(shape.getProperty("name"));
    // TODO: Label position

    this.setBendpoints(conLink, shape);

    return conLink;
  }