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 » Repo:Java code to start a Process Template in Process Server

Post new topic  Reply to topic
 Repo:Java code to start a Process Template in Process Server « View previous topic :: View next topic » 
Author Message
vennela
PostPosted: Sat Oct 07, 2006 1:08 pm    Post subject: Repo:Java code to start a Process Template in Process Server Reply with quote

Jedi Knight

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

I have posted a small java program on how to start a process template deployed in WebSphere Process Server. I have attached a small document with screen shots on "How to" run the program. I know the document is not very explanatory but still it should be usable.

Please post any comments here. Also let me know if you like it and would like to have any other samples regarding process server.

Thanks
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jmac
PostPosted: Sun Oct 08, 2006 7:10 pm    Post subject: Reply with quote

Jedi Knight

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

Vennela:

My approach is a little different, I have not used call to run any instance, I have always used initiate(). However, I recently ran into cases where your process starts with a Pick and therefore the initiate() doesn't cut it. The basic structure of my process start for WPS looks like this

1) Access BFM object
2) Query for proper template
3) Issue the getStartActivities() for the selected template if only 1 skip to step 5.
4) Determine the proper operation to use
5) Access the input message for the appropriate operation
6) Build the input message
7) Issue initiate() (when only a single operation exists for the template) or the start() (when there are multiple operations for the template

I am not sure what the exact implications are of call vs intiate. Do you know? I don't have time to do the research at the moment.

Regards

John
_________________
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
JLRowe
PostPosted: Tue Oct 10, 2006 8:04 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

I think call() waits for the process to complete and returns the output message, initiate() just kicks off the process and returns immediately.
Back to top
View user's profile Send private message Send e-mail
MaheshPN
PostPosted: Tue Oct 10, 2006 10:53 am    Post subject: Reply with quote

Master

Joined: 21 May 2003
Posts: 245
Location: Charlotte, NC

If I understood correctly,
Call() can be used for Synchronous Process(Microflow) and Initiate() for long running process.

Thanks,
-Mahesh
Back to top
View user's profile Send private message
jmac
PostPosted: Tue Oct 10, 2006 1:41 pm    Post subject: Reply with quote

Jedi Knight

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

JLRowe/Mahesh:

Thanks... kind of what I figured.
_________________
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 » Repo:Java code to start a Process Template in Process Server
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.