Transaction Line Pipeline Viewer
post
/rest/v7/commerceDocuments{ProcessVarName}{MainDocVarName}/{_id}/{subDocVarName}/{subDocNumber}/actions/_pipelineViewer
The Pipeline Viewer action is used to check rules that are in effect for the current Commerce process. This action returns only sub-document items.
Request
Path Parameters
-
MainDocVarName: string
The variable name of the main document, the first letter must be capitalized
-
ProcessVarName: string
The variable name of the Commerce process, the first letter must be capitalized
-
_id: integer
Current unique user-side ID. This is the internal identifier for a transaction within a CPQ site.
-
subDocNumber: string
Unique document number for this sub doc to be used as document identifier in a commerce process
-
subDocVarName: string
The variable name of the sub-document
Root Schema : commerceTransactionLine-pipelineViewerRequest
Type:
Show Source
object
-
cacheInstanceId(optional):
string
Title:
Cache Instance Id
The unique identifier for the entry of transaction data stored in the cache. Only valid cache instance ids are supported. The '- 1' value is not supported. 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.
Response
Default Response
Root Schema : commerceTransactionLine-pipelineViewerResponse
Type:
Show Source
object
-
cacheInstanceId(optional):
string
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. -
pipelineViewerRules(optional):
array Rules
Title:
Rules
Rules associated with the transaction.
Nested Schema : Rules
Type:
array
Title:
Rules
Rules associated with the transaction.
Show Source
-
Array of:
object Rule
Title:
Rule
Rule definition.
Nested Schema : Rule
Type:
object
Title:
Rule
Rule definition.
Show Source
-
components(optional):
object Components
Title:
Components
Rule Components. -
name(optional):
string
Title:
Name
Rule name. -
type(optional):
string
Title:
Type
Rule type.
Nested Schema : Components
Type:
object
Title:
Components
Rule Components.
Show Source
-
mainDoc(optional):
object Main document
Title:
Main document
Rules in main document. -
subDoc(optional):
object Sub document
Title:
Sub document
Rules in sub document.
Nested Schema : Main document
Type:
object
Title:
Main document
Rules in main document.
Show Source
-
actions(optional):
array Actions
Title:
Actions
Rules in actions. -
attributes(optional):
array Attributes
Title:
Attributes
Rules in attributes.
Nested Schema : Sub document
Type:
object
Title:
Sub document
Rules in sub document.
Show Source
-
actions(optional):
array Actions
Title:
Actions
Rules in actions. -
attributes(optional):
array Attributes
Title:
Attributes
Rules in attributes.
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/v7/commerceDocumentsOraclecpqoTransaction/18016533/lineItem/2actions/_pipelineViewer
Response Body Sample
{ "cacheInstanceId": "bDYxrCAnUwiVpYXUGDoT1GilCF0CFMPEGTcuKCPER3QFuxHJf33AYtAU1atZItpt" }
Response Body Sample
{ "pipelineViewerRules": [{ "name": "Hiding: Unhide Rules- Hiding Panel Subdoc", "type": "Hiding Rule", "components": { "mainDoc": { "attributes": [], "actions": [] }, "subDoc": { "attributes": [ "Hiding Tab 3 Attribute 1 Subdoc [hidingTab3Attribute1Subdoc]", "Hiding Tab 1 Attribute 2 Subdoc [hidingTab1Attribute2Subdoc]", "Hiding Tab 2 Attribute 2 Subdoc [hidingTab2Attribute2Subdoc]", "Hiding Tab 1 Attribute 1 Subdoc [hidingTab1Attribute1Subdoc]" ], "actions": [] } } }, { "name": "Composite Sub Hiding", "type": "Hiding Rule", "components": { "mainDoc": { ... }, "subDoc": { ... } } }, { "name": "Constrain Commerce BOM Attribute Mapping Rules - Float to Float", "type": "Constraint Rule", "components": { "mainDoc": { ... }, "subDoc": { ... } } } ] }