workflow::state::fsm::parse_spec (private)
workflow::state::fsm::parse_spec -workflow_id workflow_id \ -short_name short_name -spec spec \ [ -parent_action_id parent_action_id ]
Defined in packages/workflow/tcl/state-procs.tcl
Parse the spec for an individual state definition.
- Switches:
- -workflow_id (required)
- The id of the workflow to delete.
- -short_name (required)
- The short_name of the state
- -spec (required)
- The state spec
- -parent_action_id (optional)
- Author:
- Lars Pind <lars@collaboraid.biz>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # Initialize array with default values array set state { hide_fields {} } # Get the info from the spec foreach { key value } $spec { set state($key) [string trim $value] } set state(short_name) $short_name set state(parent_action_id) $parent_action_id # Create the state set state_id [workflow::state::fsm::edit -operation "insert" -workflow_id $workflow_id -array state]XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/workflow/tcl/state-procs.xql