0

I'm using jBPM 5.4 with MsSql.

It is working fine.

I have simple workflow from START ----> TASK A ----------> TASK B --------> STOP

I'm trying to access such an workflow from Servlets

When i execute such an workflow, i'm able to forward till the Starting of Task B.

onExit of TASK B isnt called.

Hence the workflow isn't reaching the Completed status but the task table is updated to completed status also no exception is logged.

This is my server log,

[stdout] (http-localhost-127.0.0.1-8080-1) ****** Creating EMF

[stdout] (http-localhost-127.0.0.1-8080-1) ****** Creating env

[stdout] (http-localhost-127.0.0.1-8080-1) ****** Reading Properties

[stdout] (http-localhost-127.0.0.1-8080-1) ****** config section

[stdout] (http-localhost-127.0.0.1-8080-1) OnEntrying the First Task ***

[stdout] (http-localhost-127.0.0.1-8080-1) Started Process Output 14

[stdout] (http-localhost-127.0.0.1-8080-1) Completed Process Output 14

[stdout] (Thread-73) OnExiting the First Task ***

[stdout] (Thread-73) OnEntrying the Second Task ***

[stdout] (http-localhost-127.0.0.1-8080-1) Started Process Output 15

[stdout] (http-localhost-127.0.0.1-8080-1) Completed Process Output 15
4

2 に答える 2

0

最初のタスクを正常に実行しているため、最初のタスクの完了後に変更が保持されていないようです。どのハンドラ クラスを使用していますか? SQL の出力を (persistence.xml で) オンにして、最初のタスクの完了後にプロセス インスタンス情報クラスに必要な変更が表示されるかどうかを確認していただけますか?

クリス

于 2013-02-25T23:03:59.277 に答える
0

タスクを完了するときに、ksession をタスク サービスに接続して、そのセッションがプロセスの実行を継続できるようにすることが重要です。そう:

  • タスク サービスをどのように使用していますか? ローカルタスクサービスか、HornetQ を使用したリモートか?

  • プロセス インスタンスを開始したセッションはまだアクティブですか? そうでない場合、タスクを完了する前に新しいセッションをインスタンス化しますか?

  • 作成後、ヒューマン タスク ハンドラで connect() を呼び出しましたか? これにより、実際にハンドラーがタスク サービスに接続され、必要なリスナーが登録されます。

于 2013-02-24T10:59:47.373 に答える