Transaction Pipeline Viewer
post
/rest/v7/commerceDocuments{ProcessVarName}{MainDocVarName}/{_id}/actions/_pipelineViewer
The Pipeline Viewer action is used to check rules that are in effect for the current Commerce process. This action returns both main document and 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.
Root Schema : commerceTransaction-pipelineViewerRequest
Type:
Show Source
object-
cacheInstanceId(optional):
string
Title:
Cache Instance IdThe unique identifier for the entry of transaction data stored in the cache. Only valid cache instance ids are supported. The '- 1' value is not supportedThis 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 : commerceTransaction-pipelineViewerResponse
Type:
Show Source
object-
cacheInstanceId(optional):
string
Title:
Cache Instance IdThe 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:
RulesRules associated with the transaction.
Nested Schema : Rules
Type:
arrayTitle:
RulesRules associated with the transaction.
Show Source
-
Array of:
object Rule
Title:
RuleRule definition.
Nested Schema : Rule
Type:
objectTitle:
RuleRule definition.
Show Source
-
components(optional):
object Components
Title:
ComponentsRule Components. -
name(optional):
string
Title:
NameRule name. -
type(optional):
string
Title:
TypeRule type.
Nested Schema : Components
Type:
objectTitle:
ComponentsRule Components.
Show Source
-
mainDoc(optional):
object Main document
Title:
Main documentRules in main document. -
subDoc(optional):
object Sub document
Title:
Sub documentRules in sub document.
Nested Schema : Main document
Type:
objectTitle:
Main documentRules in main document.
Show Source
-
actions(optional):
array Actions
Title:
ActionsRules in actions. -
attributes(optional):
array Attributes
Title:
AttributesRules in attributes.
Nested Schema : Sub document
Type:
objectTitle:
Sub documentRules in sub document.
Show Source
-
actions(optional):
array Actions
Title:
ActionsRules in actions. -
attributes(optional):
array Attributes
Title:
AttributesRules 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/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": {
...
}
}
}
]
}