Examples of BasicWorkFlow


Examples of com.opensymphony.workflow.basic.BasicWorkflow

      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n\r\n");

    Workflow wf = new BasicWorkflow((String) session.getAttribute("username"));
    long id = wf.createEntry("example");
    //out.println(id);
  wf.initialize(id, 1, null);
      out.write("\r\n\r\nNew workflow entry ");
      out.write("<a href=\"test.jsp?id=");
      out.print(id);
      out.write("\">#");
      out.print(id);
View Full Code Here

Examples of com.opensymphony.workflow.basic.BasicWorkflow

      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");

    Workflow wf = new BasicWorkflow((String) session.getAttribute("username"));

    long id = Long.parseLong(request.getParameter("id"));

    String doString = request.getParameter("do");
    if (doString != null && !doString.equals("")) {
        int action = Integer.parseInt(doString);
        wf.doAction(id, action, Collections.EMPTY_MAP);
    }


    int[] actions = wf.getAvailableActions(id);

    for (int i = 0; i < actions.length; i++) {
        String name = wf.getActionName("example", actions[i]);
              out.write("\r\n        ");
      out.write("<li> ");
      out.write("<a href=\"test.jsp?id=");
      out.print(id);
      out.write("&do=");
      out.print( actions[i] );
      out.write("\">");
      out.print( name );
      out.write("</a>\r\n        ");

    }
      out.write("\r\n\r\n");
      out.write("<hr>\r\n");
      out.write("<b>Permissions");
      out.write("</b>\r\n");
      out.write("<p>\r\n\r\n");

    List perms = wf.getSecurityPermissions(id);
    for (Iterator iterator = perms.iterator(); iterator.hasNext();) {
        String perm = (String) iterator.next();
      out.write("\r\n    ");
      out.write("<li>");
      out.print( perm );
View Full Code Here

Examples of com.opensymphony.workflow.basic.BasicWorkflow

  /**
   * Creates a <code>Workflow</code> for the supplied caller. The method acts as a hook
   * for subclasses that want to change the way the workflow is created.
   */
  protected Workflow createWorkflow(String caller) throws WorkflowException {
    return new BasicWorkflow(caller);
  }
View Full Code Here

Examples of com.opensymphony.workflow.basic.BasicWorkflow

     *
     * @return the unique workflow id
     */
    private long createWorkflow() throws InvalidRoleException,
            InvalidInputException, WorkflowException {
        this.osWorkflowInstance = new BasicWorkflow(this.caller);
        DefaultConfiguration config = new DefaultConfiguration();
        this.osWorkflowInstance.setConfiguration(config);
        long wfId = this.osWorkflowInstance.initialize(
                this.osWorkflowName, this.action, this.map);
        return wfId;
View Full Code Here

Examples of com.opensymphony.workflow.basic.BasicWorkflow

   
    AccessConstraintExceptionBuffer ceb = new AccessConstraintExceptionBuffer();
   
    try
    {
      Workflow workflowInit = new BasicWorkflow(infoGluePrincipal.getName());
     
      long id = workflowInit.initialize("MattiasWF", 1, new HashMap());
      logger.info("Workflow initialized....");
      logger.info("id:" + id);
      logger.info("name:" + workflowInit.getWorkflowName(id));
     
     
      Workflow workflow = workflowInit; //new BasicWorkflow(infoGluePrincipal.getName());
     
      int[] actions = workflow.getAvailableActions(id, null);
View Full Code Here

Examples of org.jamesii.gui.workflow.tutorials.BasicWorkflow

      @Override
      public void execute() {
        // show wizard
        Wizard wizard =
            new Wizard(getWindowManager().getMainWindow(), new BasicWorkflow());
        wizard.showWizard();
      }

    });
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

                .editUserAccount("translator")
                .clickEnabled()
                .saveUser()
                .logout();

        SignInPage signInPage = new BasicWorkFlow()
                .goToHome()
                .clickSignInLink()
                .enterUsername("translator")
                .enterPassword("translator")
                .clickSignInExpectError();
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void abortCreate() throws Exception {
        String abortName = "aborttmtest";
        String abortDescription = "abort tm description";

        TranslationMemoryPage translationMemoryPage = new BasicWorkFlow()
                .goToHome()
                .goToAdministration()
                .goToTranslationMemoryPage()
                .clickCreateNew()
                .enterMemoryID(abortName)
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

    @Feature(summary = "The user can search for a project",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void successfulProjectSearchAndDisplay() throws Exception {
        BasePage basePage = new BasicWorkFlow()
                .goToHome()
                .enterSearch("about")
                .waitForSearchListContains("about fedora");

        assertThat(basePage.getProjectSearchAutocompleteItems())
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

    @Feature(summary = "The system will provide no results on an " +
            "unsuccessful search",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void unsuccessfulProjectSearch() throws Exception {
        ProjectsPage projectsPage = new BasicWorkFlow()
                .goToHome()
                .enterSearch("arodef")
                .waitForSearchListContains("Search Zanata for 'arodef'")
                .submitSearch();
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.