JBPM fails to resume a rehydrated active process instance
by Alberto R. Galdo
Hi guys,
We are using JBPM 5 for long running processes in one of our products,
both, the knowledge session and WorkItemInfo & ProcessInstanceInfo are
persisted in a PostgreSQL database. Our processes involve a set of
automated tasks along with UserTasks handled inside JBPM's HumanTask
provided server ( the one that uses mina & JPA ).
For maintenance purposes, our application needs to be restarted once in
a while so we need our processes to keep running after a sucesful
rehydratation of the knowledge & JBPM contexts . We've tested a persistent
approach like this:
- We started our application and started several instances of a
process that involves at least one human task node.
- We've completed several human tasks in the current session and
things went ok, workitems got completed & processinstances desappeared as
processes came to and end.
- We left several human task in state"Ready" for our users to consume
afterwards.
- We restarted the application and let JBPM rehydrate it's context via
JPAKnowledgeService.loadStatefulKnowledgeSession()
Then we acquired and completed a "Ready" HumanTask, it got completed in
JBPM HumanTask server's database backend but the process attached never got
neither updater, nor its subsequent nodes were executed. This is weird.
We first tought it was a rehydratation problem and that the process
definition was not loaded properly, but what was our suprise when we've
been able to execute several new process instances wich we could complete
properly. So, seems that we are able to complete "current" ( as in the
current session, not the rehydrated ones ) process instances, but not able
to complete process instances that are not started in the "current" session
( the rehydrated ones ).
What's wrong here. Is it not possible to resume a process in a
rehydrated session when human tasks & JBPM's HumanTask server are involved?
Greets,
Alberto R. Galdo
argaldo(a)gmail.com
12 years, 5 months
Drools & jBPM Workshops : June : WDC NYC
by Mark Proctor
http://blog.athico.com/2012/06/drools-jbpm-workshops-june-wdc-nyc.html
----pasted from url---
JBoss BRMS (Drools and jBPM) Workshops
Drools 5, the upstream for JBoss BRMS, is a Business Logic integration
Platform, and provides a unified and integrated platform for Rules,
Workflow and Event Processing. It's been designed from the ground up so
that each aspect is a first class citizen, with no compromises. Drools
may be easily used with jBPM, a flexible business process management suite.
Want to learn more?
Join us for one of two complimentary full day, hands-on workshop on
Drools and jBPM, where we will cover:
* The ecosystem that encompasses the Drools open source project and
the JBoss BRMS
* Benefits of rules systems, business workflows, and specific challenges
* The history of rules systems, where they are going, and the current
state of the art
* Various features of the BRMS via a hands on demo
* BPMN 2.0 and the future of Business Process Management
Be prepared to work hands-on with the tools, meet the team behind the
engine, and have your questions answered. This event will give you
unparalleled access to industry-recognized leaders in the rules community.
There are two dates to choose from:
* Tuesday, June 19 2012 in New York City
<http://app.engage.redhat.com/e/er?s=1795&lid=1384&elq=d3d6d783acbc4c7382b...>
* Thursday, June 21, 2012 (Government focus) in Washington DC
<http://app.engage.redhat.com/e/er?s=1795&lid=5482&elq=d3d6d783acbc4c7382b...>
Speakers:
Jim Tyrrell
<http://app.engage.redhat.com/e/er?s=1795&lid=5483&elq=d3d6d783acbc4c7382b...>,
Principle JBoss Solution Architect, Red Hat
Mark Proctor
<http://app.engage.redhat.com/e/er?s=1795&lid=5483&elq=d3d6d783acbc4c7382b...>,
Drools Project Lead and Founder, Red Hat
Edson Tirelli
<http://app.engage.redhat.com/e/er?s=1795&lid=5483&elq=d3d6d783acbc4c7382b...>,
Senior Software Engineer, Red Hat
Kris Verlaenen
<http://app.engage.redhat.com/e/er?s=1795&lid=5483&elq=d3d6d783acbc4c7382b...>,
jBPM Lead Engineer, Red Hat
Prakash Aradhya
<http://app.engage.redhat.com/e/er?s=1795&lid=5483&elq=d3d6d783acbc4c7382b...>,
Senior Product Manager, Red Hat
/*Attendees are responsible for bringing their own laptop to this event.
Please make sure your laptop has the ability to copy files from a USB,
which will provide the software for the hands-on sessions, and have JDK
1.6 already installed./
Register now as space is limited. We look forward to seeing you there!
12 years, 5 months
Initial rule delay
by Paul R.
Hi,
I'm looking for a way to delay a rules initial execution? In the following
example, I would like to prevent the rule from firing when the first "Foo"
event is inserted into the working memory.
rule "DelayTest" when $n : Number() from accumulate( $f : Foo() over
window:time(10s) count($f) ) then // bla end
The timer attribute seems to almost support what I'm looking for, i.e. it
allows for an initial-delay to be specified; but if the repeat interval is
omitted, it uses the initial delay as the repeat interval.
timer ( int: <initial delay> <repeat interval>? )
In my case I would like to block the execution of the rule for an
"initial-delay" period, but after that time has elapsed the rule should
fire when every time a new "Foo" event is inserted into the working memory.
What is the recommended way to do this?
Thanks & Regards,
Paul
12 years, 5 months
guvnor repo with Oracle issue
by jnorris
Hi All,
I'm trying to get the drools-guvnor web-app (5.4.0.Final) to work with
Oracle. I ran the admin tool to create the repository XML file and when the
app is started the tables are created and some data is put into some of
them. However I get an error message "400 sorry, technical error occurred".
The server.log file shows that an error occurred. The first part of the
stack trace is this:
13:32:48,421 INFO [stdout] (http-localhost-127.0.0.1-8080-5) INFO 05-06
13:32:48,406 (DemoAuthenticator.java:authenticate:65) Demo login for user
(admin) succeeded.
13:32:48,640 WARN [org.jboss.seam.security.permission.SecurityRuleLoader]
(http-localhost-127.0.0.1-8080-5) No security rules configured - rule base
permissions will be unavailable.
13:32:48,984 INFO [stdout] (http-localhost-127.0.0.1-8080-3) INFO 05-06
13:32:48,984 (RulesRepositoryConfigurator.java:getInstance:46) Creating an
instance of the RulesRepositoryConfigurator.
13:32:51,484 INFO [stdout] (http-localhost-127.0.0.1-8080-3) ERROR 05-06
13:32:51,484 (ConnectionHelper.java:doTry:462) Failed to execute SQL
(stacktrace on DEBUG log level)
13:32:51,484 INFO [stdout] (http-localhost-127.0.0.1-8080-3)
java.sql.SQLSyntaxErrorException: ORA-00955: name is already used by an
existing object
13:32:51,484 INFO [stdout] (http-localhost-127.0.0.1-8080-3)
So next I tried importing the repository that is included in the
jbpm-installer. This time I get the error "unable to import into the
repository". I think this part of the log is where that occurred:
13:36:28,921 INFO [stdout] (http-localhost-127.0.0.1-8080-2) Clearing rules
repository
13:36:33,859 INFO [stdout] (http-localhost-127.0.0.1-8080-2) ERROR 05-06
13:36:33,859 (BundleWriter.java:writeState:248) Error while storing blob.
id=b27ba97b-1b3d-4069-88af-d9ea5f504e8d/{http://www.jboss.org/drools-repo...
idx=0 size=28659
13:36:33,859 INFO [stdout] (http-localhost-127.0.0.1-8080-2)
java.lang.IllegalStateException: Unable to insert index for string:
binaryContent
13:36:33,859 INFO [stdout] (http-localhost-127.0.0.1-8080-2) at
org.apache.jackrabbit.core.persistence.pool.NGKDbNameIndex.insertString(NGKDbNameIndex.java:66)
and this a bit further down:
13:36:33,875 INFO [stdout] (http-localhost-127.0.0.1-8080-2) Caused by:
java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert
NULL into ("DROOLS_JCR_USR"."PM_WS_DEFAULT_NAMES"."ID")
13:36:33,875 INFO [stdout] (http-localhost-127.0.0.1-8080-2)
13:36:33,875 INFO [stdout] (http-localhost-127.0.0.1-8080-2) at
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:440)
I have set the heap size higher to get rid of the out of memory exception as
mentioned in another post.
The full server log and respository.xml file is attached.
http://drools.46999.n3.nabble.com/file/n4017760/serverlog.zip serverlog.zip
I'd appreciate any ideas on how to resolve this.
Cheers,
Jim
--
View this message in context: http://drools.46999.n3.nabble.com/guvnor-repo-with-Oracle-issue-tp4017760...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 5 months
calling a function before and after every rule
by Hezi Stern
Hi All,
I would like to add timestamps printout during entrance and exit of each
rule.
Is there a way to write function so that it will run before and after every
rule without needing to specifically add it to all rules?
Regards,
Hezi
12 years, 5 months
@PropertyReactive optimizations broken when using 'this' keyword
by mikegai
I'm getting activations that I shouldn't when using the 'this' keyword on
@propertyReactive objects. Here's a simplified example:
package bug
dialect "mvel"
declare Monkey
@propertyReactive
name:String
emotion:String
hot : boolean
end
declare Barrel
@propertyReactive
topMonkey:Monkey
end
rule "Initial Facts" when
then
monkey =new Monkey("Thomas","sad", false)
insert (monkey)
insert (new Barrel(monkey))
insert (new MonkeySuit(monkey, false))
end
//This will loop forever even it shouldn't (it's not modifying any of the
properties in the constraint)
//To fix, reinstate the watch annotation below to correct the watched
property list
rule "When a monkey is on top and his name is Thomas he should be made
happy" when
Barrel($monkey: topMonkey)
Monkey(this==$monkey, name=="Thomas" ) //@watch(!*,name)
then
System.out.println($monkey.getName() + " should be happy!")
modify ($monkey) {
setEmotion("happy")
}
end
It's only when using the "this" keyword. Apparently it is including the
"this" in the inferred property watch list since when I clear the watch list
and rebuild it correctly using the @watch annotation, all works fine.
Has the "this" keyword been deprecated? I can't see any sign that it has so
this appears to be a bug. For now I'm getting it to work by matching my
facts on unique Ids instead of "this" but "this" is handier when an Id
property is unavailable.
--
View this message in context: http://drools.46999.n3.nabble.com/PropertyReactive-optimizations-broken-w...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 5 months
modify keyword cancels activation unexpectedly
by gboro54
I am using drools 5.4 and am running into a weird issue with using modify
keyword. I have have two rules, both are similar in conditions(one rule
catches 2 additional cases to modify the object with a generic message).
Weather I add the checks for each rule into the into the generic rule or
have a condition checking the object for the more specific messages to be
added, the modify keyword seems to ignore this. In the case where the
conditions are added to the generic rule independent the activation is
cancelled. Any thoughts? I do have property reactive on...
--
View this message in context: http://drools.46999.n3.nabble.com/modify-keyword-cancels-activation-unexp...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 5 months
Guvnor 5.4 CR1 role based authentication with JBossAS 7
by bhochhi
Hello,
Has anybody successfully set up the role based authentication on Guvnor 5.4
CR1 hosted on Jboss AS7? I tried all possible way I could think of but in
vain. I modified bean.xml(commented <security:IdentityImpl> in whole and
uncommented <security:jaas.JaasAuthenticator> and
<guvnorSecurity:RoleBasedPermissionResolver> ). I also replaced
code="UsersRoles" for <security-domain name="other" cache-type="default">
under <login-module> in standalone.xml. Could anyone please help me how to
configure role-based authentication for guvnor based on properties files? Is
was so obvious on 5.3 or former. But this new 5.4 looks so different.
Thanks
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-4-CR1-role-based-authenticatio...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 5 months