xo::db::sql::workflow_case proc new (public)
xo::db::sql::workflow_case new [ -dbn dbn ] [ -case_id case_id ] \ -workflow_key workflow_key [ -context_key context_key ] \ -object_id object_id [ -creation_date creation_date ] \ [ -creation_user creation_user ] [ -creation_ip creation_ip ] \ [ -childof childof ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -case_id (optional)
- -workflow_key (required)
- -context_key (optional)
- -object_id (required)
- -creation_date (optional, defaults to
"now()"
)- -creation_user (optional)
- -creation_ip (optional)
- -childof (optional)
- Testcases:
- No testcase defined.
Source code: #function_args: {CASE_ID null} {WORKFLOW_KEY {}} {CONTEXT_KEY null} {OBJECT_ID {}} {CREATION_DATE now()} {CREATION_USER null} {CREATION_IP null} foreach var [list CASE_ID WORKFLOW_KEY CONTEXT_KEY OBJECT_ID CREATION_DATE CREATION_USER CREATION_IP] { 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__new($_CASE_ID, $_WORKFLOW_KEY, $_CONTEXT_KEY, $_OBJECT_ID, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP) " 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