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)

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_test_items create_test_items (test xowf) xowf::test_item::Question_manager instproc initialize xowf::test_item::Question_manager instproc initialize test_create_test_items->xowf::test_item::Question_manager instproc initialize

Testcases:
create_test_items
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: