workflow::case::get_notification_request_url (public)

 workflow::case::get_notification_request_url -type type \
    [ -workflow_id workflow_id ] [ -case_id case_id ] \
    [ -return_url return_url ] [ -pretty_name pretty_name ]

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

Get the URL to subscribe to notifications

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)
-return_url (optional)
-pretty_name (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::case::get_notification_requests_multirow workflow::case::get_notification_requests_multirow (public) workflow::case::get_notification_request_url workflow::case::get_notification_request_url workflow::case::get_notification_requests_multirow->workflow::case::get_notification_request_url ad_conn ad_conn (public) workflow::case::get_notification_request_url->ad_conn ad_return_url ad_return_url (public) workflow::case::get_notification_request_url->ad_return_url notification::display::subscribe_url notification::display::subscribe_url (public) workflow::case::get_notification_request_url->notification::display::subscribe_url workflow::case::get_notification_object workflow::case::get_notification_object (public) workflow::case::get_notification_request_url->workflow::case::get_notification_object

Testcases:
No testcase defined.
Source code:
    if { [ad_conn user_id] == 0 } {
        return {}
    }
    
    set object_id [get_notification_object  -type $type  -workflow_id $workflow_id  -case_id $case_id]

    if { $object_id eq "" } {
        return {}
    }

    if { (![info exists return_url] || $return_url eq "") } {
        set return_url [ad_return_url]
    }

    set url [notification::display::subscribe_url  -type $type  -object_id  $object_id  -url $return_url  -user_id [ad_conn user_id]  -pretty_name $pretty_name]
    
    return $url
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: