Skip to content

uc-apx create process clear-session-state

Splice a process ... type: clearSessionState into a page. Typically used on form pages to reset session state after a delete operation. No execution.point is emitted; APEX infers the point from context.

uc-apx create process clear-session-state [flags]
FlagTypeDefaultDescription
--dry-runPrint rendered process to stdout without writing
--idstringOverride the construct id (default: kebab-case of —name)
--namestringDisplay name of the process [required]
--pagestringTarget page (numeric ID, alias, or name) [required]
--sequenceintexecution.sequence (default: max existing process sequence on page + 10)
--server-side-conditionstringFree-form serverSideCondition; mutually exclusive with —when-button-pressed
--when-button-pressedstringShortcut: gate on this button ID (sets serverSideCondition.whenButtonPressed)
FlagTypeDefaultDescription
--app-dirstring.Path to the APEX application directory
--json-prettyOutput in pretty-printed JSON (human-readable) instead of minified JSON
--toonOutput in TOON format (human-readable, token-efficient) instead of JSON
Terminal window
uc-apx create process clear-session-state \
--page 50 \
--name "Reset Page" \
--when-button-pressed delete

Using --dry-run to preview the generated construct (no files are written):

Terminal window
uc-apx --app-dir examples/brookstrut create process clear-session-state --page 46 --name Clear State --dry-run
Generated APEXlang
process clear-state (
name: Clear State
type: clearSessionState
execution {
sequence: 20
}
)