| Author | 
		  Message
		 | 
		
		  | Surfer | 
		  
		    
			  
				 Posted: Mon May 16, 2005 3:54 am    Post subject: How to create and start a process using XML api | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Surfer | 
		  
		    
			  
				 Posted: Mon May 16, 2005 4:29 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqmhr | 
		  
		    
			  
				 Posted: Mon May 16, 2005 4:42 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jmac | 
		  
		    
			  
				 Posted: Mon May 16, 2005 5:18 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqmhr | 
		  
		    
			  
				 Posted: Mon May 16, 2005 5:52 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jmac | 
		  
		    
			  
				 Posted: Mon May 16, 2005 5:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Surfer | 
		  
		    
			  
				 Posted: Mon May 16, 2005 5:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqmhr | 
		  
		    
			  
				 Posted: Mon May 16, 2005 6:05 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Surfer | 
		  
		    
			  
				 Posted: Mon May 16, 2005 6:15 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Apprentice
 
 Joined: 14 Jun 2002 Posts: 31
  
  | 
		  
		    
			  
				Yes right. It was that message.
 
Thank you | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vennela | 
		  
		    
			  
				 Posted: Mon May 16, 2005 7:42 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jmac | 
		  
		    
			  
				 Posted: Mon May 16, 2005 7:48 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Surfer | 
		  
		    
			  
				 Posted: Mon May 16, 2005 11:04 am    Post subject: yessssssssssssssss | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | elvis_gn | 
		  
		    
			  
				 Posted: Tue May 17, 2005 3:12 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jmac | 
		  
		    
			  
				 Posted: Tue May 17, 2005 5:20 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | drseverson | 
		  
		    
			  
				 Posted: Tue Jun 14, 2005 11:13 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |