JBoss Community

RuleTask example

created by Amin Mohammed-Coleman in jBPM - View the full discussion

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:

 

http://community.jboss.org/servlet/JiveServlet/downloadImage/2-591490-12600/450-349/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

Reply to this message by going to Community

Start a new discussion in jBPM at Community