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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to