[jboss-user] [jBPM] - how to set timer event

jinhe zou do-not-reply at jboss.com
Fri Feb 10 15:02:02 EST 2012


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120210/3d137165/attachment.html 


More information about the jboss-user mailing list