1 Reply Latest reply on Dec 14, 2011 12:09 PM by Hector Mendoza

    Task instance is already started

    Matt Davis Newbie

      When I call this method:


           @StartTask()
           public String beginReviewTask(){
                currentOrg = getCurrentOrganization();
                System.out.println("beginReviewTask() returning " + mTask.getName());
                orgId = (Long)(taskInstance.getVariable("orgId"));
                return "/orgAdminReview.xhtml";
      


      and then click the BACK button, I get this error:


      Caused by: java.lang.IllegalStateException: task instance '16' is already started
      



      Best practice for avoiding this? I'm not sure what the isOpen and other methods do on the TaskInstance object. Do I need to do this myself or is there something in the @StartTask annotation I can set?


      Best practice here?