Examples of history()


Examples of de.danet.an.workflow.apix.ExtActivity.history()

  // check events
  Thread.sleep (500);
  boolean noneToJ = false;
  boolean jToM = false;
  boolean mToNone = false;
  for (Iterator i = act.history().iterator (); i.hasNext ();) {
      WfAuditEvent evt = (WfAuditEvent)i.next ();
      if (evt instanceof WfAssignmentAuditEvent) {
    WfAssignmentAuditEvent ae = (WfAssignmentAuditEvent)evt;
    if (ae.oldResourceName() == null
        && ae.newResourceName().equals ("ML")
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.history()

  Thread.sleep(5000);

  // get first activity started automatically
  WfActivity a = actByName (process, "A21");
  // check audit event(s) of first activity
  Collection activityEvents = a.history();
  //displayAuditEvents(activityEvents);
  checkAuditEventsForActivity21(activityEvents);

  // get second activity not started automatically
  a = actByName (process, "A22");
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.history()

  checkAuditEventsForActivity21(activityEvents);

  // get second activity not started automatically
  a = actByName (process, "A22");
  // check audit event(s) of second activity
  activityEvents = a.history();
  //displayAuditEvents(activityEvents);
  checkAuditEventsForActivityA22(activityEvents);

  // check audit event(s) of process
  Collection processEvents = process.history();
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.history()

  process.start ();
  assertTrue (stateReached (process, "closed"));
  int hs = process.history().size ();
  for (Iterator i = process.steps().iterator(); i.hasNext ();) {
      WfActivity act = (WfActivity)i.next();
      hs += act.history().size();
  }
  assertTrue ("History size should be 4, is " + hs, hs == 4);
    }

    public void testClosedFilter () throws Exception {
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.history()

  process.start ();
  assertTrue (stateReached (process, "closed"));
  int hs = process.history().size ();
  for (Iterator i = process.steps().iterator(); i.hasNext ();) {
      WfActivity act = (WfActivity)i.next();
      hs += act.history().size();
  }
  assertTrue (hs == 1);
    }

    /* ********************************************************************* */
 
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.history()

                }
                if (eventSelection.equals("allEvents")) {
                    for (Iterator i = process().steps().iterator();
                         i.hasNext();) {
                        WfActivity act = (WfActivity)i.next();
                        for (Iterator j = act.history().iterator();
                            j.hasNext();) {
                            WfAuditEvent evt = (WfAuditEvent)j.next();
                            evtList.add(new EventWrapper(evt));                           
                        }
                    }
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.history()

                        }
                    }
                } else if (!eventSelection.equals("processEvents")) {
                    try {
                        WfActivity act=process().activityByKey(eventSelection);
                        for (Iterator j = act.history().iterator();
                            j.hasNext();) {
                            WfAuditEvent evt = (WfAuditEvent)j.next();
                            evtList.add(new EventWrapper(evt));                           
                        }
                    } catch (InvalidKeyException e) {
View Full Code Here

Examples of org.apache.kafka.clients.producer.MockProducer.history()

        Future<RecordMetadata> metadata = producer.send(record);
        assertTrue("Send should be immediately complete", metadata.isDone());
        assertFalse("Send should be successful", isError(metadata));
        assertEquals("Offset should be 0", 0, metadata.get().offset());
        assertEquals(topic, metadata.get().topic());
        assertEquals("We should have the record in our history", asList(record), producer.history());
        producer.clear();
        assertEquals("Clear should erase our history", 0, producer.history().size());
    }

    @Test
View Full Code Here

Examples of org.apache.kafka.clients.producer.MockProducer.history()

        assertFalse("Send should be successful", isError(metadata));
        assertEquals("Offset should be 0", 0, metadata.get().offset());
        assertEquals(topic, metadata.get().topic());
        assertEquals("We should have the record in our history", asList(record), producer.history());
        producer.clear();
        assertEquals("Clear should erase our history", 0, producer.history().size());
    }

    @Test
    public void testManualCompletion() throws Exception {
        MockProducer producer = new MockProducer(false);
View Full Code Here

Examples of org.apache.maven.scm.provider.accurev.AccuRev.history()

                Stream diffStream = changelogStream;
                if ( changelogStream.isWorkspace() )
                {

                    workspaceHistory =
                        accurev.history( stream, Long.toString( fromTranId + 1 ), Long.toString( toTranId ), 0, false,
                                         false );

                    if ( workspaceHistory == null )
                    {
                        errorMessage.append( "history on workspace " + stream + " from " + fromTranId + 1 + " to "
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.