WorkItemNodeInstance and the on exit action
by Chris Raschl
Hi Kris,
we experienced some troubles with our drools flow integration today
(we upgraded to the lastest snapshot) and I found out that is has to
do with a fix (see [1]) you commited some time ago.
Our problem is, that we access the data submitted by the user to
finish a human task in the on exit action of the human task node
like this:
WorkItemNodeInstance wini = (WorkItemNodeInstance)context.getNodeInstance();
Map<String, Object> result = (Map<String, Object>)wini.getWorkItem().getResult("Result");
This results in a NPE because the workItemId is set to -1 in the WorkItemNodeInstance
before getWorkItem() is called. So getWorkItem() returns null.
Is there a better (recommended) way to work with human task data? Maybe using an
out-mapping?
Thanks,
chris
[1] http://fisheye.jboss.org/browse/JBossRules/trunk/drools-core/src/main/jav...
14 years, 5 months
package registry null / event wait node constraint
by retoy
I'm getting a NullPointerException when trying to add a rule flow into my
knowledgebase.
It occurs on line 119 of org.drools.compiler.ProcessBuilder, because the
pkgRegistry is null.
118: PackageRegistry pkgRegistry =
this.packageBuilder.getPackageRegistry(process.getPackageName());
119: org.drools.rule.Package p = pkgRegistry.getPackage();
The reason for it must somehow be related to the constraint of my event wait
state, since I don't get the exception, when I remove that. The constraint
is just: dummy == "foo", where dummy is a global.
I don't see how any package name should be involved here... Did I miss
something in the user guide?
Thanks for any suggestions how to figure out what the problem is!
Reto
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/package-registry-null...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 5 months
Drools Guvnor Issues : Default Constructors & Declaring Dialects
by soc.frangis
I have successfully converted a previous rules engine project to Drools and
was attempting to make the next step by trying out Guvnor for the QA/Testing
module.
1)Even though my program executed and ran perfectly in Eclipse, i noticed
the testing QA section of Guvnor would crash with my fact models because i
did not have a default constructor with no arguments. I made the change, but
is this something that is required for Guvnor QA to work properly (all fact
models / POJOs MUST have a default no-arg constructor) OR did i just
configure Guvnor wrong?
I basically solved my problem, just trying to learn why there was a problem
to begin with.
2) Also, I noticed that even though the default dialect is java (and not
specifying it does not cause any issues in Eclipse), the Guvnor QA section
would not understand the rules unless they explicitly have dialect "java" in
their signature. Of course adding it fixes the problem, but again I am
trying to learn why. I assumed since it is the default dialect that it would
not need to be stated. Is this again just the way Guvnor works (doesn't
work) or do i need to configure it a certain way?
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Guvnor-Issues-...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 5 months
Re: [rules-users] Drools 5.1.0.M2 - WorkItemNodeInstance -- Listeners can't get hold of WorkItem object
by Vijay K Pandey
I guess this problem was due to a fix done in WorkItemNodeInstance? Is this the correct behavior? If yes how do we get hold of "WorkItem" instance in the attached listeners?
http://fisheye.jboss.org/browse/JBossRules/trunk/drools-core/src/main/jav...
Thanks
Vijay
From: Vijay K Pandey
Sent: Tuesday, June 15, 2010 9:20 AM
To: 'Rules Users List'
Subject: RE: Drools 5.1.0.M2 - WorkItemNodeInstance -- Listeners can't get hold of WorkItem object
Any one on this issue? Any Drools Flow expert?
Appreciate your time for taking a look at it.
Thanks
Vijay
From: Vijay K Pandey
Sent: Thursday, June 10, 2010 12:03 PM
To: 'Rules Users List'
Subject: RE: Drools 5.1.0.M2 - WorkItemNodeInstance -- Listeners can't get hold of WorkItem object
Should I log this as a JIRA ticket.
Thanks
Vijay
From: Vijay K Pandey
Sent: Wednesday, June 09, 2010 9:57 AM
To: 'Rules Users List'
Subject: Drools 5.1.0.M2 - WorkItemNodeInstance -- Listeners can't get hold of WorkItem object
Hi,
There is a change done in Drools 5.1.0.M2 - org.drools.workflow.instance.node.WorkItemNodeInstance class in the method
public void triggerCompleted(WorkItem workItem) at line 196 which is setting the workItemId as -1
this.workItemId = -1;
Due to the above change the listeners which are attached to the "complete" event of the work item - such as the method below
public void beforeNodeLeft(ProcessNodeLeftEvent event) are not able to get hold of the associated workitem object as it returns null.
Is there any specific reason that workItemId is set to -1 even before the associated listeners get triggered or is this a bug?
If it was an intended change then how do I get hold of the "WorkItem" object in the attached listeners.
Thanks
Vijay
p.s This change was not there in the snapshot of 18th April 2010 which I was earlier working on. Above is the only change in this class from the snapshot of 18th April and 5.1.0.M2
14 years, 5 months
OT: Job Posting - Java Contractor in the Bay Area
by Nick Heudecker
A profitable start-up in the cable advertising space is looking to expand
its development team to include another well-rounded developer. I've
detailed some of what we're looking for below and if you think you're a good
fit, you're welcome to send over your resume.
Personal Requirements:
- Must be a US citizen.
- Reside in the Bay Area and able to commute to the office (downtown San
Jose) at least 3 days a week.
- Accustomed to working with a small, distributed team and collaborating
over email, Skype and IM. Obviously, you need to be able to produce with
little supervision.
- Innovative thinker and a fast coder. We're constantly working to set
the tempo in our product space. You'll need to help develop solutions to
problems and implement them quickly.
- Outstanding communication skills, both verbal and written.
Experience and Technical Requirements:
- Ideally you've worked on several different types of products with
varying teams. Our product space is highly dynamic and a diverse experience
base will help you succeed.
- Must be a Java expert with 3-5 years of experience. I'm looking for
more of a passionate generalist than someone with knowledge of only a few
things. That said, experience with some or all of the following is
required: Hibernate, Spring, rules engines, web frameworks (GWT, Wicket),
and XML technologies (SOAP, SOA, XSD, WSDL, etc).
- Experience with relational databases such as MySQL or PostgreSQL and a
firm grasp of SQL.
- Additionally, you must be familiar with development tools such as
Maven, IDEA/Eclipse, unit testing, Subversion, among others.
- Experience with non-relational data stores, caching and producing
highly available applications is also desirable.
14 years, 5 months
Upgraded Guvnor to 5.1.x from 5.0 and getting expander error with DSL
by Andrew Nguyen
I just upgraded to the latest milestone and am getting the following error:
[package configuration problem][ERR 103] Line 31:0 rule 'rule_key' failed predicate: {(validateIdentifierKey(DroolsSoftKeywords.RULE))}? in rule
[package configuration problem][ERR 101] Line 31:9 no viable alternative at input 'TPNOrders' in rule expander
[package configuration problem][ERR 101] Line 32:0 no viable alternative at input 'import' in rule expander in rule dsl
This exact set of *.brl, *.dsl, drools.package were working up until the upgrade. I've been searching the web but haven't found anything similar.
Thanks!
14 years, 5 months
Accessing drools rule repository from java?
by Jens Poetsch
Hi there,
Is it posible to access the drools rules repository from java in order
to insert new rules to an existing project? I've read the documentation
but I'm not able to find an answer.
14 years, 5 months
Fusion Dead lock or something
by djb
Hi,
I've got fusion running, and it is firing my very basic rule that just says
hello when an event is submitted... I have commented out all of the
irrelevant code to leave what's below. (I have System.out.println("1")s to
see how far it gets)
It seems to lock up, always in the claimEntry.insert(subevent), but randomly
in that it's not always on the same claim.
The thread says it is still running, but it obviously isn't, and there is no
exception thrown.
Regards,
Daniel
BEGIN LOOP
msSince = cor.getTimestamp().getTime() - previousClaimTime;
clock.advanceTime(msSince, TimeUnit.MILLISECONDS);
if (cor.isSubmittal())
{
ClaimSubmittedEvent subevent = new ClaimSubmittedEvent(cor);
claimEntry.insert(subevent);
}
previousClaimTime = cor.getTimestamp().getTime();
END LOOP
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Fusion-Dead-lock-or-s...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 5 months
set show (Virus checked)
by Reto Lamprecht
Reto Lamprecht
Client/Serverentwicklung Versicherungstechnik
__________________________________________
Allianz Suisse Versicherungs-Gesellschaft AG
Bleicherweg 19, 8022 Zürich
www.allianz-suisse.ch
058 358 85 31
reto.lamprecht(a)allianz-suisse.ch
__________________________________________
This message possibly contains confidential data or items of information. It is intended solely for the rightful recipient. If you should have received the message wrongfully, it is not permitted to disclose the e-mail message or its contents to third parties, to copy or use it. We would respectfully request you to destroy the message with the exclusion of any reproduction and to notify this to the originator by e-mail.
Thank you very much.
14 years, 5 months