@Ed,

   If WorkitemHandler has a reference to "getGlobal(String name)", that
means that there is a chance for workitem to change those globals, and just
by looking at the process definition ( since these variables are not mapped
visually [ XML ] ), there is no way to track that change. 

   I see what you mean by the database connection parameters.

   And in your case, depending on what design you adhere to (DDD or Service
-> DAO), I would create a service that would be able ( through specific
DAO(s) ) to access DB, and _inject_ that service into workitem handler [ or
in case of DDD, if that is a behavior of the entity, workitem handler will
have a reference to that entity ].

/Anatoly
-- 
View this message in context: 
http://n3.nabble.com/Access-to-globals-from-WorkItemHandlers-tp732460p732759.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to