3 Replies Latest reply on Feb 13, 2012 1:15 PM by zoujinhe

    how to config timer event

      Untitled.png is my process.

       

      Timer Event Properties:

      Timer Delay: 0ms

      Timer Period: 10s

       

      Java Code:

              KnowledgeBase kbase = readKnowledgeBase();

              StatefulKnowledgeSession ksession = createSession(kbase);

       

              FileLister fileLister = new FileLister();

              ksession.getWorkItemManager().registerWorkItemHandler("GetFileNames", fileLister);

       

              Map<String, Object> params = new HashMap<String, Object>();

              params.put("txtFilePath", "d:/");

       

       

              ksession.startProcess("com.pa.mainProcess", params);

       

       


      In my process, it will print something in console, I want my process print it each 10second repeately.

       

      unfutuately, it just print once.

       

      is any problem here?