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

Filter key "User / Group" : "Owner" is not working as expected

    • Icon: Bug Report Bug Report
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • 7.13.11
    • webapp

      User Story (Required on creation):

      The user clicks on a filter "tasks that I own" in the Camunda Webapp. All tasks are shown which the current user owns. 

      Functional Requirements (Required before implementation):

      There is a filter in the Camunda Webapp, that shows the current user all tasks which he owns. 

      Technical Requirements (Required before implementation):

      The bug in the filter when you put under the filter key "User / Group" : "Owner" , is removed. 

      Limitations of Scope (Optional):

      Hints (Optional):

      Currently the behavior is as follows: 

      I have a filter "tasks that I own" with one critera. The criteria has the key "User / Group" : "Owner" and the value of that key is "${currentUser()}" (see screenshot "filter settings"). I assign, with the help of a listener, the current user as an owner to the current task. Then I would expect that task to appear in the filter "tasks that I own". However under that filter I cannot see my task (see screenshot "filter shows no tasks"). But when I click on the settings of that task and just click save (without changing anything), suddenly the tasks I am owner of are appearing (see screenshot "filter shows tasks after clicking on save").

      For me that cleary looks like a bug! If you dont want to fix this bug, please give me a hint for a workaround, because for now I dont have one. Thanks a lot.

        This is the controller panel for Smart Panels app

            [CAM-13290] Filter key "User / Group" : "Owner" is not working as expected

            Marvin Kern added a comment -

            Hey Nikola,

            Thanks a lot for the quick response. 

            The steps you are doing seem correct. 

            I am using version 7.13.0. I will try to update to the latest version and try again. I will write you how it went.

            Thank you

            Marvin

            Marvin Kern added a comment - Hey Nikola, Thanks a lot for the quick response.  The steps you are doing seem correct.  I am using version 7.13.0. I will try to update to the latest version and try again. I will write you how it went. Thank you Marvin

            Marvin Kern added a comment -

            Hi Nikola, 

            I tried now with Camunda version 7.14.0 and that shows the same behavior. 

            When I try to use Camunda version 7.15.0-alpha4 I am getting the following error in the browser and my whole tasklist is not loading, I only the the loading symbol: 

            Seems to be some problem with my tasklist history plugin. 

            My app is a java springboot application.

            Is the filter working for you in version 7.14.0 as expected?

            Thanks for your help. 

             

            Marvin

             

            Marvin Kern added a comment - Hi Nikola,  I tried now with Camunda version 7.14.0 and that shows the same behavior.  When I try to use Camunda version 7.15.0-alpha4 I am getting the following error in the browser and my whole tasklist is not loading, I only the the loading symbol:  Seems to be some problem with my tasklist history plugin.  My app is a java springboot application. Is the filter working for you in version 7.14.0 as expected? Thanks for your help.    Marvin  

            Marvin Kern added a comment -

            Some addition:

            When I am using version 7.15.0-alpha4 my cockpit is not working too:

            Marvin Kern added a comment - Some addition: When I am using version 7.15.0-alpha4 my cockpit is not working too:

            Hi MarvinKern,

            Yes, I tried on 7.14.0 and 7.13.0 as well. In all cases, I can successfully create the filter and obtain the related tasks. I suspect there is an issue with your configuration, or maybe the history plugin that you mentioned.

            I would suggest to open a topic on the Camunda forum with a description of the problem (with Camunda version and Spring Boot information), as well as the screenshots you provided, as this seems more an issue with your custom plugin than with the Camunda Platform itself.

            Best,
            Nikola

            Nikola Koevski added a comment - Hi MarvinKern , Yes, I tried on 7.14.0 and 7.13.0 as well. In all cases, I can successfully create the filter and obtain the related tasks. I suspect there is an issue with your configuration, or maybe the history plugin that you mentioned. I would suggest to open a topic on the Camunda forum with a description of the problem (with Camunda version and Spring Boot information), as well as the screenshots you provided, as this seems more an issue with your custom plugin than with the Camunda Platform itself. Best, Nikola

            Marvin Kern added a comment -

            Hey Nikola, 

            I tried to run my application without the tasklist-plugin, all the error messages are gone, but I still got the problem with the filter. 

            So do you have any other ideas why the filter might not work? 

            Thank you,

            Marvin

            Marvin Kern added a comment - Hey Nikola,  I tried to run my application without the tasklist-plugin, all the error messages are gone, but I still got the problem with the filter.  So do you have any other ideas why the filter might not work?  Thank you, Marvin

            Marvin Kern added a comment - - edited

            This is my Task Listener, which is created when the first user task is created: 
              public class SetOwnerListener implements TaskListener {
               @Override
               public void notify(DelegateTask delegateTask)

            {       delegateTask.setOwner((String) delegateTask.getVariable("initiator"));    }

              }

             

            The strange thing is, that when I opened the filter settings of the filter "tasks that I started" and clicked save, it is working fine. Even when I am using another user or open the application with an incognito tab its working. Is there any way in an Java springboot application to do the function of the save button of the filter in my code? I guess when I create a listener that does the same as the save button of the filter, it should work.

             

            Marvin Kern added a comment - - edited This is my Task Listener, which is created when the first user task is created:    public class SetOwnerListener implements TaskListener {    @Override    public void notify(DelegateTask delegateTask) {       delegateTask.setOwner((String) delegateTask.getVariable("initiator"));    }   }   The strange thing is, that when I opened the filter settings of the filter "tasks that I started" and clicked save, it is working fine. Even when I am using another user or open the application with an incognito tab its working. Is there any way in an Java springboot application to do the function of the save button of the filter in my code? I guess when I create a listener that does the same as the save button of the filter, it should work.  

            Hi MarvinKern,

            As I mentioned in my previous comment, this discussion is more suited for the forum, as it's more of a help request at the moment than a bug. Therefore, I'm closing this ticket. Please open a help topic there (https://forum.camunda.org/), and if it proves to be a bug related to the process engine, we'll re-open this ticket, or create a new one.

            Best,
            Nikola

            Nikola Koevski added a comment - Hi MarvinKern , As I mentioned in my previous comment, this discussion is more suited for the forum, as it's more of a help request at the moment than a bug. Therefore, I'm closing this ticket. Please open a help topic there ( https://forum.camunda.org/ ), and if it proves to be a bug related to the process engine, we'll re-open this ticket, or create a new one. Best, Nikola

            Marvin Kern added a comment -

            Hey Nikola, 

            Thanks for the hint, but I allready created an entry in the forum but it did not help on this question :/ 

            I just saw that the steps you took are not exactly the same as mine.

            So you created the process with the listener. Then you created the filter manually in the tasklist. When I do it this way it works for me too.

            However I am creating the filter on startup in my code automatically. This is working fine for all filters, only for this filter its not working.

            Could you please try to create a filter in your java code and start the application?

            I still have the feeling that this is a bug, because all my other filters are created the exact same way and they are working fine..

             

            Thanks for your help.

            Marvin

            Marvin Kern added a comment - Hey Nikola,  Thanks for the hint, but I allready created an entry in the forum but it did not help on this question :/  I just saw that the steps you took are not exactly the same as mine. So you created the process with the listener. Then you created the filter manually in the tasklist. When I do it this way it works for me too. However I am creating the filter on startup in my code automatically. This is working fine for all filters, only for this filter its not working. Could you please try to create a filter in your java code and start the application? I still have the feeling that this is a bug, because all my other filters are created the exact same way and they are working fine..   Thanks for your help. Marvin

            Marvin Kern added a comment - - edited

            Hey @nikola.koevski,

            Can you please try to generate the filter in your java code and then start the application?

            Thanks a lot,

            Marvin

            Marvin Kern added a comment - - edited Hey @nikola.koevski, Can you please try to generate the filter in your java code and then start the application? Thanks a lot, Marvin

            Marvin Kern added a comment -

            If anybody has landed here, in another ticket the task could be solved: 

            https://jira.camunda.com/browse/CAM-13353

            Marvin Kern added a comment - If anybody has landed here, in another ticket the task could be solved:  https://jira.camunda.com/browse/CAM-13353

              nikola.koevski Nikola Koevski
              MarvinKern Marvin Kern
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: