1 Reply Latest reply on Jul 15, 2009 11:17 AM by kukeltje

    HistoryVariable create bug ?

    clt.phoenix

      In the source code of VariableCreate.java


       HistoryTaskImpl historyTask = null;
       TaskImpl task = variable.getTask();
       if (task!=null) {
       long taskDbid = task.getDbid();
       historyTask = (HistoryTaskImpl)
       dbSession.get(HistoryTaskImpl.class, taskDbid);
       }
      
       HistoryVariableImpl historyVariable = new HistoryVariableImpl(historyProcessInstance, historyTask, variable);
      



      The HistoryTaskImpl was get by the TaskImpl id, but In my case the taskImpl id may be not the same with HistoryTaskImpl id ...............

      so some time I cann't get the history variable.

        • 1. Re: HistoryVariable create bug ?
          kukeltje

           

          but In my case the taskImpl id may be not the same with HistoryTaskImpl id


          Why? Because you implemented something yourself, or by something jBPM does. If the latter is the case, Please make a unittest that demonstrates the problem.