[rules-users] Timer does not return!

Ajay.Gautam at rbs.com Ajay.Gautam at rbs.com
Thu Jun 4 16:59:08 EDT 2009


I have a timer in my code that does not return. It just hangs the process (with no CPU activity).

Any idea what may be causing this?

The timer delay is 2000 ms. Based on the docs, here are code snippets:


.......
	ksession = kbase.newStatefulKnowledgeSession();
	new Thread(new Runnable() {
	    public void run() {
	      ksession.fireUntilHalt();
	    }
	  }).start();
........
	final RFQRequest req = createRequest();
	parameters.put("rfqIn", req);
	ksession.setGlobal("reqTag", req.getTag());
	ksession.startProcess("com.rbs.gbm.pm.RFQ-WorkFlow", parameters);
........

If I remove the fireUntilHalt thread, the timer is not triggered at all. The flow just passes through it lilke its not even there.

Any help / info / pointers will be appreciated.

Thanks

Ajay

*****Please note that my email address may have changed. For all
future correspondence, please use this address*****


********************************************************************This
message (including any attachments) is confidential and/or
privileged. It is to be used by the intended recipients only. If
you have received it by mistake please notify the sender by return
e-mail and delete this message from your system. Any unauthorized
use or dissemination of this message in whole or in part is
strictly prohibited. Please note that e-mails are inherently
insecure and susceptible to change. The Royal Bank of Scotland
Group, plc ("RBS") and its US subsidiaries, and affiliates and
subsidiary undertakings, including but not limited to, RBS plc New
York and Connecticut Branches, RBS Securities Inc., ABN AMRO Bank
N.V. New York and Chicago Branches and, ABN AMRO Incorporated,
Citizens Financial Group, Inc. and RBS Citizens, N.A., shall not be
liable for the improper or incomplete transmission of the
information contained in this communication or Attachment nor for
any delay in its receipt or damage to your system. RBS does not
guarantee that the integrity of this communication has been
maintained nor that this communication is free of viruses,
interceptions or interference. RBS and its subsidiaries and
affiliates do not guarantee the accuracy of any email or
attachment, that an email will be received or that RBS or its
affiliates and subsidiaries will respond to an email.

RBS makes no representations that any information contained in this
message (including any attachments) are appropriate for use in all
locations or that transactions, securities, products, instruments
or services discussed herein are available or appropriate for sale
or use in all jurisdictions, or by all investors or counterparties.
Those who utilize this information do so on their own initiative
and are responsible for compliance with applicable local laws or
regulations.********************************************************************




More information about the rules-users mailing list