Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
複数の Drools Flow プロセスを開始したいのですが、次のコードはブロックします。
ksession.startProcess( "com.sample.ruleflow" );
これどうやってするの?
StatefulKnowledgeSession.startProcess()待機状態に達した場合にのみブロックします。
StatefulKnowledgeSession.startProcess()
プロセスを完全に非同期で実行したい場合はstartProcess()、別のスレッドから呼び出す必要があります。
startProcess()
ただし、非常に単純なプロセス (待機状態の可能性がない) では、現在のスレッドで次のコード行が実行される前にプロセスが開始および終了する可能性が高く、実際には何もない動作をブロックしているように見えます。