workflow::action::edit (public)

 workflow::action::edit [ -operation operation ] \
    [ -action_id action_id ] [ -workflow_id workflow_id ] \
    [ -array array ] [ -internal ] [ -no_complain ] \
    [ -handlers handlers ]

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

Edit an action. Attributes of the array:

  • short_name
  • pretty_name
  • pretty_past_tense
  • edit_fields
  • description
  • description_mime_type
  • sort_order
  • always_enabled_p
  • assigned_role
  • timeout_seconds
  • trigger_type
  • parent_action
  • parent_action_id
  • privileges
  • allowed_roles
  • callbacks
  • child_actions
Deprecated but still supported:
  • initial_action_p

Switches:
-operation
(defaults to "update") (optional)
insert, update, delete
-action_id
(optional)
For update/delete: The action to update or delete. For insert: Optionally specify a pre-generated action_id for the action.
-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 action.
-array
(optional)
For insert/update: Name of an array in the caller's namespace with attributes to insert/update.
-internal
(boolean) (optional)
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
(boolean) (optional)
Silently ignore extra attributes that we don't know how to handle.
-handlers
(defaults to " roles "workflow::role" actions "workflow::action" ") (optional)
Returns:
action_id
Author:
Lars Pind <lars@collaboraid.biz>
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::action::delete workflow::action::delete (public) workflow::action::edit workflow::action::edit workflow::action::delete->workflow::action::edit workflow::action::fsm::edit workflow::action::fsm::edit (public) workflow::action::fsm::edit->workflow::action::edit workflow::action::new workflow::action::new (public) workflow::action::new->workflow::action::edit db_boolean db_boolean (public) workflow::action::edit->db_boolean db_dml db_dml (public) workflow::action::edit->db_dml db_map db_map (public) workflow::action::edit->db_map db_nextval db_nextval (public) workflow::action::edit->db_nextval db_transaction db_transaction (public) workflow::action::edit->db_transaction

Testcases:
No testcase defined.
[ show source ]
Show another procedure: