Package be.isencia.passerelle.domain.cap

Examples of be.isencia.passerelle.domain.cap.Director


    try {
      sequencer.createBatchDirector();
    } catch (Exception e) {
      e.printStackTrace();
    }
    Director director = sequencer.getBatchDirector();
    // TODO QUICK HACK
//    SoleilEditorPaneFactory fact = new SoleilEditorPaneFactory();

//    IPasserelleQuery query = fact.createEditorPaneWithAuthorizer(director, application, application);
View Full Code Here


            try {
                if (StepType.ACTOR.equals(step.getType())
                        || useBossaNovaDirector) {
                    flow.setDirector(batch.getBatchDirector());
                } else {
                    Director dir = originalDirectors.get(step);
                    flow.setDirector(dir);
                }
                for (int i = 0; i < step.getIterationCount(); i++) {
                    BossaNovaData.getSingleton().getApplication().getTraceComponent().trace(
                            this.getBatchDirector(),
View Full Code Here

     * @throws Exception
     */
    public void createBatchDirector(Flow flow) throws Exception {
        if (batch.getBatchDirector() == null) {
            Workspace wspace = (flow == null) ? null : flow.workspace();
            Director director = DirectorFactory.createNewDirector(
                    (useNexusStorage) ? DirectorType.RECORDING
                    : DirectorType.SOLEILSTD, wspace);
            batch.setBatchDirector(director);
        }
        if (flow != null) {
View Full Code Here

            listener.executionFinished(null);
        }
    }

    public Director getBatchDirector() {
        Director result = batch.getBatchDirector();
        if (result == null) {
            try {
                createBatchDirector();
            } catch (Exception e) {
                return null;
View Full Code Here

    return parametersPanel;
  }
  private JPanel createDirectorPanel(){
    JPanel result = new JPanel(new BorderLayout());
    try {
      Director director = sequencer.createBatchDirector(DirectorType.SOLEILSTD);
      BossaNovaData.getSingleton().getApplication().renderDirectorCfgPanel(director, result);
    } catch (Exception e) {
      e.printStackTrace();
    }
    final JPanel buttonPanel = new JPanel();
View Full Code Here

  private DirectorFactory() {
    // DO NOT USE
  }
  public static Director createNewDirector(DirectorType dType, Workspace wspace) throws Exception {
    Director result = null;
    if (DirectorType.RECORDING.equals(dType)) {
      result = new RecordingDirector(wspace);
    } else if (DirectorType.SOLEILSTD.equals(dType)) {
      result = new BasicDirector(wspace);
    }
    // Added to avoid FindBugs bug JC Pret Jan 2011
    else
    {
      throw new IllegalArgumentException("Unknown director type");
    }
    // End JCP
    result.setClassName("Bossanova Director");
    Parameter directorParam = (Parameter) result.getAttribute("Properties File", Parameter.class);
    directorParam.setExpression(Configuration.getPasserelleConfDirectory() + "systemproperties.txt");
    return result;
  }
View Full Code Here

   * assign a clone of this director, using the method getBatchDirectorClone().
   * @return
   * @throws Exception
   */
  public Director createBatchDirector(DirectorType directorType) throws Exception {
    Director d = DirectorFactory.createNewDirector(directorType, WORKSPACE);
    batchDirector = d;
    return d;
  }
View Full Code Here

    batchDirector = d;
    return d;
  }
 
  public Director getBatchDirectorClone() throws CloneNotSupportedException {
    Director d = (Director) batchDirector.clone(WORKSPACE);
    // batch directors should not appear in the cfg panels
    // GenericHMI.showModelForm(...) checks for the presence of this attribute.
    // when present : cfg panel is not created
    try {
      new Attribute(d,"__not_configurable");
View Full Code Here

  private DirectorFactory() {
    // DO NOT USE
  }
  public static Director createNewDirector(DirectorType dType, Workspace wspace) throws Exception {
    Director result = null;
    if (DirectorType.RECORDING.equals(dType)) {
      result = new RecordingDirector(wspace);
    } else if (DirectorType.SOLEILSTD.equals(dType)) {
      result = new BasicDirector(wspace);
    }
    result.setClassName("Bossanova Director");
    Parameter directorParam = (Parameter) result.getAttribute("Properties File", Parameter.class);
    directorParam.setExpression(Configuration.getPasserelleConfDirectory() + "systemproperties.txt");
    return result;
  }
View Full Code Here

            try {
                if (StepType.ACTOR.equals(step.getType())
                        || useBossaNovaDirector) {
                    flow.setDirector(batch.getBatchDirector());
                } else {
                    Director dir = originalDirectors.get(step);
                    flow.setDirector(dir);
                }
                for (int i = 0; i < step.getIterationCount(); i++) {
                    BossaNovaReferentComponent.getSingleton().getApplication().getTraceComponent().trace(
                            this.getBatchDirector(),
View Full Code Here

TOP

Related Classes of be.isencia.passerelle.domain.cap.Director

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.