IBM Sterling OMS
Complete Commands, Samples & Purge Codes Guide
DTK Download and Setup
Initialize your Sterling Development Toolkit environment
RecommendedDownload & Extract
# Download DTK from Sterling Self Service Tool (SST) wget https://sst.ibm.com/dtk/latest/dtk-installer.zip # Extract DTK unzip dtk-installer.zip -d /opt/sterling/dtk/
Environment Setup
# Set environment variables export STERLING_HOME=/opt/sterling export DTK_HOME=$STERLING_HOME/dtk export PATH=$DTK_HOME/bin:$PATH
Cleanup Commands
# Remove old Docker images docker rmi $(docker images -q sterling/oms:old-version) # Remove proxy settings (if applicable) unset http_proxy unset https_proxy
Build Process Configuration
Configure properties and build your Sterling applications
Property File Configuration
# sterling.properties - Local Environment Setup # Exclude unwanted services ENABLE_CALL_CENTER=false ENABLE_SMA=false ENABLE_SBC=false ENABLE_STORE_COLLABORATION=false # Database Configuration DB_HOST=localhost DB_PORT=5432 DB_NAME=sterling_oms DB_USER=sterling DB_PASSWORD=sterling123 # Application Server Settings APP_SERVER_HOST=localhost APP_SERVER_PORT=9080 APP_SERVER_ADMIN_PORT=9043 # JVM Settings JVM_MIN_HEAP=2048m JVM_MAX_HEAP=4096m
RecommendedANT Build Commands
# Navigate to project directory cd /opt/sterling/projects/custom-extensions # Clean and build ant clean ant build-jar ant -Dtarget.env=dev build-extensions ant build-ear -Dapp.version=1.0.0 ant deploy-local
AlternativeMaven Build Alternative
# Maven build commands mvn clean compile mvn package mvn deploy -Denv=production
Complete Purge Codes Reference
Comprehensive list of Sterling OMS purge codes and configurations
Code | Name | Description | Retention Period | Associated Data |
---|---|---|---|---|
20 | COMPLETE_ORDERS | Purge completed orders | 90 days | Order headers, lines, shipments |
21 | CANCELLED_ORDERS | Purge cancelled orders | 30 days | Order headers, audit trail |
22 | DRAFT_ORDERS | Purge draft orders | 7 days | Incomplete order data |
23 | SHIPMENT_DATA | Purge shipment records | 180 days | Shipment details, tracking |
24 | INVOICE_DATA | Purge invoice records | 365 days | Invoice headers, lines |
25 | PAYMENT_DATA | Purge payment transactions | 1095 days | Payment records, settlements |
No comments:
Post a Comment