workflow::definition_changed_handler (public)

 workflow::definition_changed_handler -workflow_id workflow_id

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

Should be called when the workflow definition has changed while there are active cases. Will update the record of enabled actions in each of the case, so they reflect the new workflow.

Switches:
-workflow_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::action::edit workflow::action::edit (public) workflow::definition_changed_handler workflow::definition_changed_handler workflow::action::edit->workflow::definition_changed_handler workflow::action::fsm::edit workflow::action::fsm::edit (public) workflow::action::fsm::edit->workflow::definition_changed_handler workflow::action::fsm::set_enabled_in_state workflow::action::fsm::set_enabled_in_state (public) workflow::action::fsm::set_enabled_in_state->workflow::definition_changed_handler workflow::install::after_upgrade workflow::install::after_upgrade (private) workflow::install::after_upgrade->workflow::definition_changed_handler workflow::role::edit workflow::role::edit (public) workflow::role::edit->workflow::definition_changed_handler db_list db_list (public) workflow::definition_changed_handler->db_list workflow::case::state_changed_handler workflow::case::state_changed_handler (private) workflow::definition_changed_handler->workflow::case::state_changed_handler workflow::flush_cache workflow::flush_cache (private) workflow::definition_changed_handler->workflow::flush_cache

Testcases:
No testcase defined.
Source code:
    workflow::flush_cache -workflow_id $workflow_id

    set case_ids [db_list select_cases { select case_id from workflow_cases where workflow_id = :workflow_id }]

    foreach case_id $case_ids {
        workflow::case::state_changed_handler  -case_id $case_id
    }
Generic XQL file:
packages/workflow/tcl/workflow-procs.xql

PostgreSQL XQL file:
packages/workflow/tcl/workflow-procs-postgresql.xql

Oracle XQL file:
packages/workflow/tcl/workflow-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: