xo::db::sql::workflow_case proc start_case (public)
xo::db::sql::workflow_case start_case [ -dbn dbn ] -case_id case_id \ [ -creation_user creation_user ] [ -creation_ip creation_ip ] \ [ -msg msg ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -case_id (required)
- -creation_user (optional)
- -creation_ip (optional)
- -msg (optional)
- Testcases:
- No testcase defined.
Source code: #function_args: {CASE_ID {}} {CREATION_USER null} {CREATION_IP null} {MSG null} foreach var [list CASE_ID CREATION_USER CREATION_IP MSG] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select workflow_case__start_case($_CASE_ID, $_CREATION_USER, $_CREATION_IP, $_MSG) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }XQL Not present: Generic, PostgreSQL, Oracle