Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-4825

[GSS] 6.4.z QueryService raw result mapper does not process multi records property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.4.7
    • 6.4.3
    • jBPM Core
      • Red Hat JBoss BPM Suite 6.4.x
    • CR1
    • Hide

      Attached bpms-mapper-rawlist.zip application that can be used to reproduce the issue.

      1. Unzip bpms-mapper-rawlist.zip;
      2. Change/configure the following values:

      2a. File: KieProducer.java - set SERVER_URL, username and password;
      2b. File: QueryStartup.java - set SOURCE to point to the valid datasource that contains processinstancelog table filled with different data;
      3. Save above changes;
      4. Run: $ mvn install clean;
      5. Deploy bpms-mapper-rawlist application to the kie server;
      6. Run http://<kie-server-ip-address>:<port>/bpms-mapper-rawlist/rawlist and confirm that returned list contains only first raw (from the processinstancelog table) logged N times (where N is defined when executing query ... for instance:

      List<List> result = queryServicesClient.query(QueryStartup.ALL_PROCESS_INSTANCES, QueryServicesClient.QUERY_MAP_RAW, queryFilterSpec, 0, 10000, List.class);

      In above case, N will be 10000).

      Show
      Attached bpms-mapper-rawlist.zip application that can be used to reproduce the issue. 1. Unzip bpms-mapper-rawlist.zip; 2. Change/configure the following values: 2a. File: KieProducer.java - set SERVER_URL, username and password; 2b. File: QueryStartup.java - set SOURCE to point to the valid datasource that contains processinstancelog table filled with different data; 3. Save above changes; 4. Run: $ mvn install clean; 5. Deploy bpms-mapper-rawlist application to the kie server; 6. Run http://<kie-server-ip-address>:<port>/bpms-mapper-rawlist/rawlist and confirm that returned list contains only first raw (from the processinstancelog table) logged N times (where N is defined when executing query ... for instance: List<List> result = queryServicesClient.query(QueryStartup.ALL_PROCESS_INSTANCES, QueryServicesClient.QUERY_MAP_RAW, queryFilterSpec, 0, 10000, List.class); In above case, N will be 10000).
    • 2017 Week 30-31, 2017 Week 32-33, 2017 Week 34-35

      Query service (based on datasets) does provide number of result mappers, one of them is RawListResultMapper which does not map the data to any instance but simply return each row as list of values.
      It does not properly handle multiple rows due to a type of fetching values from data set.

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-bkramer1 Biljana Kramer
              Jakub Schwan Jakub Schwan
              Jakub Schwan Jakub Schwan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: