[rules-users] Drls bpmns not loading in tomcat 6.0.32

2011-12-15 Thread rahulkrishnan
Hi 

I have tried to deploy .drl file .bpmn file using 

  
flowKBuilder.add(ResourceFactory.newClassPathResource(ConnectorRules.DRL),
ResourceType.DRL);
 n 
flowKBuilder.add(ResourceFactory.newClassPathResource(ConnectorFlow.bpmn),ResourceType.BPMN2);

   which am able to do in JBOSS AS. But when i tried this in tomcat it is
not happening it is throwing File Not Found Exception. I have tried
newFileResource  new inputStreamResource also but the result is same as
above.  

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drls-bpmns-not-loading-in-tomcat-6-0-32-tp3587910p3587910.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 compose DRLS into JARS

2011-12-06 Thread rahulkrishnan
Can we make drl files into jar

--
View this message in context: 
http://drools.46999.n3.nabble.com/Can-we-compose-DRLS-into-JARS-tp3564113p3564113.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] Regular Expression

2011-11-16 Thread rahulkrishnan
Can i have a regular expression in which the case of the word is not a
problem
Like any string starting with START|Start|start|STart can be matched

am able to match only the rules starting with either START or start

--
View this message in context: 
http://drools.46999.n3.nabble.com/Regular-Expression-tp3512138p3512138.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] Problem with eval

2011-10-24 Thread rahulkrishnan
some times when am using eval am getting this error

unable to build expression *eval:null(condition i give)*

i have used like this
$work : WorkClass
*eval($work.getStatus(5))* // here was the exception



--
View this message in context: 
http://drools.46999.n3.nabble.com/Problem-with-eval-tp3447294p3447294.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] Problem with eval

2011-10-24 Thread rahulkrishnan
is it because  i have used a object in session inside the eval

--
View this message in context: 
http://drools.46999.n3.nabble.com/Problem-with-eval-tp3447294p3447297.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] using variables in eval

2011-10-21 Thread rahulkrishnan
Hi

1.i have a rule like this 
rule Function Call
dialect mvel 
when
PassThrough( $c : name)
eval(($c = hello(rahul))!=null)
then
System.out.println($c);

end
 in this my function will return the string as capital and am entering to
the consequence part but the $c is printed as null. am not getting what is
happend. 

And if i want to assign the result of function call to a String declared as
(String s) how can it be done


--
View this message in context: 
http://drools.46999.n3.nabble.com/using-variables-in-eval-tp3440419p3440419.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] Debug Drools

2011-10-21 Thread rahulkrishnan
Is there any Tools for debugging drl and bpmn except the
KnowledgeRuntimeLogger or Eclipse debugger. In which i can debug the when
part also

--
View this message in context: 
http://drools.46999.n3.nabble.com/Debug-Drools-tp3440999p3440999.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] Changing To Drools

2011-10-20 Thread rahulkrishnan
Hi 
1.My Requirement is a System of High Transactions/Second(in 1000's Range).
Is it good to implement that in drools 
2.if i use drl in such a way that the in the then part complex operations
are done by calling a java function. is this method good?

--
View this message in context: 
http://drools.46999.n3.nabble.com/Changing-To-Drools-tp3437461p3437461.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] Exception Handler not working in Drools flow(bpmn) but working fine in .rf

2011-10-05 Thread rahulkrishnan
Hi,
  I have tried the fault node in drools flow file and it has worked fine
in .rf. Whenever a faultnode is triggered it will search for the fault name
and will be caught at the apropriate Exception Handlers. But When am
implementing the same in .bpmn the fault node is triggered but the flow is
not reaching Exception Handlers ie The flow will exit upon reaching the
fault node.

How can i resolve this problem?  

--
View this message in context: 
http://drools.46999.n3.nabble.com/Exception-Handler-not-working-in-Drools-flow-bpmn-but-working-fine-in-rf-tp3396031p3396031.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] Looping in When part

2011-10-04 Thread rahulkrishnan
Hi
 I want to match a string with the contents of hashmap. The process is like
this.

Let the string is abcd
First it will search for abcd in the map
if found i have to assign it to a variable else i has to remove the last
alphabet (abc) and have to match with hashmap like is the process.

My Problem is iam not able to do that iteration in when part 
What i have done is i will check the condition in when part if it matches
the hashmap then it will exit. Else it will satisfies the condition(String
not matching any of hashmap contents) and goes in then and update the string
by removing the last alphabet and loops .

rule somerule
no-loop false
when 
  condition for checking that hashmap  has no key of String s and
s.length0
then
  modify the String s by removing last alphabet
end


is there any option to do the looping in the when part itself


--
View this message in context: 
http://drools.46999.n3.nabble.com/Looping-in-When-part-tp3393236p3393236.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 WebApplication Using JBOSS AS

2011-09-01 Thread rahulkrishnan
Hi all;
i know drools using with eclipse IDE.
i want to create basic web application using drools and jboss AS?
how can create it?

thanks

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-WebApplication-Using-JBOSS-AS-tp3301319p3301319.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.NoSuchFieldError: DESCR

2011-08-28 Thread rahulkrishnan
Am a newbe to the Drools.

When am trying
http://www.softwarepassion.com/getting-started-with-drools-flow/ tutorial 
to run the program in this tutorial it is giving this exception

Exception in thread main java.lang.NoSuchFieldError: DESCR
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:539)
at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
at
com.softwarepassion.droolsflow.SPDroolsFlowExample.readKnowledgeBase(SPDroolsFlowExample.java:30)
at
com.softwarepassion.droolsflow.SPDroolsFlowExample.main(SPDroolsFlowExample.java:20)


how can i resolve this one

--
View this message in context: 
http://drools.46999.n3.nabble.com/java-lang-NoSuchFieldError-DESCR-tp3290363p3290363.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