Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-17425

Handle contextParameters in automation client

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.0-HF14, 7.3
    • Fix Version/s: 6.0-HF16, 7.4
    • Component/s: Automation
    • Sprint:
      TGV 02

      Description

      When using a content enricher, the contextParamters are in the JSON response, but document object in automation client does not map this values

      Example :

      PaginableDocuments docs =
                              (PaginableDocuments)session.newRequest(operationID)
                              .setHeader(Constants.HEADER_NX_SCHEMAS, "*")
      						.setHeader("X-NXContext-Category", "custom-enricher")
      

      Json response (snippet) :

      "contextParameters": {
              "myCustomEnricher": {
                  "myProp": "Value1"
              }
          }
      

      In automation client, I should be able to get Value1 in myDoc.getContextParameters()

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: