-
1. Re: attach javascript to jpdl generated task form save butto
kukeltje Sep 1, 2007 8:11 AM (in response to rossputin)ending a task will also save the data, so no need for this.
Regaring the attaching of the javascript in general, I have no idea and unfortunately currently no time to investigate. -
2. Re: attach javascript to jpdl generated task form save butto
dleerob Sep 1, 2007 4:08 PM (in response to rossputin)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.
-
3. Re: attach javascript to jpdl generated task form save butto
kukeltje Sep 2, 2007 7:41 PM (in response to rossputin)if it is jsp, you probably do not use the jsf tags. In that case it is like any other jsp page which includes javascript
-
4. Re: attach javascript to jpdl generated task form save butto
rossputin Sep 3, 2007 7:03 AM (in response to rossputin)Hi,
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?
cheers
Ross -
5. Re: attach javascript to jpdl generated task form save butto
kukeltje Sep 3, 2007 12:29 PM (in response to rossputin)Ross,
ending a task, saving data and validation are separate steps. Does the data get saved when a task is ended and just not validated? Or is it not saved at all? -
6. Re: attach javascript to jpdl generated task form save butto
rossputin Sep 3, 2007 1:58 PM (in response to rossputin)Hi
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,
cheers
Ross -
7. Re: attach javascript to jpdl generated task form save butto
kukeltje Sep 3, 2007 6:09 PM (in response to rossputin)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.
-
8. Re: attach javascript to jpdl generated task form save butto
rossputin Sep 4, 2007 3:40 AM (in response to rossputin)Hi,
I tested with jbpm-jpdl-3.2.1 out of the box, on tomcat 5.0.28 connected to mysql 5.0.37 on a Mac, I double checked the save and end task behaviour, I will put this in Jira,
thanks for your help
Ross -
9. Re: attach javascript to jpdl generated task form save butto
lmichenaud Sep 10, 2007 8:50 AM (in response to rossputin)I'm also very interested in a fix for that major issue.
-
10. Re: attach javascript to jpdl generated task form save butto
rossputin Sep 10, 2007 9:02 AM (in response to rossputin)Hi,
just as a cross reference, this is in Jira, see http://jira.jboss.com/jira/browse/JBPM-1049,
cheers
Ross -
11. Re: attach javascript to jpdl generated task form save butto
kukeltje Sep 10, 2007 12:42 PM (in response to rossputin)guys,
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... -
12. Re: attach javascript to jpdl generated task form save butto
rossputin Sep 13, 2007 4:24 AM (in response to rossputin)Hi,
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,
cheers
Ross