Re: [rules-users] drools5.2 integrate with JMS

2011-11-30 Thread vasilievip
Could you please describe use-case a bit?
You probably need to look into direction of camel or jbossesb or servicemix,
but it depends on what you are trying to achieve. 

Take a look at this doc:
http://docs.jboss.org/drools/release/5.2.0.Final/droolsjbpm-integration-docs/html_single/index.html#d0e23

Thanks


--
View this message in context: 
http://drools.46999.n3.nabble.com/drools5-2-integrate-with-JMS-tp3546100p3549538.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] Who writes your rules? Dev vs. BA

2011-02-01 Thread vasilievip

I agree too that it depends on complexity of model and rules itself.
Publishing rules to BA may result in BA's learning on how to develop
programs (in fact BA is not the right person to write parseDate or some
similar function).

We tried to tailor Guvnor but result is that we use it only as repository
and not as authoring tool (I hope we will tailor DSL and this will be
changed..). Amount of rules may be up to 1k in one package - I'm not sure if
Guvnor will be user friendly in this case,but using drl you can have 10
files with 100 rules in each (maybe autogenerated from template). Developers
don't like Guvnor UI and prefer Eclipse plugin. Also we met an issue with
our code repository and Guvnor - so we are building repository import xml
for Guvnor from subversion - this helps to manage versions properly (tied to
builds). 

So there are several points to look at. I think if you really need to have
BA's writing rules - you must solve this problem, in other case - junit +
drl (+flow maybe) is the best fit.
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Who-writes-your-rules-Dev-vs-BA-tp2398166p2400829.html
Sent from the Drools - User 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] Guvnor siteminder integration (pre-authenticated scenario)

2011-01-28 Thread vasilievip

Attaching auto-login function which we used to enable our admin users with
administrative permissions in Guvnor (granted during first access).

http://drools-java-rules-engine.46999.n3.nabble.com/file/n2366434/drools-guvnor-patch-howto.txt
drools-guvnor-patch-howto.txt 
http://drools-java-rules-engine.46999.n3.nabble.com/file/n2366434/guvnor.properties
guvnor.properties 
http://drools-java-rules-engine.46999.n3.nabble.com/file/n2366434/PreAuthAuthenticator.java
PreAuthAuthenticator.java 

Guvnor must be patched with compiled PreAuthAuthenticator.

Hope someone will find this useful. We are moving to jaas LoginModule so
this code will not be required...
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-siteminder-integration-pre-authenticated-scenario-tp2366434p2366434.html
Sent from the Drools - User 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] Guvnor bulk importer problem

2011-01-22 Thread vasilievip

Attaching my version of repository xml generator for Guvnor based on drools
repository api.
RepositoryGenerator scans specified folders and generates packages into
repository then export it as xml into target folder (then unit tests loading
this exported file and perform package testing). 

http://drools-java-rules-engine.46999.n3.nabble.com/file/n2310754/RepositoryGenerator.java
RepositoryGenerator.java 
http://drools-java-rules-engine.46999.n3.nabble.com/file/n2310754/KnowledgeGenerator.java
KnowledgeGenerator.java 
http://drools-java-rules-engine.46999.n3.nabble.com/file/n2310754/RulesGenerator.java
RulesGenerator.java 

Generator can be executed with maven build:

org.drools
drools-repository  


org.hibernate
hibernate


org.hibernate
hibernate-entitymanager



...

   
maven-dependency-plugin


compile

copy-dependencies


   
${project.build.directory}/model_to_guvnor
   
mycompany-model



   
...
 
  org.codehaus.mojo  
  exec-maven-plugin  

 
compile  
  
java  
  
  
 com.mycompany.RepositoryGenerator  
   
  ${project.build.directory}/classes  
 
${project.build.directory}/model_to_guvnor
  ${app-version}
  ${app-build-date}
   
  
 

   
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-bulk-importer-problem-tp1488360p2310754.html
Sent from the Drools - User 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] Is it possible to transfer parameters from flow into rules??

2010-10-10 Thread vasilievip

http://drools-java-rules-engine.46999.n3.nabble.com/Rules-and-process-variables-td1616599.html
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Is-it-possible-to-transfer-parameters-from-flow-into-rules-tp1670806p1674202.html
Sent from the Drools - User 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] Rules and process variables...

2010-10-04 Thread vasilievip

