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

[GSS](6.4.z] Task Subforms retrieved by Kie Server Rest API is missing subform fields in BPM Suite 6.4.x

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.4.5
    • 6.4.2
    • BPM Suite 6.4.2 - subforms
      Form Modeler
      Kie Server Rest API

    • CR2
    • Hide

      1. clone git repository (reproducer.zip) to business-central;
      2. the project contains a simple process definition and some forms (task form is: issue_description-taskform);
      3. open "issue_description-taskform" and you will see that "issue" makes use of a Single Form (its mapping contains - Input :ticket/issue and Output: ticket/issue);
      3. build&deploy;
      4. create kie-server container by using GAV from project built;
      5. start the process definition by using curl:

      curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" --user user:password 'http://{host}:8080/kie-server/services/rest/server/containers/{container}/processes/ticket-support.support/instances'
      

      6. then get task form:

      curl -H "Accept: application/json" -H "Content-Type: application/json" --user user:password 'http://{host}:8080/kie-server/services/rest/server/containers/{container}/forms/tasks/task_number?filter=true'
      
      Show
      1. clone git repository (reproducer.zip) to business-central; 2. the project contains a simple process definition and some forms (task form is: issue_description-taskform); 3. open "issue_description-taskform" and you will see that "issue" makes use of a Single Form (its mapping contains - Input :ticket/issue and Output: ticket/issue); 3. build&deploy; 4. create kie-server container by using GAV from project built; 5. start the process definition by using curl: curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" --user user:password 'http: //{host}:8080/kie-server/services/ rest /server/containers/{container}/processes/ticket-support.support/instances' 6. then get task form: curl -H "Accept: application/json" -H "Content-Type: application/json" --user user:password 'http: //{host}:8080/kie-server/services/ rest /server/containers/{container}/forms/tasks/task_number?filter= true '

      When fetching a task form with `filter=true` some fields (related to subforms) are missing compared to same output without `filter=true`.

      If you compare the output of the request using the parameter `filter=true` [withtFilter.json] and the one without using it[withoutFilter.json], you'll notice that the one without the parameter has 3 items in the field list with the following names: `ticket_description`, `ticket_issue` and `ticket_title`; while the one using the parameter has only 2 items: `ticket_title` and `ticket_description`. The `field` which uses the subform is the one with the name `ticket_issue`.

      Also, there are a lot of quots if not using `filter=true`;

        1. withFilter.json
          10 kB
          Amana Juricic
        2. withoutFilter.json
          4 kB
          Amana Juricic

              rh-ee-pefernan Pere Fernandez Perez
              rhn-support-ajuricic Amana Juricic
              Juraj Soltes Juraj Soltes (Inactive)
              Juraj Soltes Juraj Soltes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: