xowf::test_item::Answer_manager method student_submissions_exist (public)
<instance of xowf::test_item::Answer_manager> student_submissions_exist \ wf
Defined in packages/xowf/tcl/test-item-procs.tcl
Returns 1 if there are student submissions. The method returns already true, when a student has started to work on this exam. This method could be optimized if necessary via caching the wf_instances or a more specific database query.
- Parameters:
- wf (required, object)
- Testcases:
- No testcase defined.
Source code: set items [:get_wf_instances $wf] foreach i [$items children] { if {[$i property try_out_mode] ne "1"} { #ns_log notice "==================== student_submissions_exist 1" return 1 } } #ns_log notice "==================== student_submissions_exist 0" return 0XQL Not present: Generic, PostgreSQL, Oracle