workflow::case::fsm::get_current_state (public)

 workflow::case::fsm::get_current_state -case_id case_id

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

Gets the current state_id of this case.

Switches:
-case_id
(required)
The case_id.
Returns:
The state_id of the state which this case is in
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::case::fsm::get_element workflow::case::fsm::get_element (public) workflow::case::fsm::get_current_state workflow::case::fsm::get_current_state workflow::case::fsm::get_current_state->workflow::case::fsm::get_element

Testcases:
No testcase defined.
Source code:
    return [workflow::case::fsm::get_element -case_id $case_id -element state_id]
Generic XQL file:
<fullquery name="workflow::case::fsm::get_current_state.select_current_state">
    <querytext>
      select current_state
      from   workflow_case_fsm c
      where  c.case_id = :case_id
      and    c.parent_enabled_action_id is null
    </querytext>
</fullquery>
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: