Package helma.util

Examples of helma.util.MarkdownProcessor$BaseElement


     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetPartitionElement(BaseElement newPartitionElement,
            NotificationChain msgs) {
        BaseElement oldPartitionElement = partitionElement;
        partitionElement = newPartitionElement;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.LANE__PARTITION_ELEMENT, oldPartitionElement, newPartitionElement);
            if (msgs == null)
View Full Code Here


     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setPartitionElementRef(BaseElement newPartitionElementRef) {
        BaseElement oldPartitionElementRef = partitionElementRef;
        partitionElementRef = newPartitionElementRef;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.LANE__PARTITION_ELEMENT_REF, oldPartitionElementRef,
                    partitionElementRef));
View Full Code Here

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.BASE_ELEMENT: {
            BaseElement baseElement = (BaseElement) theEObject;
            T result = caseBaseElement(baseElement);
            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
View Full Code Here

      processInstanceEntity.setStartAuthor(startAuthor);
      processInstanceEntity.getContextInstance().setTransientVariableMap(transientVariables);
      processInstanceEntity.getContextInstance().setVariableMap(variables);
 
      BaseElement baseElement=processDefinition.getDefinitions().getElement(nodeId);
     
      if(baseElement !=null){
        processInstanceEntity.start((FlowNode)baseElement);
      }
      else{
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setBpmnElement(BaseElement newBpmnElement) {
        BaseElement oldBpmnElement = bpmnElement;
        bpmnElement = newBpmnElement;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    BpmnDiPackage.BPMN_SHAPE__BPMN_ELEMENT, oldBpmnElement, bpmnElement));
    }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setBpmnElement(BaseElement newBpmnElement) {
        BaseElement oldBpmnElement = bpmnElement;
        bpmnElement = newBpmnElement;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    BpmnDiPackage.BPMN_PLANE__BPMN_ELEMENT, oldBpmnElement, bpmnElement));
    }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setBpmnElement(BaseElement newBpmnElement) {
        BaseElement oldBpmnElement = bpmnElement;
        bpmnElement = newBpmnElement;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    BpmnDiPackage.BPMN_EDGE__BPMN_ELEMENT, oldBpmnElement, bpmnElement));
    }
View Full Code Here

    for (BPMNDiagram bpmnDiagram : BPMNDiagramList) {
      for (DiagramElement diagramElement : bpmnDiagram.getPlane().getPlaneElement()) {
        if (diagramElement instanceof BPMNShape) {
          BPMNShape bpmnShape = (BPMNShape) diagramElement;
          Map<String, Object>  positionMap=new HashMap<String, Object>();
          BaseElement bpmnElement=getBaseElement(bpmnShape.getBpmnElement());
          if(bpmnElement==null){
            continue;
          }
          //判断如果是折叠起来的子流程,则将其所有的子元素的坐标替换成父元素的
          if(bpmnElement instanceof SubProcess){
            if(bpmnShape.isIsExpanded() == false){
              List<String> excludeNodeIds = null;
              excludeNodeIds = getExcluesElement((SubProcess)bpmnElement);
              tmpMap.put(bpmnElement.getId(), excludeNodeIds);
            }
          }
          float x=bpmnShape.getBounds().getX();
          float y=bpmnShape.getBounds().getY();
          float height=bpmnShape.getBounds().getHeight();
          float width=bpmnShape.getBounds().getWidth();
          //height,width,x,y
          positionMap.put("x",x);
          positionMap.put("y",y);
          positionMap.put("height",height);
          positionMap.put("width",width);
          positionInfo.put(bpmnElement.getId(), positionMap);
        }
        if (diagramElement instanceof BPMNEdge) {
          //BPMNEdge bpmnEdge = (BPMNEdge) diagramElement;
        }
       
View Full Code Here

    }
    if(baseElement.getId()==null){
      BasicEObjectImpl basicEObjectImpl=(BasicEObjectImpl)baseElement;
      if(basicEObjectImpl!=null&&basicEObjectImpl.eProxyURI()!=null){
        String elementId=basicEObjectImpl.eProxyURI().fragment();
        BaseElement bpmnElement=definitions.getElement(elementId);
        return bpmnElement;
      }
      else{
        return null;
      }
View Full Code Here

    for(DiagramElement diagram :  bpmnModel.getDiagrams().get(0).getPlane().getPlaneElement()){
      if(diagram instanceof BPMNShape){
        BPMNShape bpmnShape = (BPMNShape)diagram;
        String shapeId = bpmnShape.getId();
        String elementId = BpmnJsonConverterUtil.getElementIdFromShapeId(shapeId);
        BaseElement bpmnElement = BpmnModelUtil.getElement(bpmnModel,elementId,BaseElement.class);
        bpmnShape.setBpmnElement(bpmnElement);
      }
    }
    //生成线条元素
    readEdgeDI(edgeMap, sourceAndTargetMap, bpmnModel);
View Full Code Here

TOP

Related Classes of helma.util.MarkdownProcessor$BaseElement

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.