Package org.jbpm.util

Examples of org.jbpm.util.Listener


  //this method is called by the binding
  public void start() {
    environmentFactory = Environment.getCurrent().getEnvironmentFactory();
    // notify the job executor after the transaction is completed
    Listener jobExecutorNotifier = new Listener() {
      public void event(Object source, String eventName, Object info) {
        if ( (Transaction.EVENT_AFTERCOMPLETION.equals(eventName))
            && (StandardTransaction.STATE_COMMITTED.equals(info)) ) {

          log.finer("creating " + toBeScheduledTimers.size() +
View Full Code Here


    log.finest("sending message "+ReflectUtil.getUnqualifiedClassName(message.getClass()));
   
    Environment.getCurrent().get(JobSession.class).save(message);

    // notify the job executor after the transaction is completed
    Listener jobExecutorNotifier = new Listener() {
      public void event(Object source, String eventName, Object info) {
        if ( (Transaction.EVENT_AFTERCOMPLETION.equals(eventName))
             && (StandardTransaction.STATE_COMMITTED.equals(info))
           ) {
          jobExecutor.jobWasAdded();
View Full Code Here

  List<String> objectNames = null;
  String methodName = null;
  List<ArgDescriptor> argDescriptors = null;

  public void apply(Object target, WireContext targetWireContext) {
    Listener listener = null;

    // if a method has to be invoked, rather then using the observable interface
    if (methodName!=null) {
      listener = new MethodInvokerListener(
        methodName,
View Full Code Here

TOP

Related Classes of org.jbpm.util.Listener

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.