[jboss-user] [jBPM] - Re: Starting a process at a specified time

saig0 do-not-reply at jboss.com
Tue Jul 24 10:08:01 EDT 2012


saig0 [https://community.jboss.org/people/saig0] created the discussion

"Re: Starting a process at a specified time"

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

--------------------------------------------------------------
There is a test case in class:  https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/test/java/org/jbpm/examples/junit/BPMN2JUnitTests.java https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/test/java/org/jbpm/examples/junit/BPMN2JUnitTests.java of jpm-example project. The problem is that it doesn't work for me. For you?

But you can define a rule with drools expert to start a process: 

rule "start process rule"
          timer (cron: 0 0 6 * * ?)
    when

    then
              System.out.println("start process");
        insert(kcontext.getKnowledgeRuntime().startProcess("receiveMessage"));
end


see:  https://community.jboss.org/thread/201452 https://community.jboss.org/thread/201452
--------------------------------------------------------------

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

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/20120724/37ff4e44/attachment.html 


More information about the jboss-user mailing list