transition_db_pre_save
The transition_db_pre_save callback — a plugin action inside a workflow transition. Registering callbacks, wiring them into a transition, the payload, and error behavior.
Registering callbacks
callbacks:
transition_db_pre_save:
set_comment:
exec:
service: "node"
commands:
- prog: "node"
stdin: { type: body }
stdout: { type: body }
args:
- { type: "value", value: "%_exec.pluginDir%/server/set_comment.js" }
check:
plugin_user: # optional — act as a configured user
base_config: "user.api_user"
exec: { … }Wiring a callback into a transition
The payload
Errors
Example
See also
Last updated