Scaffolding Tools

Scaffolding Tools

Introduction

scl-gen is the SmartComponent Library’s command‑line code generator. It’s a scaffolding tool that creates common ABL helper classes for you instead of having to hand‑write the boilerplate code.

You run it from a proenv / terminal inside a folder of your PDSOE project, for example:

  • scl-gen Enum WeekdayEnum Monday Tuesday …

  • scl-gen Parameter MyRequest CustNum:INTEGER Comments

  • scl-gen NamedQuery MyCustomerQuery CustomerPerOrderedItemAndPaymentMethod Item CardType

Based on the chosen template (Enum, Parameter, NamedQuery, etc.) and the arguments you pass, scl‑gen locates the SmartComponentLibrary on PROPATH, applies the appropriate template and generates ready‑to‑use .cls files in your current folder. This standardizes patterns like value objects, parameter objects and strongly typed named queries, speeds up development, and keeps generated code consistent with SmartComponentLibrary best practices.