If you are using the binary version of your package you should use ResourceType.PKG.

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Blog @ http://ilesteban.wordpress.com


On Tue, Oct 30, 2012 at 7:15 AM, vargheseps <vargheseps4u@gmail.com> wrote:
I have created a Model  named applicationHealth which contain a class
“com.xyz.rims.model.Application” on Guvnor.
Also created a Business rule asset named  ‘ApplicationHealthRule’  which
uses  ‘Application’.  I have
created a business rule task in a BPMN2  process and gave the
‘ruleflow-group’ as same as a Business rule assets .

kbuilder.add(ResourceFactory.newUrlResource(DROOLS_COMMON_URL+"ApplicationHealthRule/binary"),
ResourceType.BRL);
I used the above code to add the resource to kbuilder The error I get is:

[Unable to resolve ObjectType 'Application' : [Rule
name='ApplicationHealthRule']
]




--
View this message in context: http://drools.46999.n3.nabble.com/Error-in-adding-BRL-in-Guvnor-tp4020555.html
Sent from the Drools: User forum mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users