[jboss-user] [jBPM] - RuleTask example

Amin Mohammed-Coleman do-not-reply at jboss.com
Sun Mar 6 14:49:26 EST 2011


Amin Mohammed-Coleman [http://community.jboss.org/people/aminmc] created the discussion

"RuleTask example"

To view the discussion, visit: http://community.jboss.org/message/591490#591490

--------------------------------------------------------------
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/showImage/2-591490-12600/sample.png  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 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
[http://community.jboss.org/message/591490#591490]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110306/8dd75714/attachment-0001.html 


More information about the jboss-user mailing list