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

Log activity id and name of multi instance body activities

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Won't Fix
    • L3 - Default
    • None
    • 7.6.0-alpha5
    • engine
    • None

    Description

      It looks like multi instance activities aren't logged properly into the history tables.

      • The activity id has a suffix of #multiInstanceBody which is redundant to the activity type.
      • The activity name of the instance remains empty altogether.

      I noticed this trying to implement a custom composite history handler.

      Found in 7.6.0-alpha5, but I assume this may be the case in older versions as well.

      Example output from the history table:

      camunda=# select * from act_hi_actinst where act_type_ = 'multiInstanceBody';
      -[ RECORD 1 ]-------+-----------------------------------------------
      id_                 | 82ff0d86-b0ae-11e6-a74c-ac87a334115c
      parent_act_inst_id_ | 7fb47628-b0ae-11e6-a74c-ac87a334115c
      proc_def_key_       | aProcess
      proc_def_id_        | aProcess:4:51e5a010-b0ae-11e6-a74c-ac87a334115c
      proc_inst_id_       | 7fb47628-b0ae-11e6-a74c-ac87a334115c
      execution_id_       | 82ff0d84-b0ae-11e6-a74c-ac87a334115c
      act_id_             | aParallelTask#multiInstanceBody
      task_id_            |
      call_proc_inst_id_  |
      call_case_inst_id_  |
      act_name_           |
      act_type_           | multiInstanceBody
      assignee_           |
      start_time_         | 2016-11-22 13:23:44.993
      end_time_           |
      duration_           |
      act_inst_state_     | 0
      sequence_counter_   | 5
      tenant_id_          |
      -[ RECORD 2 ]-------+-----------------------------------------------
      id_                 | 8b358892-b0b1-11e6-a74c-ac87a334115c
      parent_act_inst_id_ | 8775e844-b0b1-11e6-a74c-ac87a334115c
      proc_def_key_       | aProcess
      proc_def_id_        | aProcess:4:51e5a010-b0ae-11e6-a74c-ac87a334115c
      proc_inst_id_       | 8775e844-b0b1-11e6-a74c-ac87a334115c
      execution_id_       | 8b358890-b0b1-11e6-a74c-ac87a334115c
      act_id_             | aParallelTask#multiInstanceBody
      task_id_            |
      call_proc_inst_id_  |
      call_case_inst_id_  |
      act_name_           |
      act_type_           | multiInstanceBody
      assignee_           |
      start_time_         | 2016-11-22 13:45:27.262
      end_time_           |
      duration_           |
      act_inst_state_     | 0
      sequence_counter_   | 5
      tenant_id_          |
      

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              bentrm Benjamin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce