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 » ActivityImplInvokeResponse from XML message is not respondin

Post new topic  Reply to topic
 ActivityImplInvokeResponse from XML message is not respondin « View previous topic :: View next topic » 
Author Message
JohnT
PostPosted: Tue Mar 04, 2003 3:23 pm    Post subject: ActivityImplInvokeResponse from XML message is not respondin Reply with quote

Newbie

Joined: 04 Mar 2003
Posts: 7

I am sending the following XML message from UPES to EXEXMLINPUTQ of MQ Workflow as a response to an activity

"<?xml version=\"1.0\" standalone=\"yes\"?>" +
"\n <WfMessage>" +
"\n <WfMessageHeader>" +
"\n <ResponseRequired>No</ResponseRequired>" +
"\n <ReplyToQ>Reply2q</ReplyToQ>" +
"\n <ReplyToQMgr>FMCQM</ReplyToQMgr>" +
"\n </WfMessageHeader>" +
"\n <ActivityImplInvokeResponse>" +
"\n <ActImplCorrelID>RUEAAAABABYAAAAAAAAAAAAAAAAAAQAAAAEACsAAAAAAAAAAAAAAAAABQQAAAAEAFgABAAAAAAAAAABF</ActImplCorrelID>" +
"\n <ProgramRC>0</ProgramRC> " +
"\n <Starter>admin</Starter> " +
"\n <ProgramOutputData>" +
"\n <MessageString>" +
"\n <ProgramRC>0</ProgramRC>" +
"\n <MessageString>" +
"\n </ProgramOutputData>" +
"\n </ActivityImplInvokeResponse>" +
"\n </WfMessage>\n\n\n";

MQ workflow not updating the activity of process instance
I need help if I am missing something or doing something wrong
I need advise ASAP
thanks
_________________
JohnT
Back to top
View user's profile Send private message
Ratan
PostPosted: Tue Mar 04, 2003 3:38 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

At a first look, you shoud not be sending in the '\n'.

-Laze
Back to top
View user's profile Send private message Send e-mail
JohnT
PostPosted: Tue Mar 04, 2003 5:16 pm    Post subject: Reply with quote

Newbie

Joined: 04 Mar 2003
Posts: 7

This is complete program

try {


System.out.println("Creating a QueueConnectionFactory");
factory = new MQQueueConnectionFactory();
((MQQueueConnectionFactory)factory).setQueueManager(QMGR);



// Create a QueueConnection from the QueueConnectionFactory
System.out.println("Creating a Connection");
connection = factory.createQueueConnection();

// Start the connection
System.out.println("Starting the Connection");
connection.start();


System.out.println("Creating a Session");
boolean transacted = false;
session = connection.createQueueSession( transacted,
Session.AUTO_ACKNOWLEDGE);

ioQueue = session.createQueue( QUEUE );



((MQQueue)ioQueue).setTargetClient(1);

System.out.println("Creating a QueueSender");
QueueSender queueSender = session.createSender(ioQueue);

System.out.println( "Creating a TextMessage" );
TextMessage outMessage = session.createTextMessage();
System.out.println("Adding Text");


replytoqu = session.createQueue("SYSTEM.DEFAULT.LOCAL.QUEUE");
outMessage.setJMSReplyTo(replytoqu);


// -------------------------------------------------
// Build the XML message that will start the process
// -------------------------------------------------

String procTempName="MDBTest";
String procInstName = "srini";
String contName = "MessageString";

outString=
"<?xml version=\"1.0\" standalone=\"yes\"?>" +
"\n <WfMessage>" +
"\n <WfMessageHeader>" +
"\n <ResponseRequired>No</ResponseRequired>" +

"\n </WfMessageHeader>" +
"\n <ActivityImplInvokeResponse>" +
"\n <ActImplCorrelID>RUEAAAABABfAAAAAAAAAAAAAAAAAAQAAAAEAFsAAAAAAAAAAAAAAAAABQQAAAAEAF8ABAAAAAAAAAABF</ActImplCorrelID>" +
"\n <ProgramRC>0</ProgramRC> " +
"\n <Starter>admin</Starter> " +
"\n <ProgramOutputData>" +
"\n <MessageReplyString>" +
"\n <ProgramRC>5</ProgramRC>" +
"\n <ILRReply1>5</ILRReply1>" +
"\n <MessageReplyString>" +
"\n </ProgramOutputData>" +
"\n </ActivityImplInvokeResponse>" +
"\n </WfMessage>\n\n\n";


outMessage.setText(outString);


// Ask the QueueSender to send the message we have created
System.out.println( "Sending the message to " + ioQueue.getQueueName() );
queueSender.send(outMessage);


System.out.println("Closing QueueSender");
queueSender.close();

// Closing QueueSesssion.
System.out.println("Closing Session");
session.close();
session = null;
_________________
JohnT
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Mar 04, 2003 8:34 pm    Post subject: Reply with quote

Jedi Knight

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

Code:
String procInstName = "srini";

That's because you have truncated the name. Either it should be Srinivas or Srinu.

Anyway:
I am not sure if JMS messages are supported by MQWF. I have never tried putting a JMS message for MQWF to process. I don't have the resources to test that now but I would suggest you to do this.

Somehow strip off the JMS portion of the message (until </jms>) and try PUTting that message as the response message. Or put a message with the same data as in your program using a base MQ program and see if that helps.

Please post the results if this helps you

-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ratan
PostPosted: Tue Mar 04, 2003 10:08 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

I have never tried with JMS either, but there is a setting in UPES properties which says "JMS Compliant XML". Give it a shot if you havent done it yet.

-Laze
Back to top
View user's profile Send private message Send e-mail
JohnT
PostPosted: Wed Mar 05, 2003 11:02 am    Post subject: Reply with quote

Newbie

Joined: 04 Mar 2003
Posts: 7

The following suggestion was solved my problem

"put a message with the same data as in your program using a base MQ program and see if that helps. "

Thank you very much for all help form the forum and special thanks to Vennela
_________________
JohnT
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 » ActivityImplInvokeResponse from XML message is not respondin
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.