1 Reply Latest reply on Apr 24, 2015 3:44 AM by pavan496

    JBPM Workflow not moving forward after Human Task

    pavan496

      I am using jBPM 6.2.0. I have a small workflow containing a User Task. I am trying to complete the task using the remote API through a Java client.

      Following is the code used.

      TaskService taskService = connManager.getTaskService("admin", "admin");
      taskService
      .start(4, "admin");

      taskService
      .complete(4, "admin", null);

      and the relavent methods.

      private RemoteRuntimeEngine getRuntimeEngine(String deployment, String user,
        
      String password) throws MalformedURLException {
        URL deploymentUrl
      = new URL("http://localhost:8080/jbpm-console/");
        
      return (RemoteRuntimeEngine) RemoteRuntimeEngineFactory
        
      .newRestBuilder().addUrl(deploymentUrl).addUserName(user)
        
      .addPassword(password).addDeploymentId("").build();
      }



      public TaskService getTaskService(String user, String password)
        
      throws MalformedURLException {
        
      // Establish Connection
        
      RemoteRuntimeEngine conn = getRuntimeEngine("", user, password);

        
      TaskService taskServcie = conn.getTaskService();

        
      return taskServcie;
      }

      After I complete the task, the workflow is not moving forward. In my case, there are no activites later, so I am expecting the workflow to end.