workflow::get_id (public)

 workflow::get_id [ -package_key package_key ] [ -object_id object_id ] \
    -short_name short_name

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

Get workflow_id by short_name and object_id. Provide either package_key or object_id.

Switches:
-package_key (optional)
The key of the package workflow belongs to.
-object_id (optional)
The ID of the object the workflow's for (typically a package instance)
-short_name (required)
the short name of the workflow you want
Returns:
The id of the workflow or the empty string if no workflow was found.
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 bug_tracker::bug::get_package_workflow_id bug_tracker::bug::get_package_workflow_id (public) workflow::get_id workflow::get_id bug_tracker::bug::get_package_workflow_id->workflow::get_id bug_tracker::bug::new bug_tracker::bug::new (public) bug_tracker::bug::new->workflow::get_id workflow::test::workflow_id workflow::test::workflow_id (public) workflow::test::workflow_id->workflow::get_id util_memoize util_memoize (public) workflow::get_id->util_memoize workflow::cache_timeout workflow::cache_timeout (private) workflow::get_id->workflow::cache_timeout workflow::get_id_not_cached workflow::get_id_not_cached (private) workflow::get_id->workflow::get_id_not_cached

Testcases:
No testcase defined.
Source code:
    set workflow_id [util_memoize [list workflow::get_id_not_cached  -package_key $package_key  -object_id $object_id  -short_name $short_name] [workflow::cache_timeout]]

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