workflow::case::action::execute (public)

 workflow::case::action::execute [ -no_notification ] \
    [ -no_perm_check ] [ -no_logging ] \
    [ -enabled_action_id enabled_action_id ] [ -case_id case_id ] \
    [ -action_id action_id ] \
    [ -parent_enabled_action_id parent_enabled_action_id ] \
    [ -comment comment ] [ -comment_mime_type comment_mime_type ] \
    [ -user_id user_id ] [ -initial ] [ -entry_id entry_id ] \
    [ -package_id package_id ]

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

Execute the action. Either provide (case_id, action_id, parent_enabled_action_id), or simply enabled_action_id.

Switches:
-no_notification
(boolean) (optional)
-no_perm_check
(boolean) (optional)
Set this switch if you do not want to have any workflow_case loggings.
-no_logging
(boolean) (optional)
-enabled_action_id
(optional)
The ID of the enabled action to execute. Alternatively, you can specify the case_id/action_id pair.
-case_id
(optional)
The ID of the case.
-action_id
(optional)
The ID of the action
-parent_enabled_action_id
(optional)
-comment
(optional)
Comment for the case activity log
-comment_mime_type
(defaults to "text/plain") (optional)
MIME Type of the comment, according to OpenACS standard text formatting
-user_id
(optional)
The user who's executing the action
-initial
(boolean) (optional)
Use this switch to signal that this is the initial action. This causes permissions/enabled checks to be bypasssed, and causes all roles to get assigned.
-entry_id
(optional)
Optional item_id for double-click protection. If you call workflow::case::fsm::get with a non-empty action_id, it will generate a new entry_id for you, which you can pass in here.
-package_id
(optional)
The package_id the case object belongs to. This is optional but is useful if the case objects are not CR items.
Returns:
entry_id of the new log entry (will be a cr_item).
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::edit bug_tracker::bug::edit (public) workflow::case::action::execute workflow::case::action::execute bug_tracker::bug::edit->workflow::case::action::execute workflow::case::action::enable workflow::case::action::enable (private) workflow::case::action::enable->workflow::case::action::execute workflow::case::child_state_changed_handler workflow::case::child_state_changed_handler (private) workflow::case::child_state_changed_handler->workflow::case::action::execute workflow::case::new workflow::case::new (public) workflow::case::new->workflow::case::action::execute workflow::case::timed_actions_sweeper workflow::case::timed_actions_sweeper (public) workflow::case::timed_actions_sweeper->workflow::case::action::execute ad_conn ad_conn (public) workflow::case::action::execute->ad_conn db_string db_string (public) workflow::case::action::execute->db_string db_transaction db_transaction (public) workflow::case::action::execute->db_transaction oacs_util::vars_to_ns_set oacs_util::vars_to_ns_set (public, deprecated) workflow::case::action::execute->oacs_util::vars_to_ns_set package_instantiate_object package_instantiate_object (public) workflow::case::action::execute->package_instantiate_object

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