Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-3841

Getting ProcessEngineException when using currentUserGroups() expression

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Unresolved
    • L3 - Default
    • None
    • 7.2.1
    • engine
    • Windows 7 Tomcat 7.0.61

    Description

      As also described in this forum post: https://groups.google.com/forum/#!topic/camunda-bpm-users/xk3utUlZvew

      A ProcessEngineException occurs when I try to get all tasks assigned by candidateGroups to the current authenticated user.
      Please note: The current authenticated user has no (zero) groups.

      Expected behavior is a normal (http 200) response with an empty result list.

      Here is the rest-call: /engine-rest/task?candidateGroupsExpression=%24

      {currentUserGroups()}

      The JSON error response:

      {"type":"ProcessEngineException","message":"Unable to invoke method 'taskCandidateGroupIn' on class 'org.camunda.bpm.engine.impl.TaskQueryImpl'"}

      This is the stack trace from the engine:
      Caused by: org.camunda.bpm.engine.ProcessEngineException: Candidate group list is empty
      at sun.reflect.GeneratedConstructorAccessor109.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at org.camunda.bpm.engine.impl.util.EnsureUtil.generateException(EnsureUtil.java:283)
      at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotEmpty(EnsureUtil.java:115)
      at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotEmpty(EnsureUtil.java:108)
      at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotEmpty(EnsureUtil.java:98)
      at org.camunda.bpm.engine.impl.TaskQueryImpl.taskCandidateGroupIn(TaskQueryImpl.java:288)

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              jan.wittorf Jan Wittorf
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Salesforce