-
1. Re: Complete Task from jbpm-console (is )
sebastian.s Nov 24, 2009 1:45 AM (in response to cmjhingeniero)Right now I understand your question. I have not tried 4.2 yet but in 4.1 and AFAIK in 4.2 as well you can just complete a task if there's a task-form associated with it. Why do you want to use the console for this anyway?
-
2. Re: Complete Task from jbpm-console (is )
cmjhingeniero Nov 24, 2009 7:30 AM (in response to cmjhingeniero)Hi
I'm going to explain a little better. I have a process that has a form associated with the start of the process. He has an automatic task (java), which loads some variables. Then I have implemented a manual task that belongs to Peter and has no associated graphical interface (I hope explain well). What I want is to complete this task???, Ie PETER personal tasks, the task is loaded as follows:
Priority Process Task Name Due Date
0 Test-1 buy 2009-11-24 07:20:34
I just want to say that this task is already complete, so that the instance of the process to finish
I'm new to jBPM and it's been very difficult to handle the jbpm-console console
Thanks -
3. Re: Complete Task from jbpm-console (is )
sebastian.s Nov 24, 2009 8:08 AM (in response to cmjhingeniero)As I stated earlier: If you have no form associated with the task you cannot complete it by using the jBPM-console.
You have to do it programmatically and this would look basically like this:// taskService must be a reference to the TaskService of your process engine instance List<Task> tasks = taskService.findPersonalTasks("peter"); // of course just in case there is just this task in peter's list taskService.completeTask(tasks[0].getId();
HTH. It's really hard to understand what your actual problem is. If this helps you this means that you have to carefully read the documentation about this again. -
4. Re: Complete Task from jbpm-console (is )
cmjhingeniero Nov 24, 2009 8:49 AM (in response to cmjhingeniero)OK I understand. If you would like to complete the task from a graphical interface as it could, that is, as the buttons would be scheduled in the archive. FTL???
Thanks -
5. Re: Complete Task from jbpm-console (is )
sebastian.s Nov 24, 2009 8:56 AM (in response to cmjhingeniero)Yes, either supply a task-form (.ftl) and deploy it together with the process definition and refer to the file name in the form-attribute in the process definition or create your own GUI (Swing-App, JSP, etc. ..) and complete the task programmatically.
At this stage the jbpm-console and the task-forms are rather for debugging purposes or for rapid prototyping as Joram showed with his train ticket demo. -
6. Re: Complete Task from jbpm-console (is )
cmjhingeniero Nov 24, 2009 2:12 PM (in response to cmjhingeniero)Thanks I understand