Package de.danet.an.workflow.omgcore

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


  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

  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

  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

                }
                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

                        }
                    }
                } 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

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.