0 Replies Latest reply on May 22, 2006 1:02 AM by santosh mohapatra

    how to end my workflow at any task

    santosh mohapatra Newbie

      i am trying to end my workflow at any task.
      i have written
      ProcessInstance pi = tkn.getProcessInstance();

      but it is not working.
      i got some information in jbpm 2.0 to close the workflow

      ExecutionService executionService =
      Collection tasks = executionService.getTaskList("CarlGauss");
      Token token = (Token) tasks.iterator().next();
      executionService.endOfState( token.getId(), "approve" );

      but there is no executionService method in 3.1
      what shall i do..