Hi Tom,
I have just got my first Drools / jBPM integration working in the area of Authorization -
or PooledActors more to speak.
Basically, at each task node I have a set of rules that determine the pooled actors for
all active swimlane instances at that moment in time.
For this I have the rulebase stored in a database.
The sequence is straight forward:
* create a new working memory from it and populate it with business data and an
abstraction of the swimlane, actor and pooled actor objects.
* fire the rules.
* sync the simlaneinstance and taskinstances with what is in the working memory.
I tried keeping a working memory live for the duration of the process instance, but
storing serialized data is a) very slow and b) runs into problems (stack overflows) with
large objects. I found it was quicker to assert all business objects and jBPM abstractions
each and every time (in memory, no db involved other than retrieving the compiled
rulebase).
Works pretty cool.
I can now very easily have rather complex assignments of tasks. for instance: a reviewer
is any person that is not the originator, works more than 0.7 FTE and works in the same
department as the originator. Cool huh?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962567#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...