0 Replies Latest reply on Aug 3, 2007 8:16 AM by clause Mbacky

    how can i delete a taskinstance from my database

    clause Mbacky Newbie

      Hi, i want to delete a taskinstance by using its Id.

      i used thi:

      graphSession=jbpmContext.getGraphSession();
       TaskInstance taskInstance=jbpmContext.getTaskInstance(taskInstanceId);
       TaskMgmtInstance taskMgmtInstance=graphSession.getProcessInstance(processInstanceId).getTaskMgmtInstance();
       taskMgmtInstance.removeTaskInstance(taskInstance);
      


      but it doesn't delete this instance from my database