Pipeline Viewer - Transaction

post

/rest/v16/commerceDocuments{ProcessVarName}{MainDocVarName}/{id}/actions/_pipelineViewer

Use this endpoint to display the rules that are in effect for the current Commerce process. This operation returns both transaction and transaction line items.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Transaction-_pipelineViewerRequest
Type: object
Show Source
  • Title: Cache Instance Id
    The unique identifier for the entry of transaction data stored in the cache. This typically is obtained from first createTransaction or OpenTransaction action and passed along in subsequent Modify/Interact action to avoid reload transaction data from db.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Transaction-_pipelineViewerResponse
Type: object
Show Source
  • Title: Cache Instance Id
    The unique identifier for the entry of transaction data stored in the cache. This typically is obtained from first createTransaction or OpenTransaction action and passed along in subsequent Modify/Interact action to avoid reload transaction data from db.
  • Rules
    Title: Rules
    Rules associated with the transaction.
Nested Schema : Rules
Type: array
Title: Rules
Rules associated with the transaction.
Show Source
Nested Schema : Rule
Type: object
Title: Rule
Rule definition.
Show Source
Nested Schema : Components
Type: object
Title: Components
Rule components
Show Source
Nested Schema : Main document
Type: object
Title: Main document
Rules in main document
Show Source
Nested Schema : Sub document
Type: object
Title: Sub document
Rules in sub document
Show Source
Nested Schema : Actions
Type: array
Title: Actions
Rules in actions
Show Source
Nested Schema : Attributes
Type: array
Title: Attributes
Rules in attributes
Show Source
Nested Schema : Actions
Type: array
Title: Actions
Rules in actions
Show Source
Nested Schema : Attributes
Type: array
Title: Attributes
Rules in attributes
Show Source
Back to Top

Examples

The following example shows how to check rules that are in effect for the current Commerce process by submitting POST requests to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X POST - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/commerceDocumentsOraclecpqoTransaction/18016533/actions/_pipelineViewer

Response Body Sample

{
"cacheInstanceId": "bDYxrCAnUwiVpYXUGDoT1GilCF0CFMPEGTcuKCPER3QFuxHJf33AYtAU1atZItpt"
}

Response Body Sample

{
   "pipelineViewerRules": [{
         "name": "Hide Level 2 Reason Approver",
      "type": "Hiding Rule",
      "components": {
        "mainDoc": {
          "attributes": [{
              "name": "Hiding Attribute 1",
              "variableName": "hidingAttribute1"
            }, {
              ...
          }],
          "actions": [{
              "name": "Hiding Action 1",
              "variableName": "hidingAction1"
            }, {
              ...
               }
                 ]
              },
         "subDoc": {
           "attributes": [{
              "name": "Hiding Attribute 10",
              "variableName": "hidingAttribute10"
            }, {
              ...
          }],
          "actions": [{
              "name": "Hiding Action 10",
              "variableName": "hidingAction10"
            }, {
              ...
                     }
                     ]
                  }
               }
            }, {
      "name": "Hide Level 3 Reason Approver",
      "type": "Hiding Rule",
      "components": {
        "mainDoc": {
          ...
        },
        "subDoc": {
          ...
            }
         }
      }
   ]
}
Back to Top