0 Replies Latest reply on Jul 30, 2008 1:38 AM by mikool

    Error "Unable to create Field Extractor" in a simple rule

    mikool

      Hello!


      I have this task in my business process:

            <task-node name="Search
                      <task name="Search">
                              <assignment pooled-actors="admin"/>
                      </task>
                      <transition to="Buy Car" name="buyCar">
                           <action class="org.jboss.seam.drools.DroolsActionHandler">
                           <workingMemoryName>policyPricingWorkingMemory</workingMemoryName>
                           <assertObjects>
                               <element>#{testing}</element>
                           </assertObjects>
                      </action>
                      </transition>
              </task-node>


      And the associated rule:
      import java.io.PrintStream;
      import org.jboss.seam.bpm.Actor;
      
      rule "assignment"
        when
              Actor(getId == "Mike")
        then
          System.out.println("============= Y E S =============");
      end


      Actually I did everything that is written in the SEAM docu but I get this error:
      Caused by: org.drools.rule.InvalidRulePackage: Unable to create Field Extractor for 'getId' of '[ClassObjectType class=org.jboss.seam.bpm.Actor]' in rule 'assignment' : [Rule name=assignment, agendaGroup=MAIN, salience=0, no-loop=false]


      What is wrong in my code?


      Bye,
      Mike