Examples of WftRegistryService


Examples of eu.planets_project.ifr.core.wee.api.wsinterface.WftRegistryService

  /**
   * Fetches the .java from the data registry and stores it within the WEE's temporary directory
   * @param QName
   */
  private static File fetchDataToTempDir(String QName) throws Exception{
    WftRegistryService wftRegistry = WftRegistryImpl.getInstance();
    byte[] data = wftRegistry.getWFTemplate(QName);
    FileUtil.writeFile(data, tempDir, QName.replace(".", "/")+".java");
    return FileUtil.getTempFile(QName, "java");
  }
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.wsinterface.WftRegistryService

          return "success";
    }
     
    //2) check if the workflow is available on the WEE Template registry
    String wfClass = eTypeExecPP.getWeeXMLConfig().getTemplate().getClazz();
    WftRegistryService wftRegistryService = WeeRemoteUtil.getInstance().getWeeRegistryService();
    if (wftRegistryService.getAllSupportedQNames().contains(wfClass)){
      eTypeExecPP.setTemplateAvailableInWftRegistry(true);
    }else{
      eTypeExecPP.setTemplateAvailableInWftRegistry(false);
      saveExpTypeBeanAndRedirectToExpStage(expBean.getID(), 2, eTypeExecPP);
          return "success";
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.wsinterface.WftRegistryService

     * Fetches the registered worfklow source file and extracts the Information that's located within the getDescription method for a given WFTemplate name
     * parses it and stores this information within the bean.
     */
    public void getWFDescriptionForTemplate(){
      ExpTypeExecutablePP eTypeExecPP = (ExpTypeExecutablePP)ExpTypeBackingBean.getExpTypeBean(AdminManagerImpl.EXECUTABLEPP);
      WftRegistryService wftRegistryService = WeeRemoteUtil.getInstance().getWeeRegistryService();
      try {
        byte[] bContent = wftRegistryService.getWFTemplate(eTypeExecPP.getWeeXMLConfig().getTemplate().getClazz());
        if(bContent!=null){
        String wfTemplateContent = new String(bContent);
        String sDescription = eTypeExecPP.helperParseDescription(wfTemplateContent);
        eTypeExecPP.setWFDescription(sDescription);
        }
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.wsinterface.WftRegistryService

          this.setWeeXMLConfigFileRef("empty");
          this.setXMLConfigFileProvided(true);
          this.setXMLConfigValid(true);
         
          //check if the template is still available on the wee system
          WftRegistryService wftRegistryService = WeeRemoteUtil.getInstance().getWeeRegistryService();
      if (wftRegistryService.getAllSupportedQNames().contains(storedConf.getTemplate().getClazz())){
        this.setTemplateAvailableInWftRegistry(true);
      }else{
        this.setTemplateAvailableInWftRegistry(false);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.