Examples of Workflow


Examples of com.opensymphony.workflow.Workflow

    final List mockResult = new ArrayList();
    final MockControl ctl = createMockWorkflowControl();

    OsWorkflowTemplate template = new OsWorkflowTemplate() {
      protected Workflow createWorkflow(String caller) throws WorkflowException {
        Workflow workflow = (Workflow) ctl.getMock();

        workflow.setConfiguration(OsWorkflowTemplateTests.this.configuration);
        ctl.setVoidCallable();
        workflow.query(query);
        ctl.setReturnValue(mockResult);
        ctl.replay();

        return workflow;
      }
View Full Code Here

Examples of com.opensymphony.workflow.Workflow

  }

  private OsWorkflowTemplate createMockTemplateForDoAction(final MockControl ctl, final int actionId, final Map inputs) {
    return new OsWorkflowTemplate() {
      protected Workflow createWorkflow(String caller) throws WorkflowException {
        Workflow workflow = (Workflow) ctl.getMock();
        // check that configuration is set
        workflow.setConfiguration(OsWorkflowTemplateTests.this.configuration);

        // check that doAction is called as expected
        workflow.doAction(MOCK_INSTANCE_ID, actionId, inputs);
        ctl.replay();
        return workflow;
      }
    };
  }
View Full Code Here

Examples of com.opensymphony.workflow.Workflow

      protected Workflow createWorkflow(String caller) throws WorkflowException {

        // check that correct caller is passed in
        assertEquals("Caller is incorrect", CALLER, caller);

        Workflow workflow = (Workflow) control.getMock();

        // configuration is always set first
        workflow.setConfiguration(OsWorkflowTemplateTests.this.configuration);

        // expect the initialize call and return the mock instance id
        workflow.initialize(WAKE_UP, initialAction, inputs);
        control.setReturnValue(MOCK_INSTANCE_ID);

        control.replay();
        return workflow;
      }
View Full Code Here

Examples of com.psddev.cms.db.Workflow

                            } else {
                                String workflowState = ObjectUtils.to(String.class, originals.get("cms.workflow.currentState"));

                                if (workflowState != null) {
                                    Workflow workflow = Query.
                                            from(Workflow.class).
                                            where("contentTypes = ?", h.getState().get("objectType")).
                                            first();

                                    if (workflow != null) {
                                        for (WorkflowState s : workflow.getStates()) {
                                            if (workflowState.equals(s.getName())) {
                                                workflowState = s.getDisplayName();
                                                break;
                                            }
                                        }
View Full Code Here

Examples of com.twitter.ambrose.model.Workflow

   * @param scriptId scriptId of the running script
   * @param numJobsSucceeded how many jobs have succeeded
   */
  @Override
  public void launchCompletedNotification(String scriptId, int numJobsSucceeded) {
    Workflow workflow = new Workflow(scriptId, workflowVersion, jobs);
    try {
      outputStatsData(workflow);
    } catch (IOException e) {
      log.error("Exception outputting workflow", e);
    }
View Full Code Here

Examples of cu.repsystestbed.data.Workflow

    // create the algorithms
    EigenTrust repAlg = (EigenTrust) ReputationAlgorithm.getInstance("cu.repsystestbed.algorithms.examples.EigenTrust");
    RankbasedTrustAlg trustAlg = (RankbasedTrustAlg) TrustAlgorithm.getInstance("cu.repsystestbed.algorithms.examples.RankbasedTrustAlg");
   
    // create the work flow and add the items
    Workflow workflow = new Workflow();
    workflow.addItem(feedbackHistoryGraph);
    workflow.addItem(repAlg);
    workflow.addItem(repGraph);
    workflow.addItem(trustAlg);
    workflow.addItem(trustGraph);
   
    // notify the listener of the feedback history graph but in reality it should be the listeners of the first
    // graph in the workflow are notified.
    workflow.getFeedbackHistoryGraph().notifyObservers(false);
   
    this.workflow = workflow;
  }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.wf.Workflow

     * @throws ComponentRegistryException
     */
    public void testRemoveNode() throws ComponentException, GraphException,
            ComponentRegistryException {
        WorkflowCreator creator = new WorkflowCreator();
        Workflow workflow = creator.createSimpleMathWorkflow();
        Graph graph = workflow.getGraph();

        Node node = graph.getNode("Adder_add");
        assertNotNull(node);
        int originalSize = graph.getPorts().size();
        int portNum = node.getAllPorts().size();
View Full Code Here

Examples of eu.scape_project.planning.services.taverna.generator.model.Workflow

                + "<http://purl.org/DP/components#targetMimetype> \"" + targetMimetype + "\" ] .";
        }

        this.sourceMimetype = sourceMimetype;
        this.targetMimetype = targetMimetype;
        workflow = new Workflow(name, author, semanticAnnotations);
    }
View Full Code Here

Examples of gri.tasks.workflows.Workflow

  }

  public Map getWorkflowOutputs(String wkflId, String jobId) throws UnknownWorkflowException, UnknownJobException {
    WorkflowEntry entry = getWorkflowEntry(wkflId);

    Workflow wkfl = entry.getWorkflow();
    TaskStub task = wkfl.getTask(jobId);
   
    return task.getOutputs();
  }
View Full Code Here

Examples of kr.ac.kaist.swrc.jhannanum.hannanum.Workflow

        String chartMorphAnalyzerConf = "conf/plugin/MajorPlugin/MorphAnalyzer/ChartMorphAnalyzer.json";
        String hmmTaggerAnalyzerConf = "conf/plugin/MajorPlugin/PosTagger/HmmPosTagger.json";
        File wf = new File(WorkflowFactory.class.getProtectionDomain().getCodeSource().getLocation().getPath());
        String wfpath = wf.getParentFile().getPath();

        Workflow workflow = new Workflow(wfpath);
        workflow.appendPlainTextProcessor(new SentenceSegmentor(), null);
        workflow.appendPlainTextProcessor(new InformalSentenceFilter(), null);
        workflow.setMorphAnalyzer(new ChartMorphAnalyzer(), chartMorphAnalyzerConf);
        // TODO: Add workflow.setMorphUserDic(userDicFile);
        workflow.appendMorphemeProcessor(new UnknownProcessor(), null);

        switch (workflowFlag) {
            case WORKFLOW_HMM_POS_TAGGER_09:
                workflow.setPosTagger(new HMMTagger(), hmmTaggerAnalyzerConf);
                workflow.appendPosProcessor(new SimplePOSResult09(), null);
                break;
            case WORKFLOW_HMM_POS_TAGGER_22:
                workflow.setPosTagger(new HMMTagger(), hmmTaggerAnalyzerConf);
                workflow.appendPosProcessor(new SimplePOSResult22(), null);
                break;
            case WORKFLOW_MORPH_ANALYZER:
                break;
            case WORKFLOW_NOUN_EXTRACTOR:
                workflow.setPosTagger(new HMMTagger(), hmmTaggerAnalyzerConf);
                workflow.appendPosProcessor(new NounExtractor(), null);
                break;
        }
        return workflow;
    }
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.