[rules-users] Adding a List(CollectionFramework) datatype in DeclarativeModel

2012-02-20 Thread Veera
Hi All,


While creating Fact fields in Declarative Model the options are :
Whole Number,text,Date,Decimal,true/false ,

So is it possible to add a List(CollectionFramework) Datatype in that.

Thanks,
Veera

--
View this message in context: 
http://drools.46999.n3.nabble.com/Adding-a-List-CollectionFramework-datatype-in-DeclarativeModel-tp3760157p3760157.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] Adding a List(CollectionFramework) datatype in DeclarativeModel

2012-02-20 Thread Veera
Thanks  it's working...

--
View this message in context: 
http://drools.46999.n3.nabble.com/Adding-a-List-CollectionFramework-datatype-in-DeclarativeModel-tp3760157p3760446.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] Can we edit view source option in Drools Guvnor

2012-02-15 Thread Veera
Hi All,

I dont know wheter it is possible or not.

i was create a one Decison Table with 100 rules( 100 rows) , So i want to
copy 
this decision table into another new Guvnor 

(if i export the repository i am loosing the data which is there already in
new Guvnor )

So my requirement is to copy the Decision table into new Guvnor without
loosing the existing data in 
new Guvnor.


(OR) else is there any way to edit the view source option , So that i can
copy the code into the new 
Guvnor...

Thanks in Advance,

Regards,
Veera



--
View this message in context: 
http://drools.46999.n3.nabble.com/Can-we-edit-view-source-option-in-Drools-Guvnor-tp3746631p3746631.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] Copy Paste options in Decision Table

2012-02-14 Thread Veera
Hi all,

i was seen a video with below link he is doing copy  paste in Guvnor
Decision table.
I am using Guvnor 5.3.0, but it is not showing copy  paste options for me..

can any body tell me why ?.

link is :  http://vimeo.com/35323602

Thanks in Advance :-)

Regards,
veera



--
View this message in context: 
http://drools.46999.n3.nabble.com/Copy-Paste-options-in-Decision-Table-tp3743350p3743350.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] Copy Paste options in Decision Table

2012-02-14 Thread Veera

Thanks a lot 

--
View this message in context: 
http://drools.46999.n3.nabble.com/Copy-Paste-options-in-Decision-Table-tp3743350p3743533.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] Copy Paste options in Decision Table

2012-02-14 Thread Veera
Thanks a lot... :-)

--
View this message in context: 
http://drools.46999.n3.nabble.com/Copy-Paste-options-in-Decision-Table-tp3743350p3743538.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] What is the use of Annotation in DeclarativeModel

2012-02-13 Thread Veera
Hi All,

 

anybody give me some idea on annotations which are there in Fact Declarative
Model in Guvnor..
If it possible give me one example

Thanks in advance..


Regards,
Veera

--
View this message in context: 
http://drools.46999.n3.nabble.com/What-is-the-use-of-Annotation-in-DeclarativeModel-tp3742852p3742852.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] How to get the Fact datatypes from the Guvnor

2012-02-12 Thread Veera
Hi All,

Can anybody help to get the Field type(what datatype it is ).
I have declared a Facts in Guvnor 5.3 and i can able to retreive all the
package names  rules names  fact names , now i want to know what is the
datatype of each fact , i don't know which api to use for this.

Can any body help me pelase...

below code to get the all package names  rules names  fact names...:
CollectionKnowledgePackage kpackages =
_kagent.getKnowledgeBase().getKnowledgePackages();
   
for(KnowledgePackage kpackage : kpackages) 
{
   for(org.drools.definition.rule.Rule rule1 :kpackage.getRules()) 
   {
//printing package names  rule names. 
   String packname= rule1.getPackageName();
   String rulename=rule1.getName();
   System.out.println(This is : +packname+ Packages and 
RuleName is  +rulename);
   
   //printing Fact names..
Field[] s=kpackage.getClass().getFields();
System.out.println(s.toString());
   }
}


Thanks,
Veera

--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-get-the-Fact-datatypes-from-the-Guvnor-tp3739223p3739223.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] Drools Debugging

2012-02-08 Thread Veera
Hi All,

I have one doubt that is : When i compiling a sample HelloWorld Drools
program it is printing output like :
Hello World
Goodbye cruel world

and i added a simple rule like :  
 rule test
when
eval(true)
then
System.out.println( Hello!!! );
end 

When i compile the output is :
Hello!!!
Hello World
Goodbye cruel world

But when i debug it is showing output like:
Hello World
Goodbye cruel world
Hello!!!

Can anybody help me how to get the same output when i debug also...

Regards,
Veera


--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Debugging-tp3728574p3728574.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] How to Test the Rules which are there in Guvnor

2012-01-22 Thread Veera
Hi friends..

Can any body tell me how to Test the Rules in Guvnor (i have Thousands of
Rules).


Thanks..

--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-Test-the-Rules-which-are-there-in-Guvnor-tp3681089p3681089.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] java.lang.ClassCastException: java.lang.String cannot be cast to com.sample.DroolsTest$Message

2012-01-18 Thread Veera
Hi All,

Can anybody tell me what is the problem here ..
i have a 2 classes:
 person(i have a field in this :java.lang.String
add) 
 Message(i have a filed in this :java.lang.String
name)
rule H
when
  person( $a : add )
  Message ( name == tree ) from $a 

then
# System.out.println(in H rule);

when i compile this rule i am getting below exception...

java.lang.ClassCastException: java.lang.String cannot be cast to
com.sample.DroolsTest$Message

Thanks in Advance
Veeras



--
View this message in context: 
http://drools.46999.n3.nabble.com/java-lang-ClassCastException-java-lang-String-cannot-be-cast-to-com-sample-DroolsTest-Message-tp3671568p3671568.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