-
1. Re: Extending jPDL for using in web application
kukeltje Nov 15, 2006 4:06 AM (in response to s_aliakbary)in this case you could make your own taskcontroller (afaik, never tried it to the fullest)
-
2. Re: Extending jPDL for using in web application
s_aliakbary Nov 15, 2006 5:25 AM (in response to s_aliakbary)So there is no better way than this scenario?
-
3. Re: Extending jPDL for using in web application
kukeltje Nov 15, 2006 6:27 AM (in response to s_aliakbary)depends on your definition of better..... I feel you want a different solution. Can you explain why?
-
4. Re: Extending jPDL for using in web application
s_aliakbary Nov 16, 2006 2:20 AM (in response to s_aliakbary)I'm not sure that a different solution is better or not, because I'm newbie in jBPM. But this approach has some side effects. For example by implementing our own node tags, the eclipse graphical designer will not recognize these node definitions. And some extra code for implementing this new node is necessary.
Do other jBPM-webbased applications use a similar approach?
Thanks -
5. Re: Extending jPDL for using in web application
hannes Nov 16, 2006 4:19 AM (in response to s_aliakbary)In my webapp the task name resolves the jsp name, in other words if there is a file 'taskname' + '.jsp' in my folder then the funktion (it is a jsf action) has the taskname as output (string). then there is a nav case in the faces-config that leads to the specific jsp.
But I also support a more generic task definition in the jpdl. -
6. Re: Extending jPDL for using in web application
s_aliakbary Nov 16, 2006 5:53 AM (in response to s_aliakbary)Thanks Hannes
That will work for links. Thank you.
What about other information needed for each node? For example each node would have a menu id which specifies the place of the task in the menu in worklist of users (something defined in my web application)?
Is there similar way for supporting such informations? -
7. Re: Extending jPDL for using in web application
kukeltje Nov 16, 2006 6:38 AM (in response to s_aliakbary)Specifying a taskcontroller is not a specific node. It is an attribute of an existing node. So no problem there. You can even do it generic for the whole engine.
The solution Hannes proposes can also work. I did something similar once.
If you 'only' have/need forms for tasks and not as a part of another webapp, look at 3.2 (cvs-head) it has functionality for doing custom pages per task -
8. Re: Extending jPDL for using in web application
s_aliakbary Nov 16, 2006 9:07 AM (in response to s_aliakbary)Hi again
I still think that I should implement my own nodes!
task-controllers and more genral, process variables do not seem a good solution, because for each process instantiation the variables are created and they should get values for each process instance, while properties like URL, menuID, .. are labels for "node definitions" not for "nodes in a process instances". So performance using process and task variables is not good.
So I think I should design a table along with JBPM_NODE storing extra properties for each node.
Please if this design has a drawback, inform me about that.
And my new problem is the graphical-designer, which does not support third-party implemented nodes. Is it easy to change the graphical designer so that it supports new implemented nodes in jPDL?
Thanks again