Package org.activiti.bpmn.model

Examples of org.activiti.bpmn.model.FlowElement


  }

  public String getInitialValue(IDirectEditingContext context) {
    // return the current name of the EClass
    PictogramElement pe = context.getPictogramElement();
    FlowElement flowElement = (FlowElement) getBusinessObjectForPictogramElement(pe);
    return flowElement.getName();
  }
View Full Code Here


  }

  public void setValue(String value, IDirectEditingContext context) {
    // set the new name for the EClass
    PictogramElement pe = context.getPictogramElement();
    FlowElement flowElement = (FlowElement) getBusinessObjectForPictogramElement(pe);
    flowElement.setName(value);

    // Explicitly update the shape to display the new value in the diagram
    // Note, that this might not be necessary in future versions of the GFW
    // (currently in discussion)
View Full Code Here

  }

  private FlowElement getFlowElement(FlowElement flowElement) {
    Bpmn2MemoryModel model = ModelHandler.getModel(EcoreUtil.getURI(getDiagram()));
    for (Process process : model.getBpmnModel().getProcesses()) {
      FlowElement processElement = getFlowElementInProcess(flowElement, process.getFlowElements());
      if(processElement != null) return processElement;
    }
    return null;
  }
View Full Code Here

      if (element.getId().equals(flowElement.getId())) {
        return element;
      }
     
      if (element instanceof SubProcess) {
        FlowElement subFlowElement = getFlowElementInProcess(flowElement, ((SubProcess) element).getFlowElements());
        if(subFlowElement != null) return subFlowElement;
      }
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.activiti.bpmn.model.FlowElement

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.