ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » How to create and start a process using XML api

Post new topic  Reply to topic
 How to create and start a process using XML api « View previous topic :: View next topic » 
Author Message
Surfer
PostPosted: Mon May 16, 2005 3:54 am    Post subject: How to create and start a process using XML api Reply with quote

Apprentice

Joined: 14 Jun 2002
Posts: 31

I followed line by line the XML api to create and start a procee but now way.
It seems that I did some mistake.
Do I have to include all members of the container ?
Thank you for your help.
Back to top
View user's profile Send private message Send e-mail
Surfer
PostPosted: Mon May 16, 2005 4:29 am    Post subject: Reply with quote

Apprentice

Joined: 14 Jun 2002
Posts: 31

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<WfMessage>
<WfMessageHeader>
<ResponseRequired>False</ResponseRequired>
<UserContext>I want this data back</UserContext>
</WfMessageHeader>
<ProcessTemplateCreateAndStartInstance>
<ProcTemplName>MyTremplate</ProcTemplName>
<ProcInstName>MyFirstProcCreatedByXML</ProcInstName>
<KeepName>false</KeepName>
<ProcInstInputData>
<My_DS>
<Number>23334</Number>
<Type>system</Type>
<StartDate>12.01.2006</StartDate>
<EndDate>12.05.2006</EndDate>
<Comment>I hope it works</Comment>
</My_DS>
</ProcInstInputData>
</ProcessTemplateCreateAndStartInstance>
</WfMessage>

I wrote a java program that write this message to the queue:EXEXMLINPUTQ
Is that correct ?
Back to top
View user's profile Send private message Send e-mail
mqmhr
PostPosted: Mon May 16, 2005 4:42 am    Post subject: Reply with quote

Centurion

Joined: 28 Dec 2004
Posts: 105

You need to send all input container fields in the XML. Send empty tags for these fields.
Back to top
View user's profile Send private message
jmac
PostPosted: Mon May 16, 2005 5:18 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

mqmhr wrote:
You need to send all input container fields in the XML. Send empty tags for these fields.


I do not believe this is true, you can send only the fields that you wish to set
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
mqmhr
PostPosted: Mon May 16, 2005 5:52 am    Post subject: Reply with quote

Centurion

Joined: 28 Dec 2004
Posts: 105

Sorry for the misleading response.

My next attempt : ResponseRequired can only take the values "Yes" or "No". True and False are not valid values for this field.
Back to top
View user's profile Send private message
jmac
PostPosted: Mon May 16, 2005 5:57 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

mqmhr wrote:
My next attempt : ResponseRequired can only take the values "Yes" or "No". True and False are not valid values for this field.


I always use YES / NO.... but this should be pretty easy to test. I wouldn't be surprised of TRUE / FALSE worked too, but like I said run a test then we know for sure
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Surfer
PostPosted: Mon May 16, 2005 5:57 am    Post subject: Reply with quote

Apprentice

Joined: 14 Jun 2002
Posts: 31

yes right. I changed that (message requiered Yes or No) and it works but it still send me an error message:
<MessageText>FMC00010E Unknown user ID
</MessageText>
How do I fix that ?
Thank you all of you
Back to top
View user's profile Send private message Send e-mail
mqmhr
PostPosted: Mon May 16, 2005 6:05 am    Post subject: Reply with quote

Centurion

Joined: 28 Dec 2004
Posts: 105

Quote:
run a test then we know for sure


...is what I did to get this message in the ReplyToQ.

ResponseRequired was set to False

Quote:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- This document is generated by a MQSeries Workflow Version 3.4.0 server -->

<WfMessage>
<WfMessageHeader>
<ResponseRequired>No</ResponseRequired>
<UserContext>I want this data back</UserContext>
</WfMessageHeader>
<ProcessTemplateCreateAndStartInstanceResponse>
<Exception>
<Rc>1111</Rc>
<Parameters>
<Parameter>ResponseRequired</Parameter>
</Parameters>
<MessageText>FMC01111E The value of element 'ResponseRequired' is not correct.
</MessageText>
<Origin>/projects/fmc/drvp/lbld/v340/src/fmcmproc.cxx(1599)</Origin>
</Exception>
</ProcessTemplateCreateAndStartInstanceResponse>
</WfMessage>
Back to top
View user's profile Send private message
Surfer
PostPosted: Mon May 16, 2005 6:15 am    Post subject: Reply with quote

Apprentice

Joined: 14 Jun 2002
Posts: 31

Yes right. It was that message.
Thank you
Back to top
View user's profile Send private message Send e-mail
vennela
PostPosted: Mon May 16, 2005 7:42 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

There is a sample out there demonstrating what you are trying to do. Go to the repository on top of this page and goto java. There you will see a program called
ProcessTemplateCreateAndStartInstance.java
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jmac
PostPosted: Mon May 16, 2005 7:48 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

Surfer wrote:
yes right. I changed that (message requiered Yes or No) and it works but it still send me an error message:
<MessageText>FMC00010E Unknown user ID
</MessageText>
How do I fix that ?
Thank you all of you


Look at the sample, especially the setUserIdentity part, I believe that is where your problem lies.
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Surfer
PostPosted: Mon May 16, 2005 11:04 am    Post subject: yessssssssssssssss Reply with quote

Apprentice

Joined: 14 Jun 2002
Posts: 31

I went to that class that is fixing the userId and it works.
Thank you gays it really helps.
Nice day or night to you.
Back to top
View user's profile Send private message Send e-mail
elvis_gn
PostPosted: Tue May 17, 2005 3:12 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi guys,
I had implemented this XML interface a few days back and one issue i had was no response message in the ReplyToQ even if the message is created successfully or it fails.
And also i think that as "mqmhr" stated that the ResponseRequired can only take "Yes" or "No".I think it can take "IfError" also(found so in the pdf).
Back to top
View user's profile Send private message Send e-mail
jmac
PostPosted: Tue May 17, 2005 5:20 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

elvis_gn wrote:
Hi guys,
I had implemented this XML interface a few days back and one issue i had was no response message in the ReplyToQ even if the message is created successfully or it fails.
And also i think that as "mqmhr" stated that the ResponseRequired can only take "Yes" or "No".I think it can take "IfError" also(found so in the pdf).


I have never seen Process Start NOT return a response with YES. What you are saying is definitely true for the ActivityImpInvokeResponse message, but not for Process starts.
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
drseverson
PostPosted: Tue Jun 14, 2005 11:13 am    Post subject: Reply with quote

Newbie

Joined: 07 Jun 2005
Posts: 2

The MQ message descriptor includes a userid for the user that generates the message. This user must be defined in workflow for the XML message to be accepted.

Rick
_________________
Rick
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » How to create and start a process using XML api
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.