1 Reply Latest reply on Aug 26, 2009 9:37 AM by Ronald van Kuijk

    jBPM4 - Asynch Web-Service Callback

    Christoph M. Newbie

      Hi,
      wanted to ask if its possible to recieve a callback from a webservice inside a java activity ?

      (http://www.infoq.com/articles/boris-lublinsky-jboss-jbpm explains an approach handling the callback outside the processdefinition)

        • 1. Re: jBPM4 - Asynch Web-Service Callback
          Ronald van Kuijk Master

          The java activity has is no wait state and therefore you can't have a callback. A custom node can be a wait state, so you could use a callback to signal it to go on. Afaik, the 'receive' has to be outside the class itself (not illogical, since you cannot 'start' servlets or something, although I'm not sure what would happen oif you just annotate the custom classes with rest params) and you can use the GWT-Console rest api for that if you want, or implement a generic (comparable) webservice api