Results 1 to 3 of 3

Thread: LocalJbpmConfigurationFactoryBean deploy of new version of process

  1. #1
    Join Date
    Aug 2008
    Posts
    4

    Default LocalJbpmConfigurationFactoryBean deploy of new version of process

    When you use LocalJbpmConfigurationFactoryBean each time you deploy the application a new process definition is deployed (even if not changed).

    Because of that jbpmtemplate.findProcessInstances() returns an empty list. (becasue the existing instances have a different definition version).

    What is the reason for deployment on each application deploy?

  2. #2
    Join Date
    Aug 2008
    Posts
    1

    Default

    I also come to this problem now,after seeking the source code,I'm afraid that this has nothing to do with springmodel,it's jBPM itself that deploying the definition repeatedly.It seems jBPM is not 'clever' enough to find out the change of the definition.

    But I have no good solution to this problem either,perhaps we need to modify the source code of org.jbpm.db.GraphSession's deployProcessDefinition method?Or we must write some more code to specify when to really deploy the process definition as a separate (spring aware) module.

    Let's see if some one others could give a more ideal answer.

  3. #3
    Join Date
    Aug 2008
    Posts
    4

    Default

    I do not use jbpmtemplate.findProcessInstances() anymore.

    findPooledTaskInstances and findTaskInstances seems to work ok.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •