Examples of addEvent()


Examples of org.gudy.azureus2.core3.util.Timer.addEvent()

             
              event.cancel();
            }
           
            event =
              timer.addEvent(
                  now + idle_dispatch_time,
                  new TimerEventPerformer()
                  {
                    public void
                    perform(
View Full Code Here

Examples of org.gudy.azureus2.core3.util.Timer.addEvent()

                event  = null;
               
              }else{
               
                event =
                  timer.addEvent(
                      now + idle_dispatch_time,
                      new TimerEventPerformer()
                      {
                        public void
                        perform(
View Full Code Here

Examples of org.jbpm.graph.def.Node.addEvent()

  public void testWriteNodeEvents() throws Exception {
    ProcessDefinition processDefinition = new ProcessDefinition();
    Node node = new Node("n");
    processDefinition.addNode(node);
    node.addEvent(new Event("one"));
    node.addEvent(new Event("two"));
    node.addEvent(new Event("three"));
    printXml(processDefinition);
    Element element = toXmlAndParse( processDefinition, "/process-definition/node" );
    assertNotNull(element);
View Full Code Here

Examples of org.jbpm.graph.def.ProcessDefinition.addEvent()

  }

  public void testWriteProcessDefinitionAction() throws Exception {
    ProcessDefinition processDefinition = new ProcessDefinition();
    Event event = new Event("node-enter");
    processDefinition.addEvent(event);
    event.addAction(new Action(new Delegation("one")));
    event.addAction(new Action(new Delegation("two")));
    event.addAction(new Action(new Delegation("three")));
   
    Element eventElement = toXmlAndParse( processDefinition, "/process-definition/event" );
View Full Code Here

Examples of org.jbpm.graph.def.Transition.addEvent()

    );
    Transition transition = processDefinition.getNode("a").getDefaultLeavingTransition();
   
    Delegation instantiatableDelegate = new Delegation();
    instantiatableDelegate.setClassName("com.foo.Fighting");
    transition.addEvent(new Event(Event.EVENTTYPE_TRANSITION)).addAction(new Action(instantiatableDelegate));
    Element element = AbstractXmlTestCase.toXmlAndParse( processDefinition, "/process-definition/state/transition" );

    assertNotNull(element);
    assertEquals("transition", element.getName());
    assertEquals(1, element.elements("action").size());
View Full Code Here

Examples of org.jbpm.graph.node.State.addEvent()

    State state = (State) processDefinition.addNode( new State("a") );
    Delegation instantiatableDelegate = new Delegation();
    instantiatableDelegate.setClassName("com.foo.Fighting");
    instantiatableDelegate.setConfigType("bean");
    instantiatableDelegate.setConfiguration("<id>4</id><greeting>aloha</greeting>");
    state.addEvent(new Event("node-enter")).addAction(new Action(instantiatableDelegate));
    Element element = AbstractXmlTestCase.toXmlAndParse( processDefinition, "/process-definition/state[1]/event[1]/action[1]" );

    assertNotNull(element);
    assertEquals("action", element.getName());
    assertEquals("bean", element.attributeValue("config-type"));
View Full Code Here

Examples of org.jbpm.taskmgmt.def.Task.addEvent()

      String notificationEvent = Event.EVENTTYPE_TASK_ASSIGN;
      Event event = task.getEvent(notificationEvent);
      if (event == null)
      {
        event = new Event(notificationEvent);
        task.addEvent(event);
      }
      Delegation delegation = createMailDelegation(notificationEvent, null, null, null, null);
      Action action = new Action(delegation);
      action.setProcessDefinition(processDefinition);
      action.setName(task.getName());
View Full Code Here

Examples of org.mctourney.autoreferee.AutoRefMatch.addEvent()

    GoalsInventorySnapshot droppedOff = GoalsInventorySnapshot.fromDiff(diff, true);
    GoalsInventorySnapshot pickedUp = GoalsInventorySnapshot.fromDiff(diff, false);

    if (!droppedOff.isEmpty() && !pickedUp.isEmpty())
    {
      match.addEvent(new TranscriptEvent(match,
          TranscriptEvent.EventType.OBJECTIVE_DETAIL, String.format(
          // {player} has dropped off {snap} and picked up {snap} from a {container} (@ {loc})
          "%s has dropped off %s and picked up %s from a %s (@ %s)", apl.getDisplayName(),
          droppedOff, pickedUp, apl.getInventoryDescription(),
          LocationUtil.toBlockCoords(apl.getInventoryLocation())),
View Full Code Here

Examples of org.mule.routing.EventGroup.addEvent()

    {
        EventGroup eg = new EventGroup(UUID.getUUID());
        assertFalse(eg.iterator().hasNext());

        // add to events to start with
        eg.addEvent(getTestEvent("foo1"));
        eg.addEvent(getTestEvent("foo2"));
        assertTrue(eg.iterator().hasNext());

        // now add events while we iterate over the group
        Iterator i = eg.iterator();
View Full Code Here

Examples of org.olat.commons.calendar.model.Kalendar.addEvent()

    for (Iterator iter = calendar.getComponents().iterator(); iter.hasNext();) {
      Component comp = (Component) iter.next();
      if (comp instanceof VEvent) {
        VEvent vevent = (VEvent)comp;
        KalendarEvent calEvent = getKalendarEvent(vevent);
        cal.addEvent(calEvent);
      } else if (comp instanceof VTimeZone) {
        log.info("createKalendar: VTimeZone Component is not supported and will not be added to calender");
        log.debug("createKalendar: VTimeZone=" + comp);
      } else {
        log.warn("createKalendar: unknown Component=" + comp);
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.