workflow::edit (public)
workflow::edit [ -operation operation ] [ -workflow_id workflow_id ] \ [ -array array ] [ -internal ] [ -no_complain ]
Defined in packages/workflow/tcl/workflow-procs.tcl
Edit a workflow. Attributes of the array are:
- short_name
- pretty_name
- object_id
- package_key
- object_type
- description
- description_mime_type
- callbacks
- context_id
- creation_user
- creation_ip
- Switches:
- -operation (optional, defaults to
"update"
)- insert, update, delete
- -workflow_id (optional)
- For update/delete: The workflow to update or delete.
- -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.
- Returns:
- workflow_id
- Authors:
- Peter Marklund
- Lars Pind <lars@collaboraid.biz>
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.