workflow::role::parse_spec (private)

 workflow::role::parse_spec -workflow_id workflow_id \
    -short_name short_name -spec spec

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

Parse the spec for an individual role definition.

Switches:
-workflow_id (required)
The id of the workflow the role should be added to.
-short_name (required)
The short_name of the role
-spec (required)
The roles spec
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::role::new workflow::role::new (public) workflow::role::parse_spec workflow::role::parse_spec workflow::role::parse_spec->workflow::role::new

Testcases:
No testcase defined.
Source code:
    # Initialize array with default values
    array set role { callbacks {} }
    
    # Get the info from the spec
    foreach { key value } $spec {
        set role($key) [string trim $value]
    }

    # Create the role
    set role_id [workflow::role::new  -workflow_id $workflow_id  -short_name $short_name  -pretty_name $role(pretty_name)  -callbacks $role(callbacks)
            ]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/workflow/tcl/role-procs.xql

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