Uploaded image for project: 'Guvnor'
  1. Guvnor
  2. GUVNOR-2044

Error when building a package in Guvnor 5.5 for a fact type instanciation, the pkg was migrated from 5.0.1.

    Details

      Description

      Hello,

      I'm a newbie in Drools, without developer skills. I'm in design team.
      The problem I face is that :
      After migration from drools 5.0.1 to 5.5 release,
      I imported the repository.xml and launch a package build.
      I got an error when building a package in Guvnor 5.5 for a fact type instanciation.

      Our Model contains 2 fact types.
      The second is stabilityResult, with following annotation and fields :
      @role:value=event
      startTime:Date
      endTime:Date
      result:Text

      The rule that uses the fact type is (see in the loop) :
      rule "stabilityResult instanciation"
      no-loop true
      dialect "java"
      ruleflow-group "xdsl.stability.rules.group"

      when

      DataValue(key=="dslam.40.res.line.quality.result", $resultList : valueAsList)
      DataValue(key=="dslam.40.res.line.quality.start.time", $startTimeList : valueAsList)
      DataValue(key=="dslam.40.res.line.quality.end.time", $endTimeList : valueAsList)
      eval($resultList.size() == $startTimeList.size())

      then
      for(int i=0; i< $startTimeList.size(); i++) {
      if (($startTimeList.get != null ) || ($endTimeList.get != null ))

      { stabilityResult SR = new stabilityResult(); SR.setStartTime((java.util.Date) $startTimeList.get(i)); SR.setEndTime((java.util.Date) $endTimeList.get(i)); SR.setResult((String) $resultList.get(i)); insert( SR ); }

      }

      End

      The complete message displayed by Guvnor is :
      Build package indicates an error for stabilityResult instanciation : “Rule Compilation error The method setEndTime(Date) is undefined for the type stabilityResult The method setResult(String) is undefined for the type stabilityResult”

      I tried to modify the name, to delete annotation, without success.
      I've deleted the fact type and now I can't recreate it. Message from Guvnor is « The name ‘stabilityResult’ is already taken – please choose another ».

      Would you mind to help me in solving the problem of build failed ?
      Is anybody ready for a brainstorm ?

      Thanks in advance,
      David.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dltdlt David LANTERI
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: