workflow::case::active_p (public)

 workflow::case::active_p -case_id case_id

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

Returns true if the case is active, otherwise false.

Switches:
-case_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 db_transaction db_transaction (public) workflow::case::get_enabled_actions workflow::case::get_enabled_actions (public, deprecated) workflow::case::active_p workflow::case::active_p workflow::case::active_p->db_transaction workflow::case::active_p->workflow::case::get_enabled_actions

Testcases:
No testcase defined.
Source code:
    # Implementation note: The case is active if there are any enabled actions, otherwise not
    db_transaction {
        set enabled_actions [workflow::case::get_enabled_actions -case_id $case_id]
    }
    
    return [expr {[llength $enabled_actions] > 0}]
Generic XQL file:
packages/workflow/tcl/case-procs.xql

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

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

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