Donald Walters [http://community.jboss.org/people/dondragon2] created the discussion
"Re: MapBasedPersistenceTest issue" To view the discussion, visit: http://community.jboss.org/message/633851#633851 -------------------------------------------------------------- thanks guys. I have removed the persistence and done the following. private static final ConcurrentHashMap<Integer, StatefulKnowledgeSession> ksessions = new ConcurrentHashMap<Integer, StatefulKnowledgeSession>(); ..... StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();//CacheKnowledgeService.newStatefulKnowledgeSession(kbase); ksession.getWorkItemManager().registerWorkItemHandler( "Service Task", new ProcessExecutionHandler(helper)); ksessions.put(ksession.getId(), ksession); ....... StatefulKnowledgeSession ksession = ksessions.get(sessionId); ksession.getWorkItemManager().registerWorkItemHandler( "Service Task", new ProcessExecutionHandler(helper)); that seems to work but will the session still be in the map after total completion? I would have to have a mechanism to remove it, I assume? Also, I am still have the issue where the timer is not triggered. -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/633851#633851] Start a new discussion in jBPM at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
