Skip to content
ब्लॉग सूची पर वापस

Oracle CPQ को एक clean local project structure में sync करें

Oracle CPQ पर काम करने का सबसे तेज़ तरीका है अपनी CPQ configuration को एक सामान्य codebase की तरह treat करना: उसे locally sync करें, Git में version करें, और diffs के साथ changes review करें।

CPQ DevKit™ for Oracle आपको ठीक यही workflow देता है—“GET ALL …” commands के साथ, जो CPQ objects को एक predictable folder layout में pull करते हैं।

आपका folder structure configurable है

project.config.jsonc नियंत्रित करता है कि हर CPQ object type locally कहाँ जाएगा:

jsonc
{  "folderSettings": {    "files": "_files",    "assets": "_assets",    "parts": "_parts",    "tables": "_tables",    "utilFunctions": "_utils",    "commerceFunctions": "_commerce",    "integrations": "_integrations"  }}

एक बार आपके folders आपकी टीम के conventions से match कर जाएँ, तो sync commands हमेशा उन्हीं locations में consistently लिखते हैं।

Command Palette (Cmd/Ctrl+Shift+P) खोलें और run करें:

  • CPQ DevKit™ for Oracle: Get all Data and Metadata (metadata catalog जो extension smarter editing के लिए उपयोग करता है)
  • CPQ DevKit™ for Oracle: GET ALL Tables (tables को आपके tables folder में और एक छोटी index file .cpqdevkit/ के अंदर लिखता है)
  • CPQ DevKit™ for Oracle: GET ALL BML (util/commerce functions को आपके functions folders में लिखता है)
  • CPQ DevKit™ for Oracle: GET ALL Files (File Manager assets को आपके files folder में download करता है)

इनमें से कई commands आपके workspace folder पर right-click करने पर Explorer context menu से भी उपलब्ध हैं।

“GET ALL Tables” क्या produce करता है (और यह क्यों मायने रखता है)

जब आप Data Tables download करते हैं, तो CPQ DevKit लिखता है:

  • आपके tables folder के अंदर Table JSON files (उदाहरण: _tables/<folderVar>/<TableName>.json)
  • .cpqdevkit/ocpq/data-tables.json पर एक Data Table index

यह index navigation features द्वारा उपयोग किया जाता है (जैसे BML के अंदर BMQL strings से “Go to Definition”)।

Secrets को Git से बाहर रखें

आपके Oracle CPQ credentials .cpqdevkit/developer.config.jsonc में रहते हैं। CPQ DevKit का setup command .cpqdevkit/** को .gitignore में automatically जोड़ देता है—इसे ऐसा ही रखें और version control में केवल project.config.jsonc (और आपके downloaded CPQ assets) commit करें।