Package helma.util

Examples of helma.util.MarkdownProcessor$BaseElement


        tokenEntity.signal();
      }
     
    }
    else{
      BaseElement baseElement=processDefinition.getDefinitions().getElement(nodeId);
      if(baseElement instanceof BoundaryEvent){
        BoundaryEvent boundaryEvent=(BoundaryEvent)baseElement;
        Activity activity =boundaryEvent.getAttachedToRef();
       
        //String nodeTokenId = this.getId();
View Full Code Here


              minX=bpmnShape.getBounds().getX();
           
            }
          }
         
          BaseElement bpmnElement=getBaseElement(bpmnShape.getBpmnElement());
       
         
         
          if(bpmnElement==null){
            continue;
          }
         
       
         
          if (bpmnElement instanceof StartEvent) {
           
            String startEventSVG = startEventToSVG(bpmnShape);
            svg.addChildren(startEventSVG);

          }
          if (bpmnElement instanceof EndEvent) {
            String endEventSVG = endEventToSVG(bpmnShape);
            svg.addChildren(endEventSVG);

          }
         
          if (bpmnElement instanceof IntermediateCatchEventBehavior) {
            String intermediateTimerEventSVG = intermediateTimerEventToSVG(bpmnShape);
            svg.addChildren(intermediateTimerEventSVG);
           
          }
         

          if (bpmnElement instanceof Task) {

            String taskSVG = taskToSVG(bpmnShape);
            svg.addChildren(taskSVG);

          }
         
          if (bpmnElement instanceof CallActivity) {

            String taskSVG = callActivityToSVG(bpmnShape);
            svg.addChildren(taskSVG);

          }

          if (bpmnElement instanceof Gateway) {
            String gatewaySVG = gatewayToSVG(bpmnShape);
            svg.addChildren(gatewaySVG);
          }
         
          if(bpmnElement instanceof Lane)
          {
            String laneSVG = laneToSVG(bpmnShape);
            svg.addChildren(laneSVG);
          }
         
          if(bpmnElement instanceof Participant)
          {
            String laneSVG = participantToSVG(bpmnShape);
            svg.addChildren(laneSVG);
          }
         
         
         
          if(bpmnElement instanceof SubProcess)
          {
            String subProcessSVG = subProcessToSVG(bpmnShape);
            svg.addChildren(subProcessSVG);
          }
          if(bpmnElement instanceof Group)
          {
            String subProcessSVG = groupToSVG(bpmnShape,bpmnElement);
            svg.addChildren(subProcessSVG);
          }
          if(bpmnElement instanceof DataObject)
          {
            String dataObjectSVG= dataObjectToSVG(bpmnShape,bpmnElement);
            svg.addChildren(dataObjectSVG);
          }
          //DataStoreReference  //DataInput  //DataOutput  //Message
          if(bpmnElement instanceof DataStoreReference)
          {
            String dataStoreReferenceSVG= dataStoreReferenceToSVG(bpmnShape,bpmnElement);
            svg.addChildren(dataStoreReferenceSVG);
          }
          if(bpmnElement instanceof DataInput)
          {
            String dataInputSVG= dataInputToSVG(bpmnShape,bpmnElement);
            svg.addChildren(dataInputSVG);
          }
          if(bpmnElement instanceof DataOutput)
          {
            String dataOutputSVG= dataOutputToSVG(bpmnShape,bpmnElement);
            svg.addChildren(dataOutputSVG);
          }
          if(bpmnElement instanceof Message)
          {
            String messageSVG= messageToSVG(bpmnShape,bpmnElement);
            svg.addChildren(messageSVG);
          }
         
         
          if(bpmnElement instanceof TextAnnotation)
          {
            String messageSVG= textAnnotationToSVG(bpmnShape,bpmnElement);
            svg.addChildren(messageSVG);
          }
         
         
          if(bpmnElement instanceof BoundaryEvent)
          {
            String messageSVG= boundaryEventToSVG(bpmnShape,bpmnElement);
            svg.addChildren(messageSVG);
          }
         
         
         
         
        }
        if (diagramElement instanceof BPMNEdge) {
          BPMNEdge bpmnEdge = (BPMNEdge) diagramElement;
         
          List<Point> pointList = bpmnEdge.getWaypoint();
          for (Point point : pointList) {
           
           
            if(point.getX()>maxX)
            {
              maxX=point.getX();
           
            }
            if(point.getY()>maxY)
            {
              maxY=point.getY();
            }
 
          }
          BaseElement bpmnElement=getBaseElement(bpmnEdge.getBpmnElement());
          if (bpmnElement instanceof SequenceFlow) {
            String sequenceFlowSVG = sequenceFlowToSVG(bpmnEdge);
            svg.addEdge(sequenceFlowSVG);
          }
          if (bpmnElement instanceof Association) {
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

  public static BPMNShape getBpmnShape(Definitions definitions,String elementId){
    List<DiagramElement> diagramElements=definitions.getDiagrams().get(0).getPlane().getPlaneElement();
    for (DiagramElement diagramElement : diagramElements) {
      if(diagramElement instanceof BPMNShape){
        BPMNShape bpmnShape = (BPMNShape) diagramElement;
        BaseElement bpmnElement=getBaseElement((DefinitionsBehavior)definitions,bpmnShape.getBpmnElement());
        if(bpmnElement==null){
          continue;
        }
        if(elementId.equals(bpmnElement.getId())){
          return bpmnShape;
        }
      }
    }
    return null;
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

        if (diagramElement instanceof BPMNShape) {
          BPMNShapeImpl bpmnShape = (BPMNShapeImpl) diagramElement;
          org.eclipse.emf.ecore.impl.BasicEObjectImpl sssBaseElementImpl=(org.eclipse.emf.ecore.impl.BasicEObjectImpl)bpmnShape.getBpmnElement();
         
          String idString=sssBaseElementImpl.eProxyURI().fragment();
          BaseElement dd=((DefinitionsBehavior)myWeb).getElement(idString);
         
          if (bpmnShape.getBounds().getX() + bpmnShape.getBounds().getWidth() > maxX) {
            maxX = bpmnShape.getBounds().getX() + bpmnShape.getBounds().getWidth();

          }
View Full Code Here

    //救活它。。
    token.setEndTime(null);
    //获取流程定义
    ProcessDefinitionBehavior processDefinition=processInstance.getProcessDefinition();
    //获取指定的节点
    BaseElement baseElement=processDefinition.getDefinitions().getElement(nodeId);
    if(baseElement instanceof FlowNode){
     
      FlowNode flowNode= (FlowNode)baseElement;
      ExecutionContext executionContext=ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(token);
      //让令牌进入节点开始走流程
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setSourceRef(BaseElement newSourceRef) {
        BaseElement oldSourceRef = sourceRef;
        sourceRef = newSourceRef;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.ASSOCIATION__SOURCE_REF, oldSourceRef, sourceRef));
    }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setTargetRef(BaseElement newTargetRef) {
        BaseElement oldTargetRef = targetRef;
        targetRef = newTargetRef;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    Bpmn2Package.ASSOCIATION__TARGET_REF, oldTargetRef, targetRef));
    }
View Full Code Here

          }

          private void createNewProperty(final EObject baseElement, final EReference eReference) {
            Object eGet = baseElement.eGet(eReference);
            if (value instanceof BaseElement) {
              BaseElement e = ((BaseElement) value);
              if (e.getId() == null) {
//                e.setId(EcoreUtil.generateUUID());
                ModelUtil.setID(e,baseElement.eResource());
              }
            }
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.