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 » [Solved]Automatic Start and Exit activity

Post new topic  Reply to topic
 [Solved]Automatic Start and Exit activity « View previous topic :: View next topic » 
Author Message
atse
PostPosted: Wed Feb 16, 2005 12:32 pm    Post subject: [Solved]Automatic Start and Exit activity Reply with quote

Novice

Joined: 01 Feb 2005
Posts: 14

What exactly is the difference between "automatic" and "manual" under the Start and Exit tab in the program activity properties? And how are they suppose to work in a workflow process?

Here's what I tried to do with the automatic setting but was unsuccessful: I have a block activity which contains two activities: one displays a page for the user to set some values, and depending on the values, the activity will transist to the next activity in which its main purpose is to wait for a period of time. I want this second activity to start automatically when the previous activity finishes, so I thought by setting the Start tab of the wait activity to automatic, that would do it...but it doesn't work. To make the activity wait, I set the duration time on the exit tab of the wait activity to 10 seconds (really short for testing purpose) and exit to automatic, and hope that it exits automatically when the time expires. It doesn't exit automatically neither. The exit condition for the block activity is when _State() <> _Expired, so that after the wait activitiy, I want it to go back to the first activity. Right now, I have to check out and check in this wait workitem for it to continue... Is that because I had a program defined in the activity properties? Am I even approaching what I want to achieve the right way?

Thanks in advance for anyone's help!


Last edited by atse on Tue Feb 22, 2005 8:56 am; edited 1 time in total
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Feb 17, 2005 6:46 am    Post subject: Reply with quote

Jedi Knight

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

It will run automatically, but is the PEA running? I think you should do this.
Make the second activity a UPES activity and then you will be able to achieve what you want to.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
hos
PostPosted: Thu Feb 17, 2005 7:54 am    Post subject: Reply with quote

Chevalier

Joined: 03 Feb 2002
Posts: 470

Hi,

the PROGRAM must be defined to run UNATTENDED in addition to the automatic exit of the ACTIVITY.
Back to top
View user's profile Send private message
atse
PostPosted: Thu Feb 17, 2005 1:55 pm    Post subject: Reply with quote

Novice

Joined: 01 Feb 2005
Posts: 14

Thank you for both replies. I'm still a new user of workflow so I do not know how to do either of the suggestions. When you say if my PEA is running, do you mean using the StarterPeaHandler? And what is a UPES activity? And where (and how) do I define my program to run UNATTENDED? in workflow or in my program itself? Can anyone further explain or give me a reference where I can find out how to do it please? Thanks again!
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Feb 17, 2005 2:32 pm    Post subject: Reply with quote

Jedi Knight

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

In your buildtime
Go to the implementation tab -> programs -> select the program
Open the properties of the program.

Go to the data tab
You will see something that says
Program can run unattended
Check the box infron of it.

Now you have to deploy the changes to runtime to make this effective
Back to top
View user's profile Send private message Send e-mail Visit poster's website
atse
PostPosted: Fri Feb 18, 2005 7:02 am    Post subject: Reply with quote

Novice

Joined: 01 Feb 2005
Posts: 14

I set the program to unattended (and exported from buildtime and imported to runtime), but I'm still not achieving what I want. It didn't even seem to have made any differences with the work flow that I've defined; I still have to check out that wait activity and check it back in before it moves to the next activity. Any other suggestions I could try? What about that PEA thing that vennela suggested earlier in the posts...how do I set that to running? Thanks again for the replies!
Back to top
View user's profile Send private message
jmac
PostPosted: Fri Feb 18, 2005 7:13 am    Post subject: Reply with quote

Jedi Knight

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

If you have an Automatic start activity that is NOT a upes the following requirements are going to have to be met for auto start

1. An eligible user must be logged on.

2. That user must have a PEA running. Logon the user using the IBM Supplied FAT client and that will automatically start the PEA.

3. The session type of the logged on user must be either Present or Present_here. This is not an issue with the IBM supplied Fat client as it always does this type of logon.
_________________
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
atse
PostPosted: Tue Feb 22, 2005 6:50 am    Post subject: Reply with quote

Novice

Joined: 01 Feb 2005
Posts: 14

Thanks for your reply...I logon using the Web Client...would that be the same as the IBM Runtime client? And do I have to set anything on the WebClient properties file? The example given in Web Client shows how to set up a StarterPeaHandler in the properties file...is that the same for using the PEA? Also, do I need to specify anything special on my program running? I just found out from a documentation that I can't use a JSP as the automated program for the activity, so that could have been my problem from the start. But now I don't know what to use for the activity program as all I want is for it to wait for a period of time. Since workflow is suppose to handle that, what should my program do?
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Feb 22, 2005 6:54 am    Post subject: Reply with quote

Jedi Knight

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

Quote:
...I logon using the Web Client...would that be the same as the IBM Runtime client?

NO
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jmac
PostPosted: Tue Feb 22, 2005 6:57 am    Post subject: Reply with quote

Jedi Knight

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


Vennala.... too quick for me again.

atse wrote:
I logon using the Web Client...would that be the same as the IBM Runtime client?

NO, if you want to run automatic activities in a WebClient environement use a UPES.

Quote:
The example given in Web Client shows how to set up a StarterPeaHandler in the properties file...is that the same for using the PEA?

I have never used that, nor have I ever run into anyone who uses this in a production environment. Again, use a UPES.

Quote:
I just found out from a documentation that I can't use a JSP as the automated program for the activity, so that could have been my problem from the start.

Yup

Quote:
But now I don't know what to use for the activity program as all I want is for it to wait for a period of time. Since workflow is suppose to handle that, what should my program do?

Sounds like you need a Synchronous UPES that never responds with an Expiration.
_________________
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
atse
PostPosted: Tue Feb 22, 2005 8:56 am    Post subject: Reply with quote

Novice

Joined: 01 Feb 2005
Posts: 14

thank you both for your quick responses! I don't know anything about UPES, so I just downloaded the framework and now I need to read up on how I will use it to do what I want. I'll set this topic to solved since if I will have any more problems, it would be of UPES...Thank you both again for your help!
Back to top
View user's profile Send private message
kotha
PostPosted: Tue Apr 26, 2005 7:17 am    Post subject: Reply with quote

Partisan

Joined: 12 Mar 2005
Posts: 333

Quote:
I just found out from a documentation that I can't use a JSP as the automated program for the activity, so that could have been my problem from the start.
Yup



in my process, i need to send an E-mail to the person after the process completed saying that your request is done!!.

Here is my plan:

Before sink in the diagram, i am inserting a program activity which will automatically start and send an Email to the person taken from the container. I am planning to develop a JSP program so that it will send the mail whenver activity starts automatically.

But from above quoted message, I cannt implement it.

any suggestions to implement a activity which sends a mail automatically for the person from container???
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Apr 26, 2005 8:19 am    Post subject: Reply with quote

Jedi Knight

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

Quote:
Before sink in the diagram, i am inserting a program activity which will automatically start and send an Email to the person taken from the container.

Right

Quote:
I am planning to develop a JSP program so that it will send the mail whenver activity starts automatically.

Use a UPES for this
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kotha
PostPosted: Fri Apr 29, 2005 7:54 am    Post subject: Reply with quote

Partisan

Joined: 12 Mar 2005
Posts: 333

Vennela,

to send mail using UPES, I need to write java program(s) to listen to Queue and it looks like a complex one as I went through the Example Webcredit, provided by IBM.

Cann't I send a mail from a program of the activity? I already developed a JSP program to read and display the container values. How about developing some JSP code in it to send mail? Is it right way?

What do you suggest?
Back to top
View user's profile Send private message
jmac
PostPosted: Fri Apr 29, 2005 8:05 am    Post subject: Reply with quote

Jedi Knight

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

Kotha:

How you do this is simply a matter of style.... I think today most would have a UPES activity to do this, but there is nothing to stop you from having some code that runs when you do a checkin of the activity that would send the required mail. What I am suggesting is you could write a custom checkin command (i.e. commandHandler) that would send the email.
_________________
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 » [Solved]Automatic Start and Exit activity
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.