workflow::case::get_notification_object (public)

 workflow::case::get_notification_object -type type \
    [ -workflow_id workflow_id ] [ -case_id case_id ]

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

Get the relevant object for this notification type.

Switches:
-type
(required)
Type is one of 'workflow_assignee', 'workflow_my_cases', 'workflow_case' (requires case_id), and 'workflow' (requires workflow_id).
-workflow_id
(optional)
-case_id
(optional)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/bug-tracker/www/notifications.tcl packages/bug-tracker/ www/notifications.tcl workflow::case::get_notification_object workflow::case::get_notification_object packages/bug-tracker/www/notifications.tcl->workflow::case::get_notification_object workflow::case::action::notify workflow::case::action::notify (public) workflow::case::action::notify->workflow::case::get_notification_object workflow::case::get_notification_request_url workflow::case::get_notification_request_url (public) workflow::case::get_notification_request_url->workflow::case::get_notification_object workflow::case::get_element workflow::case::get_element (public) workflow::case::get_notification_object->workflow::case::get_element workflow::get_element workflow::get_element (public) workflow::case::get_notification_object->workflow::get_element

Testcases:
No testcase defined.
Source code:
    switch $type {
        workflow_case {
            if { (![info exists case_id] || $case_id eq "") } {
                return {}
            }
            return [workflow::case::get_element -case_id $case_id -element object_id]
        }
        default {
            if { (![info exists workflow_id] || $workflow_id eq "") } {
                return {}
            }
            return [workflow::get_element -workflow_id $workflow_id -element object_id]
        }
    }
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: