コード例 #1
0
  @Test
  public void testGetWorkflowInstanceMetadata2() throws Exception {
    WorkflowInstance wf = (WorkflowInstance) fmc.getFirstPage().getPageWorkflows().get(0);

    assertThat(wf, is(not(Matchers.nullValue())));

    Metadata meta = fmc.getWorkflowInstanceMetadata(wf.getId());

    assertNotNull(meta);
  }
コード例 #2
0
  @Test
  public void testGetPages() throws Exception {

    Thread.sleep(3000);
    WorkflowInstancePage page = fmc.getFirstPage();

    assertNotNull(page);

    WorkflowInstancePage lastpage = fmc.getLastPage();

    assertNotNull(lastpage);

    WorkflowInstancePage nextpage = fmc.getNextPage(page);

    assertNotNull(nextpage);

    WorkflowInstancePage prevpage = fmc.getPrevPage(nextpage);

    assertNotNull(prevpage);
  }