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 » General Question - File Data Structures ?

Post new topic  Reply to topic
 General Question - File Data Structures ? « View previous topic :: View next topic » 
Author Message
djharte
PostPosted: Thu Oct 03, 2002 3:03 am    Post subject: General Question - File Data Structures ? Reply with quote

Apprentice

Joined: 02 Oct 2002
Posts: 26

I was wondering if anyone could let me know the best way to approach this problem. I want a user on a remote system to be able to chose files (e.g. zip) using a servlet (webClient ?) and then connect to the workflow and send over the files, where during the first activity the files would be copied to the file system. Then I would perform various operations on the files in subsequent activities.

I am not sure how to pass files as paramaters, e.g. from the webClient to the workflow and then have them saved.

If anyone could point me in the right direction it would be greatly appreciated.

David
Back to top
View user's profile Send private message
amittalekar
PostPosted: Thu Oct 03, 2002 4:37 am    Post subject: Reply with quote

Disciple

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

It is not at all a good idea to store the entire file in the datastructure. It is
always better to have less data in the datastructure.

In your case what u can do is create a process and add the activities u want to do in that. Instead of entire file just store the file name or any other unique indentifier of the file in the datastructure.
Back to top
View user's profile Send private message Yahoo Messenger
jmac
PostPosted: Thu Oct 03, 2002 5:00 am    Post subject: Reply with quote

Jedi Knight

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

If I am understanding you correctly I would suggest the following:

Activity 1 displays the appropriate directory structure and allows the user to select the file(s). The names of these files are stored in the output container and mapped to activity 2.

Activity 2 accesses the files and copies them. From there you go on to whatever it is you want this instance to do.

GOOD LUCK
_________________
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
djharte
PostPosted: Mon Oct 07, 2002 7:07 am    Post subject: Update and views on Workflow Reply with quote

Apprentice

Joined: 02 Oct 2002
Posts: 26

Yep,
This is basically what I did, when the process starts, it calls a JSP, this then allows the user to choose a file. Next the user's data is directed to a servlet (outside the workflow) which uploads the file to the system. and then we go back into the first program/activity in the workflow. A bit messy really.....

I have to say, I am a little disappointed with the product, admitidly I still probably only know a fraction of its functionality but it is very difficult to find information on how to do simple things, from setup to programming.

Also, does anyone know if its possible to pass around user defined types, or where there is an example on how to use binary data datastructures between activities ??

Cheers
Dave
Back to top
View user's profile Send private message
jmac
PostPosted: Mon Oct 07, 2002 7:57 am    Post subject: Reply with quote

Jedi Knight

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

Dave:

I find JSPs to be extremely messy.... I never use them anymore, I use XML/XSL to format my web pages and write one class per activity which contains an "onCheckout() and onCheckin()" that will do any pre/post processing that is necessary.


You need your own viewer, in which you implement the checkoutWorkItemResponse method. Here you simply invoke the proper on Checkout() method based on the Activity name... You also write your own checkin method in a command handler and from there you can ivoke the proper onCheckin method, again based on actitivy name. This works for me, and I don't end up doing all of the redirection to other servlets.
_________________
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 » General Question - File Data Structures ?
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.