workflow::action::fsm::parse_spec (private)

 workflow::action::fsm::parse_spec -workflow_id workflow_id \
    -short_name short_name -spec spec \
    [ -parent_action_id parent_action_id ]

Defined in packages/workflow/tcl/action-procs.tcl

Parse the spec for an individual action definition.

Switches:
-workflow_id (required)
The id of the workflow to delete.
-short_name (required)
The short_name of the action
-spec (required)
The action spec
-parent_action_id (optional)
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::action::fsm::edit workflow::action::fsm::edit (public) workflow::action::fsm::parse_spec workflow::action::fsm::parse_spec workflow::action::fsm::parse_spec->workflow::action::fsm::edit

Testcases:
No testcase defined.
Source code:
    # Initialize array with default values
    array set action {
        pretty_past_tense {}
        edit_fields {}
        allowed_roles {}
        assigned_role {}
        privileges {}
        always_enabled_p f
        enabled_states {}
        assigned_states {}
        new_state {}
        trigger_type user
        callbacks {}
    }

    # Get the info from the spec
    foreach { key value } $spec {
        set action($key) [string trim $value]
    }
    set action(short_name) $short_name
    set action(parent_action_id) $parent_action_id

    # Create the action
    set action_id [workflow::action::fsm::edit  -operation "insert"  -workflow_id $workflow_id  -array action]
Generic XQL file:
packages/workflow/tcl/action-procs.xql

PostgreSQL XQL file:
packages/workflow/tcl/action-procs-postgresql.xql

Oracle XQL file:
packages/workflow/tcl/action-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: