Author |
Message
|
Ramgathy |
Posted: Tue Nov 11, 2003 9:44 am Post subject: EAI Bus and workflow |
|
|
Apprentice
Joined: 31 Oct 2003 Posts: 49
|
Hi all,
I am new to workflow.I hav a design.let me explain that first.
I have an extenal system from where i need to pickup data to create workitems out of it.This data needs to go through EAI Bus of MQ Series maintained by some other team.Bus has connectors and adapters and it's own broker..i think it's mqsi.It has client business interface and server business interfaces which i need to code.Bus team provides adapters to configure into my code.Message is an standard XML.Client business interface needs to take data from external system may be tibco or filenet or image plus and pass data through EAI Bus.This data i need to pick up on my server business interface and create a workitem out of it in the workflow engine on the server side.
On workflow we are doing a UPEs implementation.
my question is on XML formats and number of queues to setup and where to setup..
i am getting a custom defined headers from bus .Bus has it's own queues which will be created as i request.And MQWF has an UPES Queue.
Once the message comes in standard xml from bus how do i create a wf-xml out of it since i thought UPES supports only wf-xml.
Is there a way to make server side Q to be UPEs Queue external to wf engine.If so i don't know if standard xml can create and start an instance.
Can some please help out in this regard.
simply put i need to create and start process instance across bus onto workflow..
I will be greatfull if someone can throw light on this and give an immd reply as i am new to WF and i need to move ahead.
Thanks in advance
regards. |
|
Back to top |
|
 |
Ratan |
Posted: Tue Nov 11, 2003 10:16 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
Your understanding of UPES is completely wrong. I would suggest you to go through 'Workflow Programming Guide', especially the XML interface part of it.
UPES can not create and Start Process Instances.
All you need is a way to start Process Instances. You can do it either by Inovking an API call or using the XML interface.
write an application to monitor the queue where your EAI bus (whatever it is) puts the message. read the message and generate a corresponding WF ProcessInstanceCreateAndStart XML out of it and put it into EXEXMLINPUTQ on WF server. _________________ -Ratan |
|
Back to top |
|
 |
Ramgathy |
Posted: Tue Nov 11, 2003 11:10 am Post subject: |
|
|
Apprentice
Joined: 31 Oct 2003 Posts: 49
|
Ratan,
Thanks for the reply
Please help me if i am wrong
You Mean to say write a JMS Listener and once on message do we need to create a message in XML format as in many sample codes and put it on UPES Queue of WFQManager..
Does this auomatically create a workitem or rathar instance of the defined process template.
So UPES should be only in WF Server and WF XML is created only part of create and start instance and put it in PMO of UPES.
Thanks in advance. |
|
Back to top |
|
 |
Prahasith |
Posted: Tue Nov 11, 2003 11:32 am Post subject: |
|
|
 Disciple
Joined: 16 May 2003 Posts: 184 Location: Kansas City
|
Read the MQ Workflow XML Interface chapter in
WD01: Business Process Modeling with WebSphere MQ Workflow
it will clear all your doubts |
|
Back to top |
|
 |
Ratan |
Posted: Tue Nov 11, 2003 12:42 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
UPES queue is not in the picture here.
Write a JMS Program or a base Java Program to read the EAI bus queue ang generate a WF XML (ProcessTemplateCreateAndStartInstance) out of it. This will create and start an Instance of your template. UPES only comes into picture after you start the process instance, if you want to follow UPES style and have any automatic activities to be executed. _________________ -Ratan |
|
Back to top |
|
 |
vennela |
Posted: Tue Nov 11, 2003 1:28 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Nobody ever told him what queue to put to
You have to PUT (SEND) your XML messages to EXEXMLINPUTQ which will be defined for you on the workflow server QueueManager when a configuration is created.
There is a sample program in the repository called ProcessTemplateCreateAndStartIstance. JMS sample to do the same can be found at http://www.developer.ibm.com/tech/sampmq.html
Hope this helps. |
|
Back to top |
|
 |
Ramgathy |
Posted: Tue Nov 11, 2003 3:47 pm Post subject: |
|
|
Apprentice
Joined: 31 Oct 2003 Posts: 49
|
Is the EXEXMLINPUTQ different from UPES Queue.where do i need to put the wf-xml message to start a wf process instance.what does UPES do with wf-xml message |
|
Back to top |
|
 |
Prahasith |
Posted: Tue Nov 11, 2003 4:15 pm Post subject: |
|
|
 Disciple
Joined: 16 May 2003 Posts: 184 Location: Kansas City
|
|
Back to top |
|
 |
Ramgathy |
Posted: Tue Nov 11, 2003 4:50 pm Post subject: |
|
|
Apprentice
Joined: 31 Oct 2003 Posts: 49
|
Thanks All .I will get back if there are any Q's in my learning process.
regards |
|
Back to top |
|
 |
Prahasith |
Posted: Tue Nov 11, 2003 4:56 pm Post subject: |
|
|
 Disciple
Joined: 16 May 2003 Posts: 184 Location: Kansas City
|
You are always welcome with questions
Thats how I learned a lot from this site initially |
|
Back to top |
|
 |
Ramgathy |
Posted: Wed Nov 12, 2003 1:15 pm Post subject: |
|
|
Apprentice
Joined: 31 Oct 2003 Posts: 49
|
Hi Guys,
Can i put an XML inside an XML(Please enlighten the ignorant)
My req according to the design discussed above)I get an XML based on the structure going through the BUS(I think it doesn't support wf-xml tags).But as i will be sending this XML from the client side, instead of parsing on the serverside and getting data and forming wf-xml out of it can i put wf-xml including tags,in my body of the message on the client side.,get the chunk of this body and create an instance on the server side without forming again.
what are the pros and cons of this based on the performance of the system.
Regards |
|
Back to top |
|
 |
dsim |
Posted: Mon Nov 17, 2003 8:17 pm Post subject: |
|
|
Acolyte
Joined: 11 Aug 2003 Posts: 67 Location: Toronto
|
Quote: |
Can i put an XML inside an XML |
... yes, using CDATA |
|
Back to top |
|
 |
Ramgathy |
Posted: Tue Nov 18, 2003 10:34 am Post subject: |
|
|
Apprentice
Joined: 31 Oct 2003 Posts: 49
|
Can you pl explain in detail..
I am doing a Mq implementation..
help me if i am wrong..
<Mq message>
<Header>
<MQMD Filelds>
<Enterprise Header Values>
</header>
<Body or PayLoad>
<CDATA>
<Wfmessage>
<Wfheader>
</wfheader>
<ProcessTemplatecreateandstartinstance>
<ProcInputdata>
</wfmessaage>
</CDATA>
</Body>
</Message>
help me if my understanding is wrong..
If i put this kind of message on EXEXMLINPUTQ will it automatically parse the CDATA fileds.
and create a process template. |
|
Back to top |
|
 |
Ratan |
Posted: Tue Nov 18, 2003 10:51 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
Quote: |
If i put this kind of message on EXEXMLINPUTQ will it automatically parse the CDATA fileds.
and create a process template. |
IT WILL NOT and the only way to create a process Template is importing the corresponding FDL into runtime.
you can create a Process Instance by using the API calls or using the XML interface. Using XML interface, if you put in xml conforming to MQWF Create And Start Instance DTD it will create a Process Instance or else it will return an error. _________________ -Ratan |
|
Back to top |
|
 |
Ramgathy |
Posted: Tue Nov 18, 2003 11:17 am Post subject: |
|
|
Apprentice
Joined: 31 Oct 2003 Posts: 49
|
Ratan,
you remember you suggested that i listen to a queue and get data and do a WF-XML format and do create and start.
right now i didn't do the listening but used UI to enter data and create wfxml and start instance.
I am exploring the oppurtunities to send a wf-xml across the xml supported Bus architecture.do the wf-xml formatting on the client side .and when it comes to serverside take that chunk of wf-xml and put in EXEXMLQ and start instance.
thats why this XML in an XML. I am not clear what this CDATA does.
Thanks in advance |
|
Back to top |
|
 |
|