Examples of fireevent()


Examples of org.activiti.engine.impl.persistence.entity.TaskEntity.fireEvent()

        if (variables != null) {
            taskEntity.setExecutionVariables(variables);
        }

        taskEntity.fireEvent(TaskListener.EVENTNAME_COMPLETE);

        if ((Authentication.getAuthenticatedUserId() != null)
                && (taskEntity.getProcessInstanceId() != null)) {
            taskEntity.getProcessInstance().involveUser(
                    Authentication.getAuthenticatedUserId(),
View Full Code Here

Examples of org.apache.openejb.loader.SystemInstance.fireEvent()

        system.setComponent(EjbResolver.class, new EjbResolver(null, EjbResolver.Scope.GLOBAL));

        installExtensions();

        system.fireEvent(new AssemblerCreated());
    }

    private void installExtensions() {
        try {
            final Collection<URL> urls = NewLoaderLogic.applyBuiltinExcludes(new UrlSet(Assembler.class.getClassLoader()).excludeJvm()).getUrls();
View Full Code Here

Examples of org.apache.openjpa.event.LifecycleEventManager.fireEvent()

        mgr.addListener(listener2, null);
        assertTrue(mgr.hasLoadListeners(pc, meta));
        assertTrue(mgr.hasStoreListeners(pc, meta));
        assertFalse(mgr.hasDirtyListeners(pc, meta));

        mgr.fireEvent(pc, meta, LifecycleEvent.AFTER_LOAD);
        assertEquals(1, listener.load);
        assertEquals(0, listener.store);
        assertEquals(0, listener.preStore);
        assertEquals(1, listener2.load);
        assertEquals(0, listener2.store);
View Full Code Here

Examples of org.apache.tuscany.core.context.AggregateContext.fireEvent()

        // Load and start the system configuration
        SystemAggregateContext systemContext = runtime.getSystemContext();
        ModuleComponentConfigurationLoader loader = BootstrapHelper.getConfigurationLoader(systemContext, modelContext);
        ModuleComponent systemModuleComponent = loader.loadSystemModuleComponent(SYSTEM_MODULE_COMPONENT, SYSTEM_MODULE_COMPONENT);
        AggregateContext context = BootstrapHelper.registerModule(systemContext, systemModuleComponent);
        context.fireEvent(EventContext.MODULE_START, null);

        // Load the SCDL configuration of the application module
        AggregateContext rootContext = runtime.getRootContext();
        moduleComponent = loader.loadModuleComponent(name, uri);
        moduleContext = BootstrapHelper.registerModule(rootContext, moduleComponent);
View Full Code Here

Examples of org.apache.webbeans.container.BeanManagerImpl.fireEvent()

     * Fires event after bean discovery.
     */
    void fireAfterBeanDiscoveryEvent()
    {
        BeanManagerImpl manager = webBeansContext.getBeanManagerImpl();
        manager.fireEvent(new AfterBeanDiscoveryImpl(webBeansContext),new Annotation[0]);

        webBeansContext.getWebBeansUtil().inspectErrorStack("There are errors that are added by AfterBeanDiscovery event observers. Look at logs for further details");
    }

    /**
 
View Full Code Here

Examples of org.apache.webbeans.container.BeanManagerImpl.fireEvent()

     * Fires event after deployment valdiation.
     */
    void fireAfterDeploymentValidationEvent()
    {
        BeanManagerImpl manager = webBeansContext.getBeanManagerImpl();
        manager.fireEvent(new AfterDeploymentValidationImpl(manager),new Annotation[0]);

        webBeansContext.getWebBeansUtil().inspectErrorStack("There are errors that are added by AfterDeploymentValidation event observers. Look at logs for further details");
    }

    /**
 
View Full Code Here

Examples of org.asmatron.messengine.engines.DefaultEventDelegate.fireEvent()

      public boolean isEager() {
        return false;
      }
    });

    engine.fireEvent(aType, new CustomEvent());
    assertTrue(invoked.get());
  }
}

class CustomEvent extends EventObject {
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent()

    Context.getCommandContext()
      .getHistoricTaskInstanceManager()
      .createHistoricTask(task);

    // All properties set, now firing 'create' event
    task.fireEvent(TaskListener.EVENTNAME_CREATE);
  }

  public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception {
    leave(execution);
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent()

    Context.getCommandContext()
      .getHistoricTaskInstanceManager()
      .createHistoricTask(task);

    // All properties set, now firing 'create' event
    task.fireEvent(TaskListener.EVENTNAME_CREATE);

    return task;
  }

  // sub process instance ////////////////////////////////////////////////////
View Full Code Here

Examples of org.eclipse.e4.xwt.IEventGroup.fireEvent()

   
    // TODO this conversion should be simplied
    String eventName = ModelUtils.normalizePropertyName(property.getEvent().getName());
    IEventGroup eventGroup = metaclass.getEventGroup(eventName);
    if (eventGroup != null) {
      eventGroup.fireEvent(this, property);
    }
  }
 
  public void registerValue(IProperty property, IObservableValue observableValue) {
    if (map == null) {
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.