Author |
Message
|
lung |
Posted: Mon May 05, 2003 7:36 pm Post subject: Using Workflow with Integrator |
|
|
 Master
Joined: 27 Aug 2002 Posts: 291 Location: Malaysia
|
Hi, I'm new to Workflow, and am very interested on how it can work together with Websphere MQ Integrator (WMQI). Any tips?
I just learnt how to invoke the activities Workflow using programs, but what about using a message queue?
Thanks!  |
|
Back to top |
|
 |
Ratan |
Posted: Tue May 06, 2003 8:09 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
For Automatic activites it is recommended to use a UPES (User defined Program Execution Server). UPES is a process that keeps listening on a predefined Queue for program invokation messages. When you specify the activity execution to be carried on by a UPES, Workflow send a <ActivityImplInvoke> message to this queue. Upes will be resposible for parsing this XML, invoking the appropriate program and returning the result XML.
This (UPES) can also be achieved by MQSI as far as I understand. I dont have experience with MQSI though.
-Ratan. |
|
Back to top |
|
 |
lung |
Posted: Tue May 06, 2003 7:31 pm Post subject: |
|
|
 Master
Joined: 27 Aug 2002 Posts: 291 Location: Malaysia
|
Sounds complicated. I have no experience at all with UPES. Are you defining a queue as an UPES here? (UPES = queue) So what is the format of this XML file that I should send to the UPES queue?
Any manual or redbook on this that I can download?  |
|
Back to top |
|
 |
jk |
Posted: Tue May 06, 2003 10:52 pm Post subject: |
|
|
Apprentice
Joined: 09 Jan 2002 Posts: 36
|
u dont have to specify any format tp put in the queue.
create a queue say UPES in the QMgr FMCQM.
create in MQWF Buildtime, a new UPES with any name and map it to the UPES queue created in FMCQM.
In the MQInput node of a message flow in MQSI, specify the UPES created in FMCQM as the QName.
so the process will put an <ActivityImplInvoke> message into the queue, which will be picked up by the MQSI message flow. |
|
Back to top |
|
 |
RichA |
Posted: Wed May 07, 2003 12:22 am Post subject: |
|
|
 Centurion
Joined: 14 Mar 2002 Posts: 102
|
have a look in the Workflow Programming guide, there is a section titled The XML Message interface, it's very useful, it also gives an example MQ Workflow XML Message Format, and an example XML message to create and start a process instance. |
|
Back to top |
|
 |
lung |
Posted: Wed May 07, 2003 11:30 pm Post subject: |
|
|
 Master
Joined: 27 Aug 2002 Posts: 291 Location: Malaysia
|
jk wrote: |
u dont have to specify any format tp put in the queue. |
So I don't need to have a specific format in the XML message that I will send to the workflow Q? But...
RichA wrote: |
have a look in the Workflow Programming guide, there is a section titled The XML Message interface, it's very useful, it also gives an example MQ Workflow XML Message Format, and an example XML message to create and start a process instance. |
I've checked and in chapter 35 there is a sample XML message there that looks to have a really complicated format of some kind...
So which is which? Can I just send an empty message (only MQMD) or do I need to have some XML in it? Or do I need a specific format like the one in chapter 35?  |
|
Back to top |
|
 |
vennela |
Posted: Thu May 08, 2003 6:08 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Lung:
There are two things here with XML and Workflow.
1. UPES = Queue. You are right here. You will NEVER put anything to this queue. MQWF Server puts an XML message to this queue. This means an activity is implemented by UPES (instead of a PEA or PES) and MQWF by putting an XML message to the UPES(queue) assumes somebody will take care of the message.
2. You put an XML message to EXEXMLINPUTQ. These are the following reasons why you may put a message to EXEXMLINPUTQ
(a) ProcessTemplateCreateInstance
ProcessTemplateCreateAndStartInstance
and a few others like that.
(b) Send a response for the MQMessage put on UPES (as mentioned in 1).
What you want to do with the XML Message that is put to the UPES and how you send the response to it, or how you put an XML message to Workflow is upto you. You can write stand alone programs, you can use WMQI flows to do that or whatever.
I think you should read from chapter 31 to 35 for a clear understanding of XML concept.
Hope I didn't confuse things in the effort of making them clear.
-------
Venny |
|
Back to top |
|
 |
|