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 » [Solved]create & start process instance using XML

Post new topic  Reply to topic
 [Solved]create & start process instance using XML « View previous topic :: View next topic » 
Author Message
amittalekar
PostPosted: Thu Dec 19, 2002 7:25 am    Post subject: [Solved]create & start process instance using XML Reply with quote

Disciple

Joined: 03 Apr 2002
Posts: 166
Location: VA, USA

Hi,

I tried to create & start process instance with the help of example given in programming guide. I generated similar xml message as given in example & put that in EXEXMLINPUTQ. It gives me "FMC00010E unknown User Id" error.

Has anybody tried this?
Back to top
View user's profile Send private message Yahoo Messenger
vennela
PostPosted: Thu Dec 19, 2002 7:32 am    Post subject: Reply with quote

Jedi Knight

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

Amit:

This should help you

http://www.mqseries.net/phpBB2/viewtopic.php?t=1051&highlight=fmc00010e

---
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
amittalekar
PostPosted: Thu Dec 19, 2002 7:51 am    Post subject: Reply with quote

Disciple

Joined: 03 Apr 2002
Posts: 166
Location: VA, USA

thx Venny for the reply...

I am simply generating XML and putting in EXEXMLINPUTQ manually...I just want to try this....I am not coding for this .....

from the link u provided, I understand that I need to add some userId in the XML...am I right?....If yes..what is XML tag for User & where it should be added in XML?
Back to top
View user's profile Send private message Yahoo Messenger
vennela
PostPosted: Thu Dec 19, 2002 8:05 am    Post subject: Reply with quote

Jedi Knight

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

Amit:

I figured the link wouldn't be of much help to you because the sample is already adapted.

I am not sure what's happening but I think this is what is happening. If you PUT to this queue manually your Windows NT userID will be picked up. There is no way that you can specify the UserId in XML message. All the authentication is done by MQ and MQWF doesn't do any more checking. All it does is picks the userID who sent the MQ message.

What you can do is add your Workstation userid into workflow and you may get rid of this error.

You may search for fmc00010e in this forum and you will get a few results which will help you understand better.

---
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
amittalekar
PostPosted: Thu Dec 19, 2002 12:12 pm    Post subject: Reply with quote

Disciple

Joined: 03 Apr 2002
Posts: 166
Location: VA, USA

Venny...

Thx...I added Windows userId in runtime & that prob is solved....
Back to top
View user's profile Send private message Yahoo Messenger
jhea
PostPosted: Thu Feb 06, 2003 4:15 am    Post subject: why need to specify ProcInstName? Reply with quote

Novice

Joined: 18 Dec 2002
Posts: 19
Location: UK Hursley

Hi All,

I took a look at the example in the Programming Guide that Amit used to create and start a process instance. I don't understand in that example, why we need to specify the ProcInstName (i.e. Medical_Opinion#448) since we shouldn't be able to know the number (i.e. 448) before we create an instace.

Could any one explain this for me please?

Many thanks,
Jenny

ps. here is the example I pasted from the Programming Guide:
<?xml version="1.0" standalone="yes"?>
<WfMessage>
<WfMessageHeader>
<ResponseRequired>Yes</ResponseRequired>
<UserContext>This data is sent back in the response</UserContext>
</WfMessageHeader>
<ProcessTemplateCreateAndStartInstance>
<ProcTemplName>Medical_Opinion</ProcTemplName>
<ProcInstName>Medical_Opinion#448</ProcInstName>
<KeepName>false</KeepName>
<ProcInstInputData>
<Application>
<InsuredID>A</InsuredID>
<Type>4711</Type>
<StartDate>12.01.2000</StartDate>
<Doctor>DoctorX</Doctor>
<Weight>200</Weight>
<Smoker>1<Smoker>
</Application>
</ProcInstInputData>
</ProcessTemplateCreateAndStartInstance>
</WfMessage>
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Feb 06, 2003 5:28 am    Post subject: Reply with quote

Jedi Knight

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

Jenny wrote:
I don't understand in that example, why we need to specify the ProcInstName (i.e. Medical_Opinion#448) since we shouldn't be able to know the number (i.e. 448) before we create an instace.

You dont really need to specify the ProcInstName tag, it is optional, UNLESS you specify True for the KeepName tag.
_________________
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
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 » [Solved]create & start process instance using XML
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.