does anyone know a good way to attach a javascript function to a save button on a jpdl generated task form, so for example I can set a hidden input value with a value taken from a richfaces calendar input?

On a similar note, is there a way I can do the same thing with a transition link on the same page, so the user can not click on end, to end the task until the form save button has been pressed ?

I don't use JSF, I use plain JSP. So I simply create my JSP pages as I want them, with javascript and everything, and deploy them with my process definition. I use a similair mechanism that the jbpm-console uses to retrieve the form from the database. ie. look at the forms.xml file, determine the JSP page to use with my current task name, and I then simply read that jsp page from the jbpm database and "include" the jsp code in my "framework" task form. I don't know how you would do it with JSF though, I've never used it. Sorry. Buy maybe the above can give you ideas.

working with the standard jbpm-console, if I set 'required=true' on a form input and press 'save', it does indeed prompt me to enter a value in the field, however, I can just start and end the task, using the transition links without ever having to enter anything in the required field, are there other steps I need to take in order for the 'end a task' step to save data?

I checked in the database after ending the task, and the variable is not in the variable instances table. When I press save, it both checks I have filled in the field, and saves the value entered into the database,

hmmmmmm. if this is true it surely is a bug. I cannot imagine that save has become a separate operation and not happening when ending a task via a button. If this realy is true for 3.2 (what version are you using) file a jira issue.

I did not try to reproduce since I do not have the time to setup a 3.2.1 env).

What surprises me is that only two people have this problem There are many users of jbpm so it would be welcome if there was some proof of this, e.g. debug logging showing the ending of a task but not saving the processvariables, in combination with a processdefinition etc... the type and version of the database etc...

I am working on a macbook pro, tomcat 5.0.28, mysql 5.0.37, I created the simplest possible process definition in eclipse 3.3.0, plugin version JBPM JPDL Designer 3.1.0.CR1. My process had a start task with form generated by the eclipse plugin, with one required text input, and a transition to another task, followed by the end node.

I deployed this to the jbpm-jpdl-3.2.1 jbpm-console web application deployed out of the box, in tomcat 5.0.28, and configured to run with mysql.

Hope that helps,

I can provide a process definition a little later, I am working towards a deadline at the moment,