Why multiple task is not coming in my drools application?

I am trying to make a drools application which is based on spring mvc and hibernate. EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.drools.task"); Environment env = KnowledgeBaseFactory.newEnvironment(); env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf); TaskService taskService = new TaskService(emf, systemEventListener); TaskServiceSession taskSession = taskService.createSession(); taskSession.addUser(new User("Administrator")); taskSession.addUser(new User("Myuser"));// can be set to logged in user at runtime MinaTaskServer server = new MinaTaskServer(taskService); Thread thread = new Thread(server); thread.start(); ksession.getWorkItemManager().registerWorkItemHandler("Log",humanTaskHandler); ksession.getWorkItemManager().registerWorkItemHandler("Human Task", wsHumanTaskHandler); KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "test"); // start a new process instance ksession.startProcess("HumanTaskSample"); What does `createEntityManagerFactory` does? Does it drop all my tables from the db and create a new one every time? Because in my task table , everytime it contains only one rows? Why?? Thanks in advance. [1]: http://i.stack.imgur.com/FRzM5.png

以上就是Why multiple task is not coming in my drools application?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准