workflow::role::new (public)

 workflow::role::new -workflow_id workflow_id [ -role_id role_id ] \
    [ -short_name short_name ] -pretty_name pretty_name \
    [ -sort_order sort_order ] [ -callbacks callbacks ]

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

Creates a new role for a workflow.

Switches:
-workflow_id (required)
The ID of the workflow the new role belongs to
-role_id (optional)
-short_name (optional)
The short_name of the new role
-pretty_name (required)
The pretty name of the new role
-sort_order (optional)
-callbacks (optional)
A list of names service-contract implementations.
Returns:
role_id
Authors:
Peter Marklund
Lars Pind <lars@collaboraid.biz>

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

Testcases:
No testcase defined.
Source code:
        
    # Wrapper for workflow::role::edit

    foreach elm { short_name pretty_name sort_order callbacks } {
        set row($elm) [set $elm]
    }

    set role_id [workflow::role::edit  -operation "insert"  -role_id $role_id  -workflow_id $workflow_id  -array row]

    return $role_id
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/workflow/tcl/role-procs.xql

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