Index: openacs-4/packages/workflow/tcl/action-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/tcl/action-procs.xql,v diff -u -N -r1.2 -r1.3 --- openacs-4/packages/workflow/tcl/action-procs.xql 14 Jan 2003 15:09:16 -0000 1.2 +++ openacs-4/packages/workflow/tcl/action-procs.xql 20 Jan 2003 15:45:00 -0000 1.3 @@ -1,7 +1,7 @@ - + insert into workflow_action_allowed_roles select :action_id, @@ -12,14 +12,32 @@ - + insert into workflow_action_privileges (action_id, privilege) values (:action_id, :privilege) + + + insert into workflow_actions + (action_id, workflow_id, sort_order, short_name, pretty_name, pretty_past_tense, + assigned_role, always_enabled_p) + values (:action_id, :workflow_id, :sort_order, :short_name, :pretty_name, :pretty_past_tense, + :assigned_role_id, :always_enabled_p) + + + + + + insert into workflow_initial_action + (workflow_id, action_id) + values (:workflow_id, :action_id) + + + select assigned_role @@ -53,20 +71,37 @@ - + - insert into workflow_actions - select :action_id, - :workflow_id, - :sort_order, - :short_name, - :pretty_name, - :pretty_past_tense, - :assigned_role_id, - :always_enabled_p + select workflow_id, + sort_order, + short_name, + pretty_name, + pretty_past_tense, + assigned_role, + always_enabled_p + from workflow_actions + where action_id = :action_id + + + insert into workflow_fsm_actions + (action_id, new_state) + values + (:action_id, :new_state_id) + + + + + + insert into workflow_fsm_action_enabled_in_states + (action_id, state_id) + values (:action_id, :enabled_state_id) + + + select new_state