jinhe zou [https://community.jboss.org/people/zoujinhe] created the discussion

"how to set timer event"

To view the discussion, visit: https://community.jboss.org/message/715942#715942

--------------------------------------------------------------
*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?*
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/715942#715942]

Start a new discussion in jBPM at Community
[https://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

Reply via email to