Author |
Message
|
Jeroen de Wolf |
Posted: Tue Oct 10, 2006 7:44 am Post subject: [SOLVED] When using empty activity, no interruption occurs |
|
|
Newbie
Joined: 10 Oct 2006 Posts: 4
|
Maybe someone can help me out here:
I send a WfMessage from Message Broker to the EXEXMLINPUTQ of Workflow in order to create and start a process instance. I use the empty activity with a dummy UPES. After broker has put the message on the queue, a worklist item appears in the web client but simultaneously a response message is put on the reply queue (specified when sending the message). I want this process to be interruptive, so that the response message is put on the queue, after the item hes been checked out from the worklist.
I suspect that the empty activity model is not suited for this purpose and I need something else to achieve this. Can anyone help me out here?
IBM WebSphere MQ Workflow 3.6
IBM WebSphere Message Broker v6.0
IBM WebSphere MQ v6.0
Kind regards,
Jeroen de Wolf
Last edited by Jeroen de Wolf on Wed Oct 11, 2006 1:45 am; edited 1 time in total |
|
Back to top |
|
 |
jmac |
Posted: Tue Oct 10, 2006 1:38 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
You need to tell us a little more about what you are trying to accomplish. I am not following why you would be using an empty activity?
If this is a small process, post the FDL, and give us some idea of what your process is supposed to do. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
Jeroen de Wolf |
Posted: Tue Oct 10, 2006 2:25 pm Post subject: |
|
|
Newbie
Joined: 10 Oct 2006 Posts: 4
|
Ok..the case i am working on is a tax request case. First, a message arrives in message broker where it is processed and transformed. Part of the case is a human intervention action to approve the tax request. For this purpose, the broker transforms the message to a WfMessage and puts in on the Wf exexmlinput queue. The message creates and starts a new process instance with an empty activity, which must be completed by checking it out. Only after checkout the activity, the message should be passed back to the broker for further processing. I use the response message generated by Wf to pass the data back to broker. The problem is that the response is generated directly after sending the message from broker into Wf. I think there must be another way to pass the data back to broker instead of using the response message.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<WfMessage>
<WfMessageHeader>
<ResponseRequired>Yes</ResponseRequired>
<UserContext>This data is sent back in the response</UserContext>
</WfMessageHeader>
<ProcessTemplateCreateAndStartInstance>
<ProcTemplName>TestProcess</ProcTemplName>
<ProcInstName>TP</ProcInstName>
<KeepName>false</KeepName>
<ProcInstInputData></ProcInstInputData>
</ProcessTemplateCreateAndStartInstance>
</WfMessage>
|
|
Back to top |
|
 |
Ratan |
Posted: Tue Oct 10, 2006 2:53 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
If you use ProcessTemplateCreateAndStartInstance, you will get a response from workflow once the process starts.
I think you want the response after the process is completed in WF and for that I believe you need to use ProcessTemplateExecute message instead of ProcessTemplateCreateAndStartInstance.
Also If you are using a dummy activity in Workflow, it wont generate any Workitem. _________________ -Ratan |
|
Back to top |
|
 |
hos |
Posted: Tue Oct 10, 2006 11:26 pm Post subject: |
|
|
Chevalier
Joined: 03 Feb 2002 Posts: 470
|
Hi,
Ratan is right when he says that CreateAndStartProcess message creates immediate feedback from the MQWF server and therefore is not suited for your purposes.
However if I understand your requirement correct, Execute is not an option, either. MQWF won't send a message to a queue when a workitem is checked out. You can either trigger an automatic (UPES) activity that creates a message on your queue once the workitem has been checked in or you model your audit trail to log checkout events to an MQ queue and listen to this event. |
|
Back to top |
|
 |
Jeroen de Wolf |
Posted: Tue Oct 10, 2006 11:28 pm Post subject: |
|
|
Newbie
Joined: 10 Oct 2006 Posts: 4
|
I tried ProcessTemplateExecute and it worked. The response is now generated after the workitem has been checked in.
Thank you for helping me out
Kind regards,
Jeroen |
|
Back to top |
|
 |
Jeroen de Wolf |
Posted: Tue Oct 10, 2006 11:39 pm Post subject: |
|
|
Newbie
Joined: 10 Oct 2006 Posts: 4
|
Hos,
You're right. What I meant was "after the item has been checked in".
Apologies for the confusion.
Kind regards,
Jeroen de Wolf |
|
Back to top |
|
 |
|