Repository import
by GPatel@tsys.com
Is it possible to push a repository import into a Guvnor instance?
What I am looking for is the ability to stand up a Guvnor instance from
predetermined artifacts, the artifacts being repository.xml (which
contains packages, rules, working sets, etc.) and model jars. If I have a
model jar and a repository.xml (that contains the rules that use the model
jar), can I configure a Guvnor instance to use them? This would help
automating QA/production deployments of updated model jars/rules.
Thanks
Ghanshyam
-----------------------------------------
The information contained in this communication (including any
attachments hereto) is confidential and is intended solely for the
personal and confidential use of the individual or entity to whom
it is addressed. If the reader of this message is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
communication in error and that any review, dissemination, copying,
or unauthorized use of this information, or the taking of any
action in reliance on the contents of this information is strictly
prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original
message. Thank you
14 years, 2 months
drl file importing problem intoGuvnor5.2
by domingo
Hi,
Thanks for your attention!!!..
I have a simple rule as follows ...
import com.sample.Message;
dialect "java"
rule "Hello World"
when
eval(true)
then
System.out.println( "Ok I know!!!!!" );
end
when I import into Guvnor, Guvnor automatically change the file into as
follows and fails to compile...
package com.sample
import com.sample.Message;
dialect "java"
rule 'Hello World'
dialect 'mvel'
when
eval(true)
then
System.out.println( "Ok I know!!!!!" );
end
My question is ...how come this Guvnor5.2 overriding my dialect?this
behavior of Guvnor is little disturbing...
can any one tell me whats going on in Guvnor5.2.....
-----
with kind regards,
--
View this message in context: http://drools.46999.n3.nabble.com/drl-file-importing-problem-intoGuvnor5-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 2 months
Guvnor role based authentication with JBossAS 7
by Cristiano Gavião
Hi,
I've downloaded the JBPM installer 5.2.Final. It is running ok.
I'm trying do enable role based authentication for Guvnor and I'm not
having success.
So, I found some links at google and I follow this:
1) modified the standalone.xml:
> <security-domain name="other" cache-type="default">
> <authentication>
> <login-module code="UsersRoles" flag="required">
> <module-option name="usersProperties" value="guvnor-users.properties"/>
> <module-option name="rolesProperties" value="guvnor-roles.properties"/>
> </login-module>
> </authentication>
> </security-domain>
2) unzip the drools-guvnor.war to drools-guvnor dir and removed the war
- enabled the jaas
> <security:identity authenticate-method="#{authenticator.authenticate}"
> jaas-config-name="other"/>
- and set role based to true
> <component name="org.jboss.seam.security.roleBasedPermissionResolver">
> <property name="enableRoleBasedAuthorization">true</property>
> </component>
3) created the guvnor-roles.properties and guvnor-users.properties files
at <Guvnor>/WEB-INF/classes
Strangely, there is no error in main log... at least I couldn't find
any. It seems to be ok because at the Jboss Admin Console page all is
running green.
> 0:09:11,152 INFO [org.jboss.as.server.controller]
> (DeploymentScanner-threads - 2) Deployed "jbpm-gwt-console.war"
> 20:09:11,152 INFO [org.jboss.as.server.controller]
> (DeploymentScanner-threads - 2) Deployed "jbpm-gwt-console-server.war"
> 20:09:11,170 INFO [org.jboss.as.server.controller]
> (DeploymentScanner-threads - 2) Deployed "drools-guvnor"
> 20:09:11,171 INFO [org.jboss.as.server.controller]
> (DeploymentScanner-threads - 2) Deployed "designer.war"
But I'm getting 404 (The requested resource (/drools-guvnor/) is not
available.) when trying to reach guvnor address
http://localhost:8080/drools-guvnor/
:(
What am I missing ? could anyone help me?
thanks
Cristiano
14 years, 2 months
GUVNOR-1731 and GUVNOR-1732
by GPatel@tsys.com
Any idea when GUVNOR-1731 and GUVNOR-1732 will be fixed?
http://issues.jboss.org/browse/GUVNOR-1731
http://issues.jboss.org/browse/GUVNOR-1732
I would think at least 1732 is urgent; it is a feature that is supported
in BRL but not supported in DSL
Thanks
Ghanshyam
-----------------------------------------
The information contained in this communication (including any
attachments hereto) is confidential and is intended solely for the
personal and confidential use of the individual or entity to whom
it is addressed. If the reader of this message is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
communication in error and that any review, dissemination, copying,
or unauthorized use of this information, or the taking of any
action in reliance on the contents of this information is strictly
prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original
message. Thank you
14 years, 2 months
Rules Hello Evalution
by freejava
Hello,
I have the following rule:
rule "041"
when
Party(partyType != null, partyType.trim() != "",
partyType not in ("MF", "SE", "BY", "ST", "LG", "CS", "CN"))
then
appendMessage(globalErrors, drools)
end
This is rule is getting fired 7 times when Party.partyType = " ". If my
understaning is right, this rule should be interpreted as select all Party
from working memory where partyType is not null and partyType.trim() != ""
and partyType != "MF" and partyType != "SE" .... and so on. The consequence
should not be evaluated in the first place as the value for partyType is "
".
Am I missing something ? Any help in this regard is highly appreciated.
--
View this message in context: http://drools.46999.n3.nabble.com/Rules-Hello-Evalution-tp3602504p3602504...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 2 months
Drools integration common practice
by mike
Hi there,
My company (a large HRMS vendor) wants to leverage the business engines
implementations to Drools. I am in charge of doing the piping job. So far
I've been loading objects into session and running drl files using the java
API directly. That works nice, but it keeps me in java land which makes any
programming effort 10 times harder than what I would like. At the same
time, I've been following this list and I see a lot of questions about the
Guvnor REST API. So as far as I know I have 3 choices to integrate with
Drools,
1. Java API
2. REST calls to Drools web server
3. REST calls to Guvnor
I wonder if there are some rules of thumbs on when to use which. I also
wonder what's the most common used method in average. At this point I am
leaning towards #2 because I don't need Guvnor yet. But in general I think
the REST API is a more flexible choice.
Any suggestion or a simple "I use X" will be very appreciated.
Thank you very much
Mike
14 years, 2 months
Drools execution error...
by domingo
I have one simple rule, just check the boolean attribute of the object and
print the value of the boolean, that simple rule. I am using java as my rule
dialect. I found something interesting while debugging.
1. When i read the drl file from the local file stream I found the
following...
getDialect ::: java
getConsequence :::
my.test.package.name.TestOne.Rule_boolean_test_rule_0DefaultConsequenceInvoker@b3a21684
2. when i read the same drl from the guvnor I found the following...
getDialect ::: mvel
getConsequence ::: org.drools.base.mvel.MVELConsequence@67bc67bc
Here is is my doubt...since i use the same rule file and 'java' as dialect
why the consequence and dialect are diffrence from ocal file stream.
If anyone clear this doubt will be greatly appreciated.
-----
with kind regards,
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-execution-error-tp3606864p360686...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 2 months
PatternBuilder createRestriction bug on Drools 5.1.1
by Manuel Ortiz
Dear Sirs:
I'm working on an application which writes a set of rules using information
which is stored in BDD tables. This information can be 'wrong' concerning
rule compilation, and I expect that Drools reports the corresponding
compilation errors.
I've found that PatternBuilder.createRestriction() fails to process
composite restrictions when one of the single restrictions cannot be
implemented. The problem is that although one of the sigle restrictions is
returned null, the composite restriction array is succesfully returned, one
of its elements being null, wich causes a NullPointerException when the
composite restriction is processed in
PatternBuilder.build(AbstractCompositeConstraint version) to obtain a
MultiRestrictionFieldConstraint object.
I would like to know if this bug has yet been reported and fixed in some
Drools version beyond 5.1.1
Thank you very much for your time.
Kind regards,
Manuel Ortiz
14 years, 2 months