workflow::role::edit (public)
workflow::role::edit [ -operation operation ] [ -role_id role_id ] \ [ -workflow_id workflow_id ] [ -array array ] [ -internal ] \ [ -no_complain ] [ -handlers handlers ]
Defined in packages/workflow/tcl/role-procs.tcl
Edit a workflow role. Attributes of the array are: short_name pretty_name sort_order callbacks.
- Switches:
- -operation (optional, defaults to
"update"
)- insert, update, delete
- -role_id (optional)
- For update/delete: The role to update or delete. For insert: Optionally specify a pre-generated role_id for the role.
- -workflow_id (optional)
- For update/delete: Optionally specify the workflow_id. If not specified, we will execute a query to find it. For insert: The workflow_id of the new role.
- -array (optional)
- For insert/update: Name of an array in the caller's namespace with attributes to insert/update.
- -internal (optional, boolean)
- Set this flag if you're calling this proc from within the corresponding proc for a particular workflow model. Will cause this proc to not flush the cache or call workflow::definition_changed_handler, which the caller must then do.
- -no_complain (optional, boolean)
- Silently ignore extra attributes that we don't know how to handle.
- -handlers (optional)
- Returns:
- role_id
- Authors:
- Peter Marklund
- Lars Pind <lars@collaboraid.biz>
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.