Ruleflow nog showing
by Femke De Backere
Hi!
As I was creating a new ruleflow, to fit as a subprocess in another
ruleflow, I encountered the following problem: My ruleflow is build,
and I checked the correctness with the "Check the ruleflow model"
button. When I close Eclipse and reopen my project again, my whole
ruleflow (except for the start node) is gone, the xml behind the .rf
still exists, but the view is gone. Has anyone any clue what happened?
Thx,
Femke
17 years, 3 months
FW: [rules-users] FW: When is 5.0 GA?
by Umesh Wankhede
Sorry about this mail, please ignore it. Actually this was composed
couple of days back and it got stuck in my Outbox and got sent now.
Umesh
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Mauricio
Salatino
Sent: Wednesday, March 11, 2009 6:21 PM
To: Rules Users List
Subject: Re: [rules-users] FW: When is 5.0 GA?
Yes, I think...
It's strange that you don't recieve the Mark mail about that..
On Wed, Mar 11, 2009 at 9:46 AM, Ingomar Otter <iotter(a)mac.com> wrote:
>If you are not the intended recipient, you have received this
transmission in error and you are hereby advised that any
>review, disclosure, copying, distribution, or use of this transmission,
or any of the information included therein,
> is unauthorized and strictly prohibited.
Maybe off-topic but I am wondering: Am I the intended reciepient? ;-)
--I
Am 11.03.2009 um 13:39 schrieb Umesh Wankhede:
From: Umesh Wankhede [mailto:umesh.wankhede@arisglobal.co.in]
Sent: Tuesday, March 10, 2009 5:35 PM
To: 'rules-users(a)lists.jboss.org'
Subject: When is 5.0 GA?
Hi
When is the plan for GA of Drools 5.0?
Umesh
Legal Notice: This transmission, including any attachments, is
confidential, proprietary, and may be privileged. It is intended solely
for
the intended recipient. If you are not the intended recipient, you have
received this transmission in error and you are hereby advised that any
review, disclosure, copying, distribution, or use of this transmission,
or any of the information included therein, is unauthorized and strictly
prohibited. If you have received this transmission in error, please
immediately notify the sender by reply and permanently delete all copies
of
this transmission and its attachments
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
- Salatino Mauricio -
17 years, 3 months
Creating fact instance programatically
by nestabur
Hi all,
I'm trying to create a fact programatically like this:
FactType myfact =package.getFactType(factTypeName);
Object myPojo = myfact.newInstance();
An error occurs when calling the method getFactType, here my stackTrace:
36267-1236185246849-0:0:1:1 Exception while processing message:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1938)
at java.lang.String.substring(String.java:1905)
at org.drools.rule.Package.getFactType(Package.java:552)
My drools version is 5.0.0.M5
Any suggestion?
--
View this message in context: http://www.nabble.com/Creating-fact-instance-programatically-tp22334399p2...
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 3 months
FW: When is 5.0 GA?
by Umesh Wankhede
From: Umesh Wankhede [mailto:umesh.wankhede@arisglobal.co.in]
Sent: Tuesday, March 10, 2009 5:35 PM
To: 'rules-users(a)lists.jboss.org'
Subject: When is 5.0 GA?
Hi
When is the plan for GA of Drools 5.0?
Umesh
Legal Notice: This transmission, including any attachments, is confidential, proprietary, and may be privileged. It is intended solely for
the intended recipient. If you are not the intended recipient, you have received this transmission in error and you are hereby advised that any
review, disclosure, copying, distribution, or use of this transmission, or any of the information included therein, is unauthorized and strictly
prohibited. If you have received this transmission in error, please immediately notify the sender by reply and permanently delete all copies of
this transmission and its attachments
17 years, 3 months
Events - Determining the Fact Pattern
by David Boaz
Hi all,
Is it possible to determine the Pattern that ‘produced’ a given Fact? For
example, assuming we have the following rule and event handler:
rule r1
when
p1:Person(...)
p2:Person(...)
then
...
end
protected class MyAgendaEventHandler extends
DefaultAgendaEventListener {
@Override
public void
afterActivationFired(org.drools.event.rule.AfterActivationFiredEvent event)
{
String ruleName = event.getActivation().getRule().getName();
KnowledgeRuntime knowledgeRuntime = event.getKnowledgeRuntime();
for (FactHandle factHandle : event.getActivation().getFactHandles()) {
Object fact = knowledgeRuntime.getObject(factHandle);
Pattern pattern= ?;
}
}
}
Is it possible to determine the Pattern that originate a Person object? If
yes, how the pattern is identified?
Thanks, David
--
View this message in context: http://www.nabble.com/Events---Determining-the-Fact-Pattern-tp22397570p22...
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 3 months
drools-solver -- logger error (slf4j binding)?
by Andrew Waterman
Hi,
I'm using the drools-solver.M5 build through Maven and have gotten the
following error while running my project:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
I've checked my dependency graph, and drools-solver references the
sl4j-api, but no implementation. I checked the mvnrepository, and
there are several other slf4j related projects. What is the preferred
binding for JDK1.6?
best wishes,
Andrew
---------------------------------
Andrew Waterman
San Cristóbal de las Casas, Chiapas, Mexico
+52 1 967 107 5902
+1 510 342 5693
17 years, 3 months
Using "matches" in Guided Rule Editor (BRL)
by Andrea H.
Dear all,
I have a problem when using the operator "matches" in the Guided Rule
Editor.
I can use the operator from the drop down list, but when saving the rule,
the tabs "BRL Source" and "Generated DRL" show me that the operator has not
been used at all. Instead, the "operator" tag is left out completely in the
BRL source.
If I choose a different operator, e.g. "is equal to", save, and switch back
to "matches" (and save again), than the BRL source still shows the operator
"==".
If I however edit the BRL source itself to contain "matches", the rule works
fine in my application.
Strange enough, if I use "and matches" in a multi-part-condition on one
attribute, there does not seem to be this problem (the BRL says "&&
matches"). It seems to be only a problem if the "matches" operator comes in
the first assertion line for an attribute.
I would be really grateful if anyone had an idea on this behaviour, since I
seem to be quite lost!
Thanks in advance,
Andrea
--
View this message in context: http://www.nabble.com/Using-%22matches%22-in-Guided-Rule-Editor-%28BRL%29...
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 3 months
Re: rules-users Digest, Vol 28, Issue 19
by Ricardo Gil Alcañiz
Thanks for your fast response Kris and Michal!
I tried to use your solution Kris, but I've found that 5.0.0 M5
WorkflowProcessInstance does not seems to provide getVariable method. I've
found that method into WorkflowProcessInstanceImpl searching in svn trunk. I
must work with that class or I missed something? Thanks again!
Ricardo.
> ---------- Mensaje reenviado ----------
> From: Kris Verlaenen <Kris.Verlaenen(a)cs.kuleuven.be>
> To: Rules Users List <rules-users(a)lists.jboss.org>
> Date: Sun, 8 Mar 2009 03:56:29 +0100
> Subject: Re: [rules-users] Drools Flow, constraint parametrization
> Ricardo,
>
> If you need to access process variables and have only simple constraint
> expressions, I suggest you use code constraints (Java or MVEL dialect),
> as they have direct access to variables (and globals).
>
> If you want to use rule constraints anyway (because your constraints can
> become rather complex), there are a few options:
>
> - You cannot use globals to pass information used in your constraints,
> because globals are considered immutable with respect to rule conditions
>
> - You can put your data you want to access in your working memory.
> Rule constraints can then access this info just like any normal rule.
>
> - You access the variable value using the special "processInstance"
> rule constraint (I just added a new section in the documentation to
> explain):
>
> Rule constraints do not have direct access to variables defined inside
> the process. It is however possible to refer to the current process
> instance inside a rule constraint, by adding the process instance to the
> working memory and matching to the process instance inside your rule
> constraint. We have added special logic to make sure that a variable
> "processInstance" of type WorkflowProcessInstance will only match to the
> current process instance and not to other process instances in the
> working memory. Note that you are however responsible yourself to insert
> (and possibly update) the process instance into the session (for example
> using Java code or an (on-entry or on-exit or explicit) action in your
> process). The following exampleof a rule constraint will search for a
> person with the same name as the value stored in the variable "name" of
> the process:
>
> processInstance: WorkflowProcessInstance()
> Person( name == ( processInstance.getVariable("name") ) )
> # add more constraints here ...
>
> Kris
>
> Quoting Ricardo Gil Alcañiz <rgil(a)okode.com>:
>
> > Hi,
> >
> > I'm not a new drools user but I started to test rule flows (5.0M5)
> > recently
> > and I'm stucked, so any clue will be welcomed :). I'm testing how to
> > share a
> > StatefulKnowledgeSession between N rule flow instances. I'm trying
> > to
> > parametrize each instance with process variables at start time but I
> > don't
> > know how to use them from rule constraints (in event waits, splits,
> > etc.).
> > I've read the documentation and I've found this text related to
> > constraints
> > "Both rule and code constraints have access to globals that are
> > defined for
> > the process and can reuse imports at the process level." I tried it
> > assigning (from an action) a variable value to a global variable but
> > it's
> > not working for me. ¿I'm missing something?
> >
> > Thanks in advance!
> >
> > Ricardo.
> >
>
17 years, 3 months