5 Replies Latest reply on Mar 7, 2011 3:51 PM by bpmn2user

    RuleTask example

    aminmc

      Hi

       

      Is there an example of how I can use a RuleTask within my process definition?  I am trying to execute the following

       

       

       

       

      rule "Test 1" ruleflow-group "Test"

       

        when

                          WorkItem (status == WorkItem.Status.OPEN)

        then

                          System.out.println("Hello");

       

      end

       

       

      My process definition looks like this:

       

      sample.png

      It seems as though the rule doesn't get evaluated.  Also I noticed that I have to manually add

        xmlns:g="http://www.jboss.org/drools/flow/gpd" to the xml file whenever I make a change to the process definition. 

       

      Any help would be appreciated.

       

      Cheers