-
1. Re: Invoke a method in a rule service
kcbabo Sep 10, 2012 8:55 AM (in response to jodonya)In your switchyard.xml defining the rules service, you can add a resource definition which points to a knowledge package in the Guvnor repository.
https://docs.jboss.org/author/display/SWITCHYARD/Rules+Services
See the section on "Using a KnowledgeAgent" and "Using a Rules Repository".
-
2. Re: Invoke a method in a rule service
dward Sep 10, 2012 8:58 AM (in response to jodonya)Rules don't execute "in guvnor repository". They are retrieved from Guvnor using a KnowledgeAgent, and executed wherever the KnowledgeSession is running. In SwitchYard, for example.
To do this, you have to configure the SwitchYard Rules Component to use a KnowledgeAgent, and you have to configure your ChangeSet.xml to point to the knowledge package inside Guvnor.
Please see the "Using a KnowledgeAgent" and "Using a Rules Repository" sections of the documentation for more information:
https://docs.jboss.org/author/display/SWITCHYARD/Rules+Services