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

Refactor completion conditions for no active instances

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 7.0.0.Beta6
    • Runtime Engine
    • None
    • NEW
    • NEW
    • Sprint3

    Description

      The completion conditions deserve refactoring to enable doing more.

      There is a hardcoded condition for no active instances [1]:

      getActivityInstanceAttribute("numberOfActiveInstances") == 0

      1. it's hard to remember - please simplify to noActiveInstances for example
      2. cannot be used as part of some more complex condition to enable something like:
        getCaseFile("currrentGuest") != null && noActiveInstances

      [1] https://github.com/droolsjbpm/jbpm/blob/master/jbpm-bpmn2/src/main/java/org/jbpm/bpmn2/xml/AdHocSubProcessHandler.java#L61

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
              ibek1@redhat.com Ivo Bek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: