| Publicity: |
|---|
| [Public Only | All] |
Procedures in the workflow::role namespace.
- Location:
- packages/workflow/tcl/role-procs.tcl
- Created:
- 8 January 2003
- Authors:
- Lars Pind <lars@collaboraid.biz>
- Peter Marklund <peter@collaboraid.biz>
- CVS Identification:
$Id: role-procs.tcl,v 1.22 2004/01/27 15:42:21 lars Exp $
workflow::role::callback_insert (public)workflow::role::callback_insert -role_id role_id -name name \
[ -sort_order sort_order ]
Add an assignment rule to a role. |
workflow::role::delete (public)workflow::role::delete -role_id role_id Delete workflow role with given id. |
workflow::role::edit (public)workflow::role::edit [ -operation operation ] [ -role_id role_id ] \
[ -workflow_id workflow_id ] [ -array array ] [ -internal ] \
[ -no_complain ] [ -handlers handlers ]
Edit a workflow role. Attributes of the array are: short_name pretty_name sort_order callbacks. |
workflow::role::generate_short_name (public)workflow::role::generate_short_name -workflow_id workflow_id \
-pretty_name pretty_name [ -short_name short_name ] \
[ -role_id role_id ]
Generate a unique short_name from pretty_name. |
workflow::role::get (public)workflow::role::get -role_id role_id -array array Return information about a role in an array. |
workflow::role::get_element (public)workflow::role::get_element [ -role_id role_id ] [ -one_id one_id ] \
-element element
Return a single element from the information about a role. |
workflow::role::get_existing_short_names (public)workflow::role::get_existing_short_names -workflow_id workflow_id \
[ -ignore_role_id ignore_role_id ]
Returns a list of existing role short_names in this workflow. Useful when you're trying to ensure a short_name is unique, or construct a new short_name that is guaranteed to be unique. |
workflow::role::get_id (public)workflow::role::get_id -workflow_id workflow_id -short_name short_name Return the role_id of the role with the given short_name in the given workflow. |
workflow::role::get_options (public)workflow::role::get_options -workflow_id workflow_id [ -id_values ] Get a list of roles in a workflow for use in the 'options' property of a form builder form element. |
workflow::role::get_workflow_id (public)workflow::role::get_workflow_id -role_id role_id Lookup the workflow_id of a certain role_id. |
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 ]
Creates a new role for a workflow. |