6 Replies Latest reply on Nov 24, 2009 2:12 PM by cmjhingeniero

    Complete Task from jbpm-console (is )

      Hi

      Not how to end my trial

      I wonder as I complete a task assigned to Peter from the jbpm-console. The task has no graphical interface.

      I'm using jbpm-4.2 with postgres and tomcat

      Thanks

        • 1. Re: Complete Task from jbpm-console (is )
          sebastian.s

          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 )

            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

              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 )

                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

                  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 )

                    Thanks I understand