I think latest flows default notation(skin) is BPMN2 and "Action" node has
name "Script task"
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Rules-and-process-variables-tp1616599p1631202.html
Sent from the Drools - User 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] Rules and process variables...

2010-10-02 Thread vasilievip

http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-flow/html_single/index.html#d0e1348

In flow action insert instance:

insert( context.getProcessInstance());

In rules:

processInstance : WorkflowProcessInstance()
Person( name == ( processInstance.getVariable("name") ) )

Regards,
Ivan
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Rules-and-process-variables-tp1616599p1620727.html
Sent from the Drools - User 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] Guvnor bulk importer problem

2010-09-16 Thread vasilievip

Hello,

I'm evaluating Guvnor repository import utility. 

I found svn location of project 
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-guvnor/bulk-importer-util/

also built and generated guvnor-import.xml

But I'm unable to load this xml into guvnor. Tried 5.0 and 5.1.1 versions

Error from Guvnor:
Unable to import into the repository. Consult the server logs for error
messages.

Error from log:
ERROR 16-09 12:38:07,281
(RulesRepository.java:importRulesRepositoryFromStream:9
80)  javax.jcr.InvalidSerializedDataException: illegal node name:
{http://ww
w.jcp.org/jcr/sv/1.0}node: Unknown prefix: D: Unknown prefix: D

Can someone point me to working version of bulk importer utility?

Thanks,
Ivan
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-bulk-importer-problem-tp1488360p1488360.html
Sent from the Drools - User 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] Event Node in foreach

2010-09-02 Thread vasilievip

 Same test case, event scope changed to "external": 
http://drools-java-rules-engine.46999.n3.nabble.com/file/n1405372/event-test%28signalInRules%292.zip
event-test%28signalInRules%292.zip 
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Event-Node-in-foreach-tp1171380p1405372.html
Sent from the Drools - User 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] Event fired in rules not handled properly

2010-09-02 Thread vasilievip

Same test case, event scope changed to "external":
http://drools-java-rules-engine.46999.n3.nabble.com/file/n1405346/event-test%28signalInRules%292.zip
event-test%28signalInRules%292.zip 
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Event-fired-in-rules-not-handled-properly-tp1405303p1405346.html
Sent from the Drools - User 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] Event fired in rules not handled properly

2010-09-02 Thread vasilievip

Please find attached test case which I use to reproduce problem. To run test
just use "mvn test".
http://drools-java-rules-engine.46999.n3.nabble.com/file/n1405303/event-test%28signalInRules%29.zip
event-test%28signalInRules%29.zip 

Issue is that event fired in rules using signalEvent doesn't allow to fire
rules again.

So the issue is:
In flow:
drools.getWorkingMemory().setFocus("create-fault-event");
drools.getWorkingMemory().fireAllRules();
This prints output.

In rule:
   drools.getKnowledgeRuntime().signalEvent("LocalEvent", null);

In flow:
drools.getWorkingMemory().setFocus("create-fault-event");
drools.getWorkingMemory().fireAllRules();

No output - rules not fired. Not sure why

Regards,
Ivan
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Event-fired-in-rules-not-handled-properly-tp1405303p1405303.html
Sent from the Drools - User 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] Event Node in foreach

2010-09-02 Thread vasilievip

I have the same problem. If I switch event scope to "internal" event will be
ignored. I've tried drools 5.1.0 and 5.1.1. Please find attached test case.
To run test just fire "mvn test".
http://drools-java-rules-engine.46999.n3.nabble.com/file/n1405008/event-test%28ForEachException%29.zip
event-test%28ForEachException%29.zip 
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Event-Node-in-foreach-tp1171380p1405008.html
Sent from the Drools - User 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] Invocation Patterns

2010-08-03 Thread vasilievip

It was just suggestion. Described use case sounds like some integration
process, my assumption that BPEL fits better in this situation than set of
custom workitem handlers for each of participants, also it works with XSD
very well - no need for custom model. 
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Invocation-Patterns-tp1019224p1020287.html
Sent from the Drools - User 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] Invocation Patterns

2010-08-03 Thread vasilievip

Have you looked at BPEL?
http://wiki.open-esb.java.net/Wiki.jsp?page=FileBCTutorialUsingBindingWizard
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Invocation-Patterns-tp1019224p1020107.html
Sent from the Drools - User 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] BRL rules created in Guvnor can't be opened by drools-eclipse plugin

2010-07-20 Thread vasilievip

Hello,

I've created rule with guided editor in Guvnor, then tried to open this rule
in drools-eclipse plugin - got exception.

Drools version is 5.0.1. Also tried latest jbooss-tools set of plugins -
problem is the same.
Sample test case+ log from Eclipse are attached.
http://drools-java-rules-engine.46999.n3.nabble.com/file/n982161/test2.zip
test2.zip 
http://drools-java-rules-engine.46999.n3.nabble.com/file/n982161/log.log
log.log 


Regards,
Ivan
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/BRL-rules-created-in-Guvnor-can-t-be-opened-by-drools-eclipse-plugin-tp982161p982161.html
Sent from the Drools - User 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] DroolsFlow with foreach node stops execution of entire flow on empty collection

2010-07-19 Thread vasilievip

I've just tried 5.1.M2 - problem still exists. 

Thanks,
Ivan

-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/DroolsFlow-with-foreach-node-stops-execution-of-entire-flow-on-empty-collection-tp978149p978416.html
Sent from the Drools - User 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] DroolsFlow with foreach node stops execution of entire flow on empty collection

2010-07-19 Thread vasilievip

Hello,

Drools version 5.0.1 
DroolsFlow with foreach node stops execution of entire flow on empty (not
null but empty) collection.

Please find attached test case:

http://drools-java-rules-engine.46999.n3.nabble.com/file/n978149/test_foreach.zip
test_foreach.zip 

Thanks
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/DroolsFlow-with-foreach-node-stops-execution-of-entire-flow-on-empty-collection-tp978149p978149.html
Sent from the Drools - User 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] expert: usage of ruleflow-groups

2010-05-04 Thread vasilievip

 You could manually activate and deactivate ruleflow groups using
workingMemory.getAgenda().[de]activateRuleflowGroup(name). 

workingMemory.getAgenda().[de]activateRuleflowGroup(name).
session.fireAllRules();

http://drools-java-rules-engine.46999.n3.nabble.com/Agenda-group-doesn-t-stay-set-td56599.html
Source 
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/expert-usage-of-ruleflow-groups-tp776406p776798.html
Sent from the Drools - User 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] DroolsFlow with RuleFlowGroup node suppresses exceptions

2010-04-28 Thread vasilievip

A bit corrected case which contains output:
http://n3.nabble.com/forum/FileDownload.jtp?type=n&id=762300&name=exceptions_test_case.zip
exceptions_test_case.zip 
http://n3.nabble.com/forum/FileDownload.jtp?type=n&id=762300&name=ScreenShot001.png
ScreenShot001.png 

So the problem is:

try{
   execute flow which throws exception
}catch (Exception){
   Never executed!
}

But instead output in system.err

-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/DroolsFlow-with-RuleFlowGroup-node-suppresses-exceptions-tp761961p762300.html
Sent from the Drools - User 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] DroolsFlow with RuleFlowGroup node suppresses exceptions

2010-04-28 Thread vasilievip

Hello,

I' m trying to use Drools Flow (Drools version 5.0.1). I've added 
RuleFlowGroup node to flow. Now when I getting exception after this node
this exception will be suppressed.

Thoughts?

Please find test cases attached.

http://n3.nabble.com/forum/FileDownload.jtp?type=n&id=761961&name=exceptions_test_case.zip
exceptions_test_case.zip 
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/DroolsFlow-with-RuleFlowGroup-node-suppresses-exceptions-tp761961p761961.html
Sent from the Drools - User 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 Flow with RuleSet node suppresses exceptions

2010-01-06 Thread vasilievip

Hello,

I' m trying to use Drools Flow (Drools version 5.0.1) in my tiny little
project and found strange problem/behavior (and can't find  solution in
web):
When I've added  RuleSet node to flow, and if I get exception after this
node, in ,for example, Action node then this exception will be suppressed.

Please find test cases attached.

It looks like a bug but also can be leak of knowledge.

Could you please help?

http://n3.nabble.com/file/n110927/exceptions_test_case.zip
exceptions_test_case.zip 
-- 
View this message in context: 
http://n3.nabble.com/Drools-Flow-with-RuleSet-node-suppresses-exceptions-tp110927p110927.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users