Author |
Message
|
amittalekar |
Posted: Thu Dec 19, 2002 7:25 am Post subject: [Solved]create & start process instance using XML |
|
|
 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 |
|
 |
vennela |
Posted: Thu Dec 19, 2002 7:32 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
amittalekar |
Posted: Thu Dec 19, 2002 7:51 am Post subject: |
|
|
 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 |
|
 |
vennela |
Posted: Thu Dec 19, 2002 8:05 am Post subject: |
|
|
 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 |
|
 |
amittalekar |
Posted: Thu Dec 19, 2002 12:12 pm Post subject: |
|
|
 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 |
|
 |
jhea |
Posted: Thu Feb 06, 2003 4:15 am Post subject: why need to specify ProcInstName? |
|
|
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 |
|
 |
jmac |
Posted: Thu Feb 06, 2003 5:28 am Post subject: |
|
|
 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 |
|
 |
|