Hi Everyone,Teamsite 6.1, Solaris.We have requirement that in one of our static workflow we need to change the owner of one of the external task after the workflow is kicked of.That is once we reached a stage where user gets a CGI screen, user can select the approver and in this case a mail should go to that approver. Since we are using a external task for mail we need to pass that user ID to the external task .How do we change the user ID for this command.One thing we were trying to use is SetAttribute("Command", our command here).But this is not working..Any clues here..
Do you need to change the owner of the task - or do you need to pass a value selected in a cgitask script to an externaltask script - or both?If the mailing is occurring directly after the cgitask and you don't care about the owner of the task - you could add code to do the emailing directly from your cgitask or have your cgitask pass parameters to the mail script directly.Alternatively, you could have the cgitask set the selected value on a job variable and have the externaltask retrieve the selected value from the same job variable.If you want to change the owner of the externaltask from within the cgitask script code you should probably look at the documentation (perldoc) for TeamSite::WFworkflow::GetTaskByName and TeamSite::WFtask:etOwner
Seems I am not that clear with requirement, what I want is that our external command which is something like send_mailer.ipl and passing iw_user as parameter for userid as the person who would get the mail, we need to change this userid with one we get from the cgi screen.Hopefully I am able to explain correctly this time...
You're trying to dynamically change a parameter being passed to an externaltask script on its command line - right?I'm suggesting you do not pass the parameter on the command line - but instead set a job variable from your cgitask script - and retrieve the value from the same job variable in your externaltask script.