de-coupling processes

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-11-2012 02:40 AM
I have a process that receives some data and stores it.
I have a second process that will determine if there is enough data and will then perform a task.
Currently I am using a "Call activity" to invoke the second process.
However I would like to de-couple the two processes. That is I would like process A to run to completion irrespective of process B.
Will message driven beans solve this and is it correct that they are not supported in the designer?
Or should I result to using a timer on process B?
I have a second process that will determine if there is enough data and will then perform a task.
Currently I am using a "Call activity" to invoke the second process.
However I would like to de-couple the two processes. That is I would like process A to run to completion irrespective of process B.
Will message driven beans solve this and is it correct that they are not supported in the designer?
Or should I result to using a timer on process B?
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-11-2012 04:24 AM
What you could do is using a async call activity. Then the other process is started, but your first process will continue independently.
Best regards,
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-11-2012 07:43 PM
My requirement is for process A to run to completion.
If I mark the callable process as asynchronous then the current executing thread will complete and process B will start in a different thread.
However process A will be 'blocked' on the callable activity until process B runs to completion. Then process A will complete.
At least this is what I believe I observed in my test.
If I mark the callable process as asynchronous then the current executing thread will complete and process B will start in a different thread.
However process A will be 'blocked' on the callable activity until process B runs to completion. Then process A will complete.
At least this is what I believe I observed in my test.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-16-2012 03:36 AM
Can't you signal process A from process B? or do you want to "block" the calling-thread that starts process A until process B is complete? If this is the case, the only way is a call-activity I'm afraid. If not, signaling from process B will do the trickā¦
