Class ::xowf::WorkflowContainer
::xowf::WorkflowContainer
create ... \
[ -auto_form_constraints (default "") ] \
[ -auto_form_template (default "") ] \
[ -autoname autoname ] \
[ -debug (default "0") ] \
[ -shared_definition (default "1") ]
Class Relations
- class: ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- superclass: ::xowf::WorkflowObject
![[i]](/resources/acs-subsite/ZoomIn16.gif)
::xotcl::Class create ::xowf::WorkflowContainer \
-superclass ::xowf::WorkflowObject
Methods (to be applied on instances)
auto_form_constraints (setter)
auto_form_template (setter)
autoname (setter)
cleanup (scripted)
if {[clock seconds] - ${:creation_time} > 600} {
::xo::remove_cleanup [self]
:destroy
}debug (setter)
init (scripted)
set :creation_time [clock seconds]
::xo::add_cleanup [self] [list [self] cleanup]
next
object (scripted)
set ctx [:wf_context]
set object [$ctx object]
set template [$object page_template]
if {${:shared_definition}} {
ns_log warning "Workflow $template [$template name] does not work with shared definitions since it refers to 'object'; fall back to unshared definition"
set :shared_definition 0
}
return $objectobject-specific (scripted)
:specific object {*}$argsshared_definition (setter)
specific (scripted)
if {![info exists :$type-specific]} {
set :$type-specific ""
}
set l [llength $args]
switch $l {
0 {
return [set :$type-specific]
}
1 {
append :$type-specific \n [lindex $args 0]
}
default {
error "wrong number of arguments"
}
}wf-specific (scripted)
:specific wf {*}$args