2 Replies Latest reply on Aug 31, 2014 2:27 AM by cyu021

    How to block process with intermediate catch event ?

    cyu021

      Hi all,

      I have a test process looks like this.

      Test001.jpg

      I was expecting the process to be blocked by the intermediate catch event (Type = Message), but it didn't.

      The process completed by skipping "Script Task 2".

       

      This is how I star the process:

      ProcessInstance processInstance = ksession.startProcess("Test001", params);

       

      Is it possible to block a process with an intermediate catch event ?

        • 1. Re: How to block process with intermediate catch event ?
          swiderski.maciej

          this is correct way of achieving the wait state with intermediate catch event. So it will remain in the catch event until it's signaled but the control will be returned from the startProcess method with ProcessInstance as a result. Then you can either check the state of that process instance or get it once again from ksession by using getProcessInstance method to ensure it's still there.

           

          HTH

          • 2. Re: How to block process with intermediate catch event ?
            cyu021

            Hi Maciej,

             

            Thanks for the heads up.

             

            I wonder if ksession.signalEvent() blocks invoking process as ksession.startProcess() does ?

            If ksession.signalEvent() doesn't block invoking process, how can I wait until the signaled process complete ?