2 Replies Latest reply on Jun 1, 2007 6:57 AM by kukeltje

    Async node no JBPM_JOB entry

      Hello,

      From the next following jpdl sample, we are expecting for a new JOB record into the database (JBPM_JOB) but nothing remains...

      An external webservice will try to touch this pending node by sending a signal.

      Any idea ?

      Thank you

      <node name="Wait" async="true">
       <action class="package.class"></action>
       <transition to="nextStep"></transition>
       </node>
      


        • 1. Re: Async node no JBPM_JOB entry

          Hi,

          Seems that if you want to perform an async task from the jpdl code, you need to add this following command into your handler call...


          context.getTask().setBlocking(true);
          


          Then from an outside java code perform this sample

          org.jbpm.command.SignalCommand sign = new org.jbpm.command.SignalCommand();
           sign.setTokenId(119L);
          
          sign.execute(jbpmContext);


          • 2. Re: Async node no JBPM_JOB entry
            kukeltje

            @Wash: He talks about a node, no tasks are involved.