[rules-users] Error in adding BRL in Guvnor

2012-10-30 Thread vargheseps
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


Re: [rules-users] Error in adding BRL in Guvnor

2012-10-30 Thread Esteban Aliverti
If you are using the binary version of your package you should use
ResourceType.PKG.

Best Regards,



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


On Tue, Oct 30, 2012 at 7:15 AM, vargheseps varghesep...@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

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


Re: [rules-users] Error in adding BRL in Guvnor

2012-10-30 Thread vargheseps
when i use ResourceType.PKG i got the following exception when trying to add
to kbuilder
java.lang.RuntimeException: java.io.StreamCorruptedException: invalid stream
header: 3C72756C

In my project when i created the Application not inside any package(ie in
src)  every thing is working fine.
but when i use com.xyz.rims.model.Application ,resource is added to kbuilder
with the error
 [Unable to resolve ObjectType 'Application' : [Rule
name='ApplicationHealthRule']
]

In model that has been uploaded i used the package structure in both the
above cases

can  any one help
Varghese p s



--
View this message in context: 
http://drools.46999.n3.nabble.com/Error-in-adding-BRL-in-Guvnor-tp4020555p4020559.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


Re: [rules-users] Error in adding BRL in Guvnor

2012-10-30 Thread vargheseps
A very Thanks for the replay as i was able to proceed...
As you said earlier whwn i gave 
kbuilder.add(ResourceFactory.newUrlResource(ip:port/drools-guvnor/rest/packages/RulesAnd
ModelPackage/binary/,ResourceType.PKG);
every thing works fine.

But if  i gave package as whole to kbuilder.add(), and if the package
contains any assets which is corrupted/has   errors then the kbuilder will
have errors.

so is there any solution other than adding the all package..

Regards
Varghese p s 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Error-in-adding-BRL-in-Guvnor-tp4020555p4020593.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