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

[GSS](6.4.z) Retrieving Form Data with Kie Server Rest API does not show subforms data in BPM Suite 6.4.x

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.4.4
    • 6.4.2
    • BPM Suite 6.4.2 - Form Modeler (SubForms)
      Kie Server Rest API

    • CR1
    • Hide

      1. clone git repository to business-central;
      2. the project contains a simple process definition and three forms (one process form and two other forms which will be used as subforms);
      3. build&deploy;
      4. create kie-server container by using GAV from project built;
      5. cd "/extras" (unzipped along with git repo - contains json file) and start the process definition by using curl:

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

      6. in a browser or via curl, user kie server rest api to retrieve process form:

      http://{host}:8080/kie-server/services/rest/server/containers/{container}/forms/processes/ticket-support.support?filter=true 
      

      Note: it does not return data from subforms... neither for single subform nor multiple subform.

      Show
      1. clone git repository to business-central; 2. the project contains a simple process definition and three forms (one process form and two other forms which will be used as subforms); 3. build&deploy; 4. create kie-server container by using GAV from project built; 5. cd "/extras" (unzipped along with git repo - contains json file) and start the process definition by using curl: curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" --user user:password -d @ticket.json 'http: //{host}:8080/kie-server/services/ rest /server/containers/{container}/processes/ticket-support.support/instances' 6. in a browser or via curl, user kie server rest api to retrieve process form: http://{host}:8080/kie-server/services/rest/server/containers/{container}/forms/processes/ticket-support.support?filter=true Note: it does not return data from subforms... neither for single subform nor multiple subform.
    • jBPM sprint 2, jBPM sprint 3

      Kie Server Rest API doesn't bring all subforms data properly, it only returns subforms names and some basic configuration as follows:

      {"form": {
          "dataHolder": [
              {
                  "id": "issueList",
                  "inputId": "",
                  "name": "#E9E371",
                  "outId": "issueLIst",
                  "type": "dataModelerEntry",
                  "value": "org.acme.ticket_support.IssueList"
              },
              {
                  "id": "ticket",
                  "inputId": "",
                  "name": "#E9E371",
                  "outId": "ticket",
                  "type": "dataModelerEntry",
                  "value": "org.acme.ticket_support.Ticket"
              }
          ],
          "displayMode": "default",
          "field": {
              "defaultSubform": "component-ticket.form",
              "errorMessage": "quot;caquot;,quot;quot;quot;dequot;,quot;quot;quot;enquot;,quot;quot;quot;esquot;,quot;quot;quot;frquot;,quot;quot;quot;jaquot;,quot;quot;quot;ptquot;,quot;quot;quot;zhquot;,quot;quot;",
              "fieldClass": "java.lang.Object",
              "fieldRequired": false,
              "groupWithPrevious": false,
              "id": 666944388,
              "label": "quot;SSClassquot;,quot;quot;quot;SSStylequot;,quot;quot;quot;caquot;,quot;quot;quot;dequot;,quot;quot;quot;enquot;,quot;helloquot;quot;esquot;,quot;quot;quot;frquot;,quot;quot;quot;jaquot;,quot;quot;quot;ptquot;,quot;quot;quot;zhquot;,quot;quot;",
              "name": 666944388,
              "position": 0,
              "readonly": false,
              "title": "quot;caquot;,quot;quot;quot;dequot;,quot;quot;quot;enquot;,quot;quot;quot;esquot;,quot;quot;quot;frquot;,quot;quot;quot;jaquot;,quot;quot;quot;ptquot;,quot;quot;quot;zhquot;,quot;quot;",
              "type": "Subform"
          },
          "id": 1417469681,
          "name": "ticket-support.support-taskform.form",
          "status": 0
      }}
      

      The endpoint used is http://server/kie-server/services/rest/server/containers/container/forms/processes/pId?filter=true.

      The process definition form is "ticket-support.support-taskform.form", it makes use of a Single Subform ("component-ticket.form") and a Multiple Subform ("issue-subform.form")... the rest call does not return subforms details when trying to retrieve it for processes... it works for task forms if using "filter=true". Also there are a lot of "quots" for some attributes such as errorMessage, label etc.

              rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
              rhn-support-ajuricic Amana Juricic
              Dominik Hanak Dominik Hanak
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: