xowf::test_item::Question_manager method initialize (public)

 <instance of xowf::test_item::Question_manager[i]> initialize \
    [ -wfi wfi ]

Defined in packages/xowf/tcl/test-item-procs.tcl

Initialize the question manager for a certain workflow instance. This is needed for per-answer-workflow questions (as for pool questions, where different questions are taken for different users).

Switches:
-wfi (optional, object)

Testcases:
No testcase defined.
Source code:
#ns_log notice "QM initialize wfi $wfi"
set isAnswerInstance [expr {[$wfi is_wf_instance] == 1 && [$wfi is_wf] == 0}]
if {$isAnswerInstance} {
  #ns_log notice "QM initialize answer instance [$wfi name] // [$wfi instance_attributes]"
  set :wfi $wfi
} else {
  ns_log warning "initializing question manager for not an answer instance [$wfi name]"  "// [$wfi instance_attributes]"
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: