workflow::action::fsm::edit (public)

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

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

Edit an action. Attributes:

  • new_state_id
  • enabled_states
  • enabled_state_ids
  • enabled_actions
  • enabled_action_ids
  • child_states

Switches:
-operation (optional, defaults to "update")
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 (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.
-handlers (optional, defaults to " roles "workflow::role" actions "workflow::action::fsm" states "workflow::state::fsm" ")
Returns:
action_id
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 packages/workflow/www/admin/action-ae.tcl packages/workflow/ www/admin/action-ae.tcl workflow::action::fsm::edit workflow::action::fsm::edit packages/workflow/www/admin/action-ae.tcl->workflow::action::fsm::edit packages/workflow/www/admin/delete-confirm.tcl packages/workflow/ www/admin/delete-confirm.tcl packages/workflow/www/admin/delete-confirm.tcl->workflow::action::fsm::edit workflow::action::fsm::delete workflow::action::fsm::delete (public) workflow::action::fsm::delete->workflow::action::fsm::edit workflow::action::fsm::new workflow::action::fsm::new (public) workflow::action::fsm::new->workflow::action::fsm::edit workflow::action::fsm::parse_spec workflow::action::fsm::parse_spec (private) workflow::action::fsm::parse_spec->workflow::action::fsm::edit db_dml db_dml (public) workflow::action::fsm::edit->db_dml db_string db_string (public) workflow::action::fsm::edit->db_string db_transaction db_transaction (public) workflow::action::fsm::edit->db_transaction workflow::action::edit workflow::action::edit (public) workflow::action::fsm::edit->workflow::action::edit workflow::action::get_element workflow::action::get_element (public) workflow::action::fsm::edit->workflow::action::get_element

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