4 Replies Latest reply on Aug 21, 2008 10:16 AM by Joram Barrez

    late binding for sub processes

    Tom Baeyens Master

       

      "Jeff" wrote:
      it
      | appears to me that jBPM binds the sub-process at
      | super-process deployment time, not at run-time as I would
      | have expected. Late binding (aka dynamic subprocesses is a
      | really nice feature of a sub-process. That way if the
      | subprocess changes you get the latest version.
      |
      | Looking at how to implement it though is not trivial, the way
      | the current classes are structured. SubProcessResolver takes
      | an Element, and it is not straightforward to add an Element
      | to the hibernate mapping. But in any case it is something we
      | should look at doing.


      makes definitely sense. it didn't fit my original picture where i thought that managing sub process bindings was something that only an operator could do explicitely. that's why it isn't there in the first place.

      david, managing sub process bindings is definitely something that would make sense in the admin concole.

      to implement it late binding, it only takes an extra field/column for the process name. and resolve the process at execute time, rather then at parse time. an extra attribute binding="late" should be added as well to maintain backwards compatibility.

      if you have a failing test case for this, please add it to the sources on HEAD. i'll make sure the test succeeds. should only require some small, local surgery to get this working.