uc-apx create process execute-code
Splice a process ... type: executeCode source { plsqlCode: ... }
into a page. Identical to create process plsql; the name matches
the MMD type for discoverability.
uc-apx create process execute-code [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--code | string | PL/SQL body to run (literal text or @path/to/file.sql to read from disk) [required] | |
--dry-run | Print rendered process to stdout without writing | ||
--id | string | Override the construct id (default: kebab-case of —name) | |
--name | string | Display name of the process [required] | |
--page | string | Target page (numeric ID, alias, or name) [required] | |
--point | string | beforeHeader | execution.point: afterAuthentication, afterComputation, afterFooter, afterHeader, afterLogout, afterProcessing, afterRegions, afterSubmit, afterValidations, beforeComputation, beforeFooter, beforeHeader, beforeLogout, beforeProcessing, beforeRegions, beforeValidations, onLoad, onSubmit, processing, validation |
--sequence | int | execution.sequence (default: max existing process sequence at this point + 10) | |
--server-side-condition | string | Optional serverSideCondition body, e.g. “requestIsContainedInValue=CREATE,SAVE” |
Global Flags
Section titled “Global Flags”| Flag | Type | Default | Description |
|---|---|---|---|
--app-dir | string | . | Path to the APEX application directory |
--json-pretty | Output in pretty-printed JSON (human-readable) instead of minified JSON | ||
--toon | Output in TOON format (human-readable, token-efficient) instead of JSON |
Examples (from help)
Section titled “Examples (from help)”uc-apx create process execute-code \ --page 71 \ --name "Count Clicks" \ --code "insert into eba_cust_clicks (cust_id) values (:P71_ID);" \ --point beforeHeaderExample Generated APEXlang
Section titled “Example Generated APEXlang”Using --dry-run to preview the generated construct (no files are written):
uc-apx --app-dir examples/brookstrut create process execute-code --page 46 --name Init Filter --code :P46_SEARCH := nvl(:P46_SEARCH, '%'); --point beforeHeader --dry-runGenerated APEXlang
process init-filter ( name: Init Filter type: executeCode execution { sequence: 20 point: beforeHeader } source { plsqlCode: ```plsql :P46_SEARCH := nvl(:P46_SEARCH, '%'); ``` } )