예제 #1
0
 public void initialize(ComponentContextProperties cc) throws ComponentExecutionException {
   cout = cc.getOutputConsole();
   try {
     processWorkingDirName =
         ArtifactManagerImpl.getInstance()
             .getProcessWorkingDirectory(cc.getFlowExecutionInstanceID());
   } catch (IOException e1) {
     throw new ComponentExecutionException(e1);
   }
   processWorkingDir = new File(processWorkingDirName);
   System.out.println("Process working dir name: " + processWorkingDir.getAbsolutePath());
   datasetid = Integer.parseInt(String.valueOf(cc.getProperty(DATA_INPUT_ID)));
 }
 public void initialize(ComponentContextProperties ccp)
     throws ComponentExecutionException, ComponentContextException {
   logger = ccp.getLogger();
   logger.info("here is the logger info " + this.getClass().getName());
 }