2 Replies Latest reply on Apr 6, 2010 5:08 AM by ruds

    Task Completion Error

      hello there,

      i have a normal task with a transition to another task.

      when i complete the first task by hitting engine.getTaskService().completeTask(taskId); everything works okay. But i want to add some user input related to the task so i did the following:

       

      Map<String, Object> variables = new HashMap<String, Object>();
      variables.put("SDate", startDate);
      variables.put("EDate", endDate);
      variables.put("Message", message);

       

      engine.getTaskService().completeTask(taskId, variables);

       

      and i am getting an exception there stating the following:

      ### EXCEPTION ###########################################

      10:50:26,965 INF   | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.CompositeCmd@a39de

      org.jbpm.api.JbpmException: No unnamed transitions were found for the task 'Employee submits timesheet'

       

      i wanna add some user input related to the task so it can be reviewed by the manager for approval.

      can someone help me on this please.

       

      best regards,

      ruds