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 » IBM MQ Java / JMS » how to send XML message with userid to start workflow proces

Post new topic  Reply to topic
 how to send XML message with userid to start workflow proces « View previous topic :: View next topic » 
Author Message
mqwf1
PostPosted: Fri Jan 18, 2002 3:17 am    Post subject: Reply with quote

Novice

Joined: 13 Jan 2002
Posts: 22

I have find way to send message to EXE.XML to start WorkFlow process,
but I don't know how to set tag to tell WorkFlow Runtime who
is the starter of the process instance.

where can find this XML DTD ?
Pls tell me what should I do.


Thanks in advance.
AnDong
Back to top
View user's profile Send private message
yoscop
PostPosted: Mon Jan 28, 2002 6:25 am    Post subject: Reply with quote

Novice

Joined: 17 Dec 2001
Posts: 13

hi,
We can set in the openOptions as MQC.MQOO_SET_IDENTITY_CONTEXT and then explicitly set MQMessage.userid="Anyuser valid MQWFUser".

The following code snippet might help.

int openOptions = MQC.MQOO_INPUT_AS_Q_DEF |
MQC.MQOO_OUTPUT | MQC.MQOO_SET_IDENTITY_CONTEXT ;

// Now specify the queue that we wish to open,
// and the open options...
com.ibm.mq.MQQueue putQueue = qMgr.accessQueue(xmlInputQ, // EXEXMLINPUTQ
openOptions);
// null, // default q manager
// null, // no dynamic q name
// null); // no alternate user id

// prepare the data to put
MQMessage msg2put = new MQMessage();
msg2put.userId = wfAdmin;

msg2put.replyToQueueName = _ReceiveFromQName;
msg2put.replyToQueueManagerName = wfQMgr;
msg2put.writeChars(putXmlMsg);

// specify the message options...
MQPutMessageOptions pmo = new MQPutMessageOptions(); // accept the // defaults,

pmo.options = MQC.MQPMO_SET_IDENTITY_CONTEXT; // new code

// same as MQPMO_DEFAULT
// put the message on the queue
putQueue.put(msg2put,
pmo);


Regards,
yoscop
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » how to send XML message with userid to start workflow proces
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.