0 Replies Latest reply on Aug 11, 2014 2:13 AM by sandip.desale

    Catch Event no working For PerProcess Runtime Manager

    sandip.desale

      Hi All,

       

      We are testing sample throw and catch signal event with event data using JBPM 6.1.0 Final. We found following points...

       

      1. In another process where start is through signal there output variable name should be 'event' to signal start second process. If output variable name is not 'event' then event data can not extracted into another process. Find code of ProcessRuntimeImpl below where 'event' is hardcoded for start signal output variable.

       

      public class ProcessRuntimeImpl implements InternalProcessRuntime {

      ...

      private class StartProcessEventListener implements EventListener {

        ...

        public void signalEvent(String type, Object event) {

            for ( EventFilter filter : eventFilters ) {

            for ( Map.Entry<String, String> entry : inMappings.entrySet() ) {

                if ( "event".equals(
                     entry.getValue() ) ) {

                    params.put(entry.getKey(),event );

                }
      else {

               params.put(
               entry.getKey(), entry.getValue() );

          }    } }

       

      startProcess(processId, params, type );

        } } }

       

       

      2. Above workaround related to triggering another process through signal start event with event data works with only Singleton runtime manager. For PerProcess Runtime manager, it fails to start another process. Related log is attached with this mail.

       

      Regards,

      Sandip Desale

       

      Message was edited by: sandip desale