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

LightProcessRuntime should not pull the WorkItemManager instance from kruntime

XMLWordPrintable

    • 3
    • NEW
    • NEW
    • 2019 Week 17-19, 2019 Week 20-22

      On a second thought: Although accessing kruntime was incorrect (that is staying around only for legacy reasons), LightProcessRuntimeContext is not the correct place where to get that WorkItemManager instance; that's actually in the LightProcessRuntimeServiceProvider, which is a perfectly good place to get it from.

      Previous title: LightProcessRuntimeContext should return a non-null WorkItemManager instance

      offending line:
      https://github.com/kiegroup/submarine-runtimes/blob/dc2695935d4707a2a37d872303f425dc1907e223/jbpm/jbpm-flow/src/main/java/org/jbpm/process/instance/LightProcessRuntimeContext.java#L70

      we should not user knowledgeRuntime here:
      https://github.com/kiegroup/submarine-runtimes/blob/dc2695935d4707a2a37d872303f425dc1907e223/jbpm/jbpm-flow/src/main/java/org/jbpm/process/instance/LightProcessRuntime.java#L454

      but rather use ProcessRuntimeContext.getWorkItemManager()

            evacchi Edoardo Vacchi (Inactive)
            evacchi Edoardo Vacchi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: