6 Replies Latest reply on Jul 26, 2013 11:33 AM by ooharak

    v6 beta5: automatic deletion of task-related entities

    ooharak

      Hi,

      I am testing jBPM6.0.0beta5 on JBoss AS7.1.1. If I start a process, start and complete human tasks, then finally the process instance ends normally at the end event.

      After the process instance ends, these tables still have records for the finished task,  unexpectedly :

       

       

      BAMTaskSummary

      Content

      OrganizationalEntity

       

       

      My question is, where and how should I delete those records ?

       

       

      For Content:

      apparently, TaskAdminImpl deletes the document Content of each task ( with TaskData#getDocumentContentId()), but it seems it doesn't delete

      the output Content of the task (TaskData#getOutputContentId()).

       

       

      For BAMTaskSummary and OrganizationalEntity, I have no idea.

       

      Thanks in advance

        • 1. Re: v6 beta5: automatic deletion of task-related entities
          ooharak

          Correction: TaskAdminServiceImpl, not TaskAdminImpl.

          • 2. Re: v6 beta5: automatic deletion of task-related entities
            salaboy21

            Hi,

            Thanks for reporting this.

             

            BAMTaskSummary needs to remain filled, because this table is used by the Dashboard application to summarize information about the process executions. So it cannot be deleted. The same for OrganizationalEntity, that contains the users for the system. The TaskData content should be deleted and I will check for that today.

             

            Cheers

            • 3. Re: v6 beta5: automatic deletion of task-related entities
              ooharak

              Thank you for checking, that issue will be one of the good reasons that the project I'm in charge of should move to the new version.

               

              In my particular case, our project has been originally planned and tested against v5.4 and won't use Dashboard feature even if upgraded to v6.

              Is it safe not to create, or to delete BAMTaskSummary and OrganizationalEntity records in the case if Dashboard isn't used ?

              One idea would be to negate BAMTaskEventListener by vetoing the class by ProcessAnnotatedType ifecycle event.

              • 4. Re: v6 beta5: automatic deletion of task-related entities
                salaboy21

                You cannot erase OrganizationalEntity for sure..

                But yes you can veto the BAMTaskEventListener if you are not planning to use the Dashboard module... Just for you to know, collecting the data of the process execution is a very normal and regular practice.. As soon as you start using the engine the business users will want to see statitics about the executions.. so if you veo that listener you will end up with nothing about that.

                 

                Cheers

                • 5. Re: v6 beta5: automatic deletion of task-related entities
                  salaboy21

                  Extra note about OrganizationalEntity: the table shouldn't grow if the amout of users using the system doesn't grow.. you will end up having a row in that table per user and per group that is using the platform.

                  By the way, why do you want to erase those tables?

                   

                  Cheers

                  1 of 1 people found this helpful
                  • 6. Re: v6 beta5: automatic deletion of task-related entities
                    ooharak

                    BAM would be a nice and important feature for newly designed systems, however in our project we already have our own external statistics facility,

                    with help of v5.4 NodeInstanceLog and other domain-specific entities,  that's why we don't need a different implementation of the similar feature for now.

                    Maybe our system will be able to use bam in the future releases though.

                     

                    For deletion, I would like to delete those tables to prevent row sizes from growing, so I realized from your reply that I could leave OrganizationalEntity untouched.