Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3757

JPAKnowledgeService.loadStatefulKnowledgeSession starts workflow processing too soon

XMLWordPrintable

    • Hide

      Explained above. Just add some time lag between loadStatefulKnowledgeSession method and registerign work item handlers. Also there should be a active process in the session whose timer is due.

      Show
      Explained above. Just add some time lag between loadStatefulKnowledgeSession method and registerign work item handlers. Also there should be a active process in the session whose timer is due.

      When JPAKnowledgeService.loadStatefulKnowledgeSession is called, it immediately starts processing any pending nodes. For instance, if any timers are due. But the problem comes, because it doesn't even give time to register any work item handlers. Usually sequence is:

      • call loadStatefulKnowledgeSession
      • register workitemhandlers
        But as soon you call loadStatefulKnowledgeSession, jbpm engine starts running and throws error because of missing workItemHandlers.

      So jBPM should not start work flow processing on loadStatefulKnowledgeSession but some kind of resume method should be provided on StatefulKnowledgeSession class.

              swiderski.maciej Maciej Swiderski (Inactive)
              devinderpal_jira Jboss fan99 (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: