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

Case Roles: User/group assignments fail when using Case File

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 7.5.0.Final
    • Fix Version/s: 7.5.0.Final
    • Component/s: KieServer
    • Labels:
      None
    • Environment:

      Workbench with Case Management Showcase App provisioned.

    • Sprint:
      2017 Week 45-46
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Case Management Showcase App is using Case File to insert user/group assignments when starting a case instance via kie-server-client API. The following method in particular:

      String startCase(String containerId, String caseDefinitionId, CaseFile caseFile);
      

      In this approach, there's a handful of scenarios in which user/group assignments fail when using Case File. The behavior slightly varies depending on the value of Adhoc autostart property for user tasks which had case roles assigned at design time.

      These are the problematic scenarios:
      Adhoc autostart = true
      1. When a case role is assigned to Actors only in a case definition, case fails to start when groups are assigned to the case role
      2 When a case role is assigned to Groups only in a case definition, case can be started when users are assigned to the case role, but when both users and groups are assigned - users assigned are ignored
      3. When a case role is assigned to both, Actors and Groups (in different user tasks in a case definition), case fails to start when groups are assigned to the case role

      Adhoc autostart = false
      4. When a case role is assigned to Actors only in a case definition, case can be started when groups are assigned to the case role, but when both users and groups are assigned - users assigned are ignored
      5. When a case role is assigned to Groups only in a case definition, case can be started when users are assigned to the case role, but when both users and groups are assigned - users assigned are ignored
      6. When a case role is assigned to both, Actors and Groups (in different user tasks in a case definition), case can be started, but when both users and groups are assigned - users assigned are ignored

      Point 3 is a critical bug, as it can't be fixed during case life cycle.
      Points 4 and 6 are major bugs.
      Points 2 and 5 are minor bugs.
      Point 1 looks like the only proper behavior in terms of preventing users in entering data which can lead to errors during the case execution, but is inconsistent with other points and as such requires revision.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swiderski.maciej Maciej Swiderski
                Reporter:
                bsremac Bojan Sremac
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: