Package org.uengine.kernel

Examples of org.uengine.kernel.EventHandler


      eventMessagePayload.setTriggerTracingTag(triggerActivityTracingTag);
      mainProcessDefinition.fireMessage("event", mainProcessInstance, eventMessagePayload);
     
      //get the initiated sub process instance
      EventHandler[] ehs = getEventHandlersInAction(mainInstanceId);
      EventHandler theEventHandler = null;
      for(int i=0; i<ehs.length; i++){
        if(ehs[i].getName().equals(eventName)){
          theEventHandler = ehs[i];
          break;
        }
      }
     
      Activity handlerActivity = theEventHandler.getHandlerActivity();
     
      HumanActivity humanActivity = null;
     
      if(handlerActivity instanceof SubProcessActivity){
        SubProcessActivity subProcessActivity = (SubProcessActivity)theEventHandler.getHandlerActivity();
        Vector idVt = subProcessActivity.getSubprocessIds(mainProcessInstance);
       
        String subInstanceId = (String)idVt.get(0);
       
        ProcessInstance subProcessInstance = getInstance(subInstanceId);
View Full Code Here


        try {
         
         
          //find out which handler is selected. Either I know this is not that good code ;)
          int handlerIndex = getScopeActivity().getEventHandlers().length - e.getX() / 32;
          EventHandler theEventHandler = getScopeActivity().getEventHandlers()[handlerIndex];
          //
         
          eventHandlerType = new ObjectType(EventHandler.class);
         
          ObjectInstance eventHandlerInstance = (ObjectInstance)eventHandlerType.createInstance();
View Full Code Here

      if(oParent!=null){ 
        oParent.removeActivity(activityDesigner);
        ((JComponent)oParent.getComponent()).revalidate();
      }

      EventHandler newEventHandler;{
        EventHandler[] evs = (getScopeActivity()).getEventHandlers();
        EventHandler newEvs[];
        if(evs==null){
          newEvs = new EventHandler[1];
        }else{
          newEvs = new EventHandler[evs.length + 1];       
          System.arraycopy(evs, 0, newEvs, 0, evs.length);
        }
       
        newEventHandler = new EventHandler();
        newEventHandler.setHandlerActivity(activityDesigner.getActivity());
        newEventHandler = new EventHandler();
        newEventHandler.setHandlerActivity(activityDesigner.getActivity());
        newEventHandler.setName("eventHandler#");
        newEvs[newEvs.length-1] = newEventHandler;
       
        getScopeActivity().setEventHandlers(newEvs);
View Full Code Here

    for(int i=0;i<evs.length;i++){
      v.add(evs[i]);
    }
       
    for(Enumeration enumeration = v.elements(); enumeration.hasMoreElements(); ){
      EventHandler ev = (EventHandler)enumeration.nextElement();
      if(handlerActivity==ev.getHandlerActivity()){
        v.remove(ev);
        break;
      }
    }
   
View Full Code Here

//      sb.append("<center>");
      if(isVertical)    sb.append("<table border=0 cellpadding=0 cellspacing=0><tr>");
     
      if(scopeAct.getEventHandlers()!=null)
      for(int i=0; i<scopeAct.getEventHandlers().length; i++){
        EventHandler eh = scopeAct.getEventHandlers()[i];
        if(isVertical) sb.append("<td width=50>");
        sb.append("<img src=" + imagePathRoot + "images/event.gif border=0 align=absmiddle><font size=-3>" + eh.getDisplayName().getText(locale) + "</font><br>");
        sb.append(DefaultActivityViewer.createViewer(eh.getHandlerActivity()).render(eh.getHandlerActivity(), instance, options));
        if(isVertical) sb.append("</td>");
      }
 
      if(isVertical) sb.append("</tr></table> </td></tr></table>");
     
View Full Code Here

TOP

Related Classes of org.uengine.kernel.EventHandler

Copyright © 2018 www.massapicom. 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.