Forum OpenACS Development: workflow action

Collapse
Posted by Iuri Sampaio on
Hi there,

In workflow package we have the option to create actions under a workflow instance which is a great functionality.

I created an action under a bug-tracker instance to schedule bug-tracker tickets on calendar pkg.

I need to add a callback to be executed every time i run that respective action. Workflow has the ability to input as much callbacks as you need at "Edit action" UI.

However, it is not very clear what would be the input information in edit action form, in the field callbacks.
since i guess before you put the name of the callback, it needs to exist in the code in order to porperly works. Otherwise you get and null value error when you submit the form.

It turns out much easier just to go to the tcl page "bug.tcl", where the form is code written and manually edit the form part -on_submit { } to execute the API i wrote, than to use the workflow standard approach in order to have my API automatically runinng.

what would be the best way to do so?