workflow::fsm::get_initial_state (public)

 workflow::fsm::get_initial_state -workflow_id workflow_id

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

Get the id of the state that a workflow case is in once it's started (after the initial action is fired).

Switches:
-workflow_id (required)
Author:
Peter Marklund

Testcases:
No testcase defined.
Source code:
    set initial_action_id [workflow::get_element  -workflow_id $workflow_id  -element initial_action_id]

    set initial_state [workflow::action::fsm::get_element  -action_id $initial_action_id  -element new_state_id]

    return $initial_state
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: