[rules-users] how to check difference between two .pkg files

2013-09-09 Thread maunakea
I have 2 .pkg files that are 2 snapshots for the same package from 2
different Guvnor instances. The 2 Guvnor instances are prod and test. I see
that within Guvnor, it can show diff between 2 snapshots in its repository.
If Guvnor can do it, there must be some API that I can use outside in a
standalone program to compare between .pkg file. Anybody knows how to do
this?

thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/how-to-check-difference-between-two-pkg-files-tp4025877.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] Enabled Keyword

2013-09-03 Thread maunakea
I struggled with this as well and I hope somebody can guide to show us how to
make this work.

Meanwhile, I came up with a workaround that works for the type of rules we
have...
http://drools.46999.n3.nabble.com/file/n4025784/excel.jpg 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Enabled-Keyword-tp4025769p4025784.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] deploy guvnor-5.5 on weblogic 10.3.6

2013-08-25 Thread maunakea
I tried the same and gave up. Switched to Tomcat for Guvnor 5.5.0.
I had a similar question and didnt get any responses, so, I assume nobody
has been successful in deploying 5.5.0 on Weblogic 11 or 12



--
View this message in context: 
http://drools.46999.n3.nabble.com/deploy-guvnor-5-5-on-weblogic-10-3-6-tp4025669p4025670.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 set enabled=true/false attribute in spreadsheeet decision table?

2013-08-22 Thread maunakea
In web guided editor, I am able to add a new metadata/attribute column to add
a column for enabled attribute, which I can use to disable rule on that
row. I am not able to achieve that in a spreadsheet decision table. When I
add ENABLED column, it puts CALENDARS in the DRL. It looks like it is taking
the E from ENABLED which for CALENDARS. Does that mean that ENABLED
attribute is not supported in spreadsheet decision table?

thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-set-enabled-true-false-attribute-in-spreadsheeet-decision-table-tp4025642.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] decision tables conditional matching

2013-08-22 Thread maunakea
Just some thoughts/comments...

It looks like you are trying to solve a logic that has conditions that are
dependent between rules. This usually gets messy like you have observed. I
like to keep my rules atomic without ANY dependencies to other rules and I
try to avoid controlling order of execution. As you stated, if you make
every rule atomic, it has to account for all conditions - which is not
necessarily bad, but your rules will have many conditions that seem
redundant when you look at the other rules. There are many posts on this
topic, you may want to scan through the posts. One approach is to use
stated facts and let rete do its work.

If your domain is to check eligibility, you can consider writing only the
rules that evaluate for true or only the rules that evaluate to false.
Typically, for eligibility, you only evaluate when eligibility would be
false, that will reduce your rules. Otherwise, there will be plenty of gaps
in your rules.

I know I dint give an answer that you are looking for, but some things to
consider.
Good Luck :)



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-decision-tables-conditional-matching-tp4025603p4025645.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] Drools Guvnor Integration

2013-08-22 Thread maunakea
From the trace, it looks like you need to add the source jars. Maybe you are
trying to debug and when stepping into a method you are getting this? 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Integration-tp4025641p4025649.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] Drools Guvnor Integration

2013-08-22 Thread maunakea
From the trace, it might not be the case that you don't have the source.
Sorry, I dont want to misguide you. I dont know what this error means.
You can get the source from the same download that you got Drools Expert.
Good luck.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Integration-tp4025641p4025651.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] Guvnor in Reselliency environment : Assets stored in DB not visible in Secondary server

2013-08-09 Thread maunakea
Looks like you have not configured clustering. Once you setup clustering, you
will see these tables...
GLOBAL_VERSION
JOURNAL
LOCAL_VERSIONS




--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Guvnor-in-Reselliency-environment-Assets-stored-in-DB-not-visible-in-Secondary-server-tp4025062p4025436.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] Guvnor 5.5 POJO upload error when there is dependency

2013-07-25 Thread maunakea

Guvnor 5.5.0 on Tomcat 7
I have 2 model jars:
x.jar
y.jar

Both contain our domain pojos. y.jar does not have any dependencies. x.jar
has a reference to a class in y.jar
When I upload y.jar, no errors
When I upload x.jar after y.jar is already uploaded, I get this error for
the class that is in y.jar
Caused by: java.lang.NoClassDefFoundError: com/classFromY.jar
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
at
org.drools.rule.MapBackedClassLoader.fastFindClass(MapBackedClassLoader.java:85)
at
org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java:103)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
at
org.drools.guvnor.server.contenthandler.ModelContentHandler.isClassVisible(ModelContentHandler.java:184)
at
org.drools.guvnor.server.contenthandler.ModelContentHandler.getImportsFromJar(ModelContentHandler.java:149)
at
org.drools.guvnor.server.contenthandler.ModelContentHandler.onAttachmentRemoved(ModelContentHandler.java:87)
at
org.drools.guvnor.server.RepositoryAssetService.archiveOrUnarchiveAsset(RepositoryAssetService.java:489)

Due to project/organization, I am not able to merge both jars.

So question...
Does the Guvnor pojo jar require that it cannot have any dependencies
outside the jar? even if the other jar is also uploaded?

thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-5-5-POJO-upload-error-when-there-is-dependency-tp4025146.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] drools migration

2013-07-02 Thread maunakea
I ran into a similar issue a while ago and had to rewrite the rule on how it
deals with collection object as facts. Maybe, if you post your rule, I can
try to suggest.



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-drools-migration-tp4024691p4024716.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] drools migration

2013-07-02 Thread maunakea
This seems to be an equivalent rule removing the need for collect...

when
  $trx : TransactionWrapper(ignoreSourceLocation == false) 
  $fromState : TAWrapper ( authorityType == TAType.STATE || authorityType ==
TAType.COUNTRY, locationType == LocationType.ORIGIN ) 
  $toState   : TAWrapper ( authorityType == TAType.STATE || authorityType ==
TAType.COUNTRY, locationType == LocationType.DESTINATION, code !=
$fromState.code ) 
  $removableAuthority : TAWrapper( locationType == LocationType.ORIGIN )
then
  retract ($removableAuthority);
end 

You know your domain better :) but maybe this is what was meant?...
when
  $trx : TransactionWrapper(ignoreSourceLocation == false) 
  $fromState : TAWrapper ( authorityType == TAType.STATE || authorityType ==
TAType.COUNTRY, locationType == LocationType.ORIGIN ) 
  $toState   : TAWrapper ( authorityType == TAType.STATE || authorityType ==
TAType.COUNTRY, locationType == LocationType.DESTINATION, code !=
$fromState.code ) 
then
  retract (fromState);
end 

Good luck!!!



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-drools-migration-tp4024691p4024719.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] Reading a Guvnor PKG from drools API

2013-05-22 Thread maunakea
I saw the same error when there was a mismatch in ResourceType. You mention
you downloaded the package from Guvnor and that it work when you change the
ResourceType to drl. Can you check if the .pkg file is actually drl? Could
it be that you downloaded the drl as a .pkg file?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Reading-a-Guvnor-PKG-from-drools-API-tp4023921p4023932.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] How to hold a Collection of Objects in memory for processing ?.

2013-04-25 Thread maunakea
Have you tried collect? something like...

$alertFromDATA : Alert ( sourceName==DATA) from $alert.alerts
$list : ArrayList() from collect ($alertFromDATA)

You may even be able to combine both statements into one.
Dont know if this will work, but you can try.



--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-hold-a-Collection-of-Objects-in-memory-for-processing-tp4023537p4023539.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] Maintain assets synchronized between members of a team

2013-04-25 Thread maunakea
you should be able to use Guvnor Repository view in Eclipse to do this. We
use it to synch with local Eclipse projects which we then sync with an
external source control.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Maintain-assets-synchronized-between-members-of-a-team-tp4023533p4023540.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] Designer for Guvnor 5.3.5

2013-04-23 Thread maunakea
You will need to deploy the war file.
You should be able to find it here...
http://mvnrepository.com/artifact/org.drools




--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Designer-for-Guvnor-5-3-5-tp4023481p4023494.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 deploying Guvnor 6.0.0.Beta1 on Tomcat 7

2013-04-23 Thread maunakea
Thank you manstis. I'll keep a watch for Beta2.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Error-deploying-Guvnor-6-0-0-Beta1-on-Tomcat-7-tp4023456p4023493.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] Error deploying Guvnor 6.0.0.Beta1 on Tomcat 7

2013-04-19 Thread maunakea
I was excited to try out Guvnor 6. Downloaded the Beta1 and tried deploying
on Tomcat 7.0.32. It deployed fine, but when I access the URL, I get the
trace below. Anybody able to deploy on Tomcat 7?

org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: error invoking
endpoint
at
org.jboss.errai.bus.server.io.ConversationalEndpointCallback.callback(ConversationalEndpointCallback.java:132)
at
org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54)
at
org.jboss.errai.cdi.server.CDIExtensionPoints$3.callback(CDIExtensionPoints.java:512)
at
org.jboss.errai.bus.client.framework.DeliveryPlan.deliver(DeliveryPlan.java:43)
...
Caused by: java.lang.NullPointerException
at
org.uberfire.backend.server.UserServicesImpl.buildPath(UserServicesImpl.java:71)
at
org.uberfire.backend.server.UserServicesImpl$Proxy$_$$_WeldClientProxy.buildPath(UserServicesImpl$Proxy$_$$_We
at
org.uberfire.backend.server.WorkbenchServicesImpl.getPathToDefaultEditors(WorkbenchServicesImpl.java:105)
at
org.uberfire.backend.server.WorkbenchServicesImpl.loadDefaultEditorsMap(WorkbenchServicesImpl.java:76)
at
org.uberfire.backend.server.WorkbenchServicesImpl$Proxy$_$$_WeldClientProxy.loadDefaultEditorsMap(WorkbenchSer
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.errai.bus.server.io.ConversationalEndpointCallback.callback(ConversationalEndpointCallback.java:114)
... 29 more
*** Message delivery failure ***
Bus: org.jboss.errai.bus.server.ServerMessageBusImpl@134137c
Message: CommandType=loadDefaultEditorsMap:,
ErrorTo=org.uberfire.client.workbench.services.WorkbenchServices:RPC.loadDef
errorMessage: Error calling remote service:
org.uberfire.client.workbench.services.WorkbenchServices:RPC
exception: org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: error
invoking endpoint
disconnect: false
org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: error invoking
endpoint
at
org.jboss.errai.bus.server.io.ConversationalEndpointCallback.callback(ConversationalEndpointCallback.java:132)
at
org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54)
at
org.jboss.errai.cdi.server.CDIExtensionPoints$3.callback(CDIExtensionPoints.java:512)
at
org.jboss.errai.bus.client.framework.DeliveryPlan.deliver(DeliveryPlan.java:43)



--
View this message in context: 
http://drools.46999.n3.nabble.com/Error-deploying-Guvnor-6-0-0-Beta1-on-Tomcat-7-tp4023456.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] Problems with defaultPackage

2013-04-16 Thread maunakea
I thought defaultPackage was similar to java no package. After reading your
post, I do see defaultPackage as the package name!
I am using Guvnor 5.5.0 and I am able to delete defaultPackage. After you
import the process to default package, check the source to see what Guvnor
created.
Just curious... why do you want to put assets in the default package?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Problems-with-defaultPackage-tp4023288p4023359.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] Mapping fields of all theses facts takes too much times

2013-04-16 Thread maunakea
I sounds like your business objects will have dependencies and that could be
the reason you are not able to import them into Guvnor. Have you tried
importing all those dependencies as well? Using interfaces as the fact model
for such business objects is a great idea - this is exactly the pattern I am
using and works fine with Drools. I use interfaces and abstract classes for
fact models. This also allows for creating mock objects to create your test
scenarios in Guvnor without dragging in all dependencies to DBs, services,
etc. Then at runtime, you assert your actual BOs that implement these
interfaces and rules will work correctly with them.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Mapping-fields-of-all-theses-facts-takes-too-much-times-tp4023358p4023360.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