workflow::action::get_ids (public)

 workflow::action::get_ids [ -all ] -workflow_id workflow_id \
    [ -parent_action_id parent_action_id ]

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

Get the action_id's of all the actions in the workflow.

Switches:
-all (optional, boolean)
-workflow_id (required)
The ID of the workflow
-parent_action_id (optional)
Returns:
list of action_id's.
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::action::fsm::get_ids workflow::action::fsm::get_ids (public) workflow::action::get_ids workflow::action::get_ids workflow::action::fsm::get_ids->workflow::action::get_ids workflow::get_actions workflow::get_actions (public) workflow::get_actions->workflow::action::get_ids workflow::action::get_all_info workflow::action::get_all_info (private) workflow::action::get_ids->workflow::action::get_all_info workflow::action::get_element workflow::action::get_element (public) workflow::action::get_ids->workflow::action::get_element

Testcases:
No testcase defined.
Source code:
    # Use cached data about actions
    array set action_data [workflow::action::get_all_info -workflow_id $workflow_id]

    if { $all_p } {
        return $action_data(action_ids)
    }

    set action_ids [list]
    foreach action_id $action_data(action_ids) {
        if { [workflow::action::get_element  -action_id $action_id  -element parent_action_id] == $parent_action_id } {
            lappend action_ids $action_id
        }
    }
    return $action_ids
Generic XQL file:
packages/workflow/tcl/action-procs.xql

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

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

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