projectParamsObject
The projectParams object defines properties for project types, typically pre-declared via a define
in the domain parameter file. A projectObject’s type
references a projectParams key. It currently carries only the Helix extension block.
-
keystring - Unique identifier for the project type (a project’s `type` references this).
-
cloneprojectParamsKey - Inherit values from another project type.
-
helixhelixObject - Helix-specific project configuration (see below).
Helix extensions
Section titled “Helix extensions”The helix block is a Helix addition to projectParams (ignored by Spiral itself). It defines the
project type’s lead stop and its server-side lifecycle hooks. onCreate / onComplete are "fnName()"
specs resolved against the client crud module — see Backend hooks.
-
rootstopParamsKey - The lead (root) stop type the project is built around. Creating a project from a customer template seeds its root stop with this type.
-
onCreatespecdefaultnull - Function called when a project of this type is created live (after scheduling has started), with `this` = the project — e.g. "stampCreated()". Runs before the write, so a stamped field persists.
-
onCompletespecdefaultnull - Function called once when every stop of the project has reached the DONE state, with `this` = the project.