Need to know how we can a access the email tag info input in sending mail command.
Please see the code below for refrence.
Email Command method code :
#######################################################
sub iw_get_mail_cmd {
# NT lacks the ability to bind a script executor with a
# script on a 'shebang' line (eg: #!/blah/blah/iwperl)
# Instead it uses the assoc/ftype mechanism which employs
# the use of environment variables that are not always
# available (cf: IIS's metabasse, which replicates the
# extention-based association scheme on its own). Therefore,
# we need to spoon-feed iwperl the script like this for now:
my($type, $taskName, $addr) =
@_;
return(sprintf("<command v='%s$iwhome/bin/%s %s'/>",
($^O eq "MSWin32") ? "$iwhome/iw-perl/bin/iwperl " : "",
($type eq "iwsend_mail") ?
"$type.ipl" : "iwsend_servlet_mail.ipl",
($taskName eq "" ) ? $addr: "$taskName $addr"));
}
#######################################################
TAG Info Code:
######################################################
Email =>
[ html => $email_html,
is_required => "true",
label => "User Email",
error_msg => "<strong>Insert the Email ID of the user.</strong>",
],
#####################################################
Work flow code:
########################################################
<workflow name="Sandeep Workflow"
owner="__TAG__('iw_user');"
creator="__TAG__('iw_user');"
description="__TAG__('iw_submit_comment');">
<externaltask lock = "f" name = "Task1" owner = "__TAG__('iw_user');" retry = "f" start = "t">
<areavpath v = "\default\main\Technology\Product_Catalog\WORKAREA\Focus_Area_WA"/>
<successors>
<successorset description = "Go to EndTask">
<succ v = "End"/>
</successorset>
</successors>
__INSERT__( iw_get_mail_cmd('iwsend_mail','test','$emial') );
</externaltask>
<endtask name="End">
</endtask>
</workflow>
########################################################
regards,
Sandeep Madan