Package com.founder.fix.fixflow.core.impl.bpmn.behavior

Examples of com.founder.fix.fixflow.core.impl.bpmn.behavior.DefinitionsBehavior


     */
    public String getName() {
      //改成读取默认引擎,不读context  by  ych
      Boolean booleanTemp=StringUtil.getBoolean(ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getInternationalizationConfig().getIsEnable());
      if(booleanTemp){
        DefinitionsBehavior definitionsBehavior=(DefinitionsBehavior) this.eResource().getContents().get(0).eContents().get(0);
          String processId=definitionsBehavior.getProcessId();
          String nameTemp=ResourcesUtil.getResourcesValue(processId, id);
          if(nameTemp==null){
            return name;
          }
          return nameTemp;
View Full Code Here


    public String getText() {
      Boolean booleanTemp=StringUtil.getBoolean(ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getInternationalizationConfig().getIsEnable());
     
     
      if(booleanTemp){
        DefinitionsBehavior definitionsBehavior=(DefinitionsBehavior) this.eResource().getContents().get(0).eContents().get(0);
          String processId=definitionsBehavior.getProcessId();
         
          String textTemp=ResourcesUtil.getResourcesValue(processId, id);
          if(textTemp==null){
            return text;
          }
View Full Code Here

      }
      ddddResource.load(input, null);
    } catch (Exception e) {
      throw new FixFlowException(ExceptionCode.EXCEPTION_DEFAULT,e);
    }
    DefinitionsBehavior definitions = (DefinitionsBehavior) ddddResource.getContents().get(0).eContents().get(0);
    definitions.setProcessId(processKey);
    return definitions;
  }
View Full Code Here

    } catch (IOException e) {
      // TODO Auto-generated catch block
      throw new FixFlowException("定义文件加载失败!", e);
    }

    DefinitionsBehavior definitions = (DefinitionsBehavior) ddddResource.getContents().get(0).eContents().get(0);

    ProcessDefinitionBehavior process = null;
    for (RootElement rootElement : definitions.getRootElements()) {
      if (rootElement instanceof ProcessDefinitionBehavior) {

        // ProcessDefinitionBehavior
        // processObj=(ProcessDefinitionBehavior)rootElement;
        // if(processObj.getProcessDefinitionKey().equals("")){
View Full Code Here

    if(processDefinitionId!=null)
      processDefinition = processDefinitionManager.findLatestProcessDefinitionById(processDefinitionId);
    else
      processDefinition = processDefinitionManager.findLatestProcessDefinitionByKey(processDefinitionKey);
     
    DefinitionsBehavior definitions = processDefinition.getDefinitions();
    Map<String, Map<String, Object>> positionInfo=new HashMap<String, Map<String,Object>>();
    this.definitions=definitions;
    List<BPMNDiagram> BPMNDiagramList = definitions.getDiagrams();
    Map<String,List<String>> tmpMap = new HashMap<String,List<String>>();
    for (BPMNDiagram bpmnDiagram : BPMNDiagramList) {
      for (DiagramElement diagramElement : bpmnDiagram.getPlane().getPlaneElement()) {
        if (diagramElement instanceof BPMNShape) {
          BPMNShape bpmnShape = (BPMNShape) diagramElement;
View Full Code Here

          }
          ddddResource.load(new ByteArrayInputStream(bytes), null);
        } catch (Exception e) {
          throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOAD_EXCEPTION, e);
        }
        DefinitionsBehavior definitions = (DefinitionsBehavior) ddddResource.getContents().get(0).eContents().get(0);
        definitions.setProcessId(processId);

        for (RootElement rootElement : definitions.getRootElements()) {
          if (rootElement instanceof ProcessDefinitionBehavior) {
            ProcessDefinitionBehavior processObj = (ProcessDefinitionBehavior) rootElement;
            if (processObj.getProcessDefinitionKey().equals(processKey)) {
              processDefinition = (ProcessDefinitionBehavior) rootElement;
              break;
View Full Code Here

     */
    public String getName() {
      Boolean booleanTemp=StringUtil.getBoolean(ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getInternationalizationConfig().getIsEnable());

      if(booleanTemp){
        DefinitionsBehavior definitionsBehavior=(DefinitionsBehavior) this.eResource().getContents().get(0).eContents().get(0);
          String processId=definitionsBehavior.getProcessId();
         
          String nameTemp=ResourcesUtil.getResourcesValue(processId, id);
          if(nameTemp==null){
            return name;
          }
View Full Code Here

     * @generated
     */
    public String getName() {
      Boolean booleanTemp=StringUtil.getBoolean(ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getInternationalizationConfig().getIsEnable());
      if(booleanTemp){
        DefinitionsBehavior definitionsBehavior=(DefinitionsBehavior) this.eResource().getContents().get(0).eContents().get(0);
          String processId=definitionsBehavior.getProcessId();
          String nameTemp=ResourcesUtil.getResourcesValue(processId, id);
          if(nameTemp==null){
            return name;
          }
          return nameTemp;
View Full Code Here

    public String getName() {
      Boolean booleanTemp=StringUtil.getBoolean(ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getInternationalizationConfig().getIsEnable());
     
     
      if(booleanTemp){
        DefinitionsBehavior definitionsBehavior=(DefinitionsBehavior) this.eResource().getContents().get(0).eContents().get(0);
          String processId=definitionsBehavior.getProcessId();
         
          String nameTemp=ResourcesUtil.getResourcesValue(processId, id);
          if(nameTemp==null){
            return name;
          }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.impl.bpmn.behavior.DefinitionsBehavior

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.