Class ::xo::db::sql::workflow_case_pkg

::xo::db::sql::workflow_case_pkg[i] create ...

Defined in

Class Relations

  • class: ::xo::db::Class[i]
  • superclass: ::xotcl::Object[i]
::xo::db::Class create ::xo::db::sql::workflow_case_pkg \
     -superclass ::xotcl::Object

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::workflow_case_pkg[i] delete [ -dbn dbn ] \
        -delete_case_id delete_case_id 

    Automatically generated method

    Switches:
    -dbn (optional)
    -delete_case_id (required)

    Testcases:
    No testcase defined.
    #function_args: {DELETE_CASE_ID {}}
    foreach var [list DELETE_CASE_ID]  {
      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_pkg__delete($_DELETE_CASE_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • get_pretty_state (scripted, public)

     xo::db::sql::workflow_case_pkg[i] get_pretty_state [ -dbn dbn ] \
        -workflow_short_name workflow_short_name  -object_id object_id 

    Automatically generated method

    Switches:
    -dbn (optional)
    -workflow_short_name (required)
    -object_id (required)

    Testcases:
    No testcase defined.
    #function_args: {WORKFLOW_SHORT_NAME {}} {OBJECT_ID {}}
    foreach var [list WORKFLOW_SHORT_NAME OBJECT_ID]  {
      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_pkg__get_pretty_state($_WORKFLOW_SHORT_NAME$_OBJECT_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }