Пример #1
0
 protected DocumentBasePage startDefaultSerialWorkflow(
     DocumentBasePage filePage, final String username) {
   // start workflow
   SummaryTabSubPage summaryTabPage = filePage.getSummaryTab();
   summaryTabPage.startDefaultWorkflow();
   assertTrue(
       summaryTabPage
           .workflowTasksForm
           .getText()
           .contains("Please select some participants for the review"));
   // click on the workflow tab
   WorkflowTabSubPage workflowTab = filePage.getWorkflow();
   workflowTab.showGraphView();
   workflowTab.closeGraphView();
   workflowTab.addWorkflowReviewer(username);
   workflowTab.startWorkflow();
   summaryTabPage = filePage.getSummaryTab();
   assertTrue(summaryTabPage.workflowAlreadyStarted());
   return filePage;
 }
Пример #2
0
  protected DocumentBasePage startDefaultParallelWorkflow(DocumentBasePage filePage) {
    // start workflow
    SummaryTabSubPage summaryTabPage = filePage.getSummaryTab();
    summaryTabPage.startDefaultParallelWorkflow();
    assertTrue(
        summaryTabPage
            .workflowTasksForm
            .getText()
            .contains("Please select some participants for the review"));
    // click on the workflow tab
    WorkflowTabSubPage workflowTab = filePage.getWorkflow();
    workflowTab.showGraphView();
    workflowTab.closeGraphView();
    workflowTab.addParallelWorkflowReviewer(USER_JDOE);
    workflowTab.addParallelWorkflowReviewer(USER_JSMITH);
    workflowTab.addParallelWorkflowEndDate();
    workflowTab.startWorkflow();

    summaryTabPage = filePage.getSummaryTab();
    assertTrue(summaryTabPage.workflowAlreadyStarted());
    return filePage;
  }