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):
- 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_idXQL Not present: PostgreSQL, Oracle Generic XQL file: packages/workflow/tcl/role-procs.xql