xowf::WorkflowPage instproc schedule_action (public)

 <instance of xowf::WorkflowPage[i]> schedule_action -time time  \
    [ -party_id party_id ] -action action  [ -attributes attributes ]

Defined in /var/www/openacs.org/packages/xowf/tcl/xowf-procs.tcl

Schedule the specified action for the current workflow instance at the given time. The specified attributes are provided like form_parameters to the action of the workflow.

Switches:
-time (required)
time when the atjob should be executed
-party_id (optional)
party_id for the user executing the atjob
-action (required)
workflow action to be executed
-attributes (optional)
arguments provided to the workflow action (attribute value pairs)

Testcases:
No testcase defined.
Source code:
if {![:is_wf_instance]} {
  error "Page [self] is not a Workflow Instance"
}
if {![info exists party_id]} {
  set party_id [::xo::cc user_id]
}
:schedule_job -time $time -party_id $party_id  [list call_action -action $action -attributes $attributes]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: