[英]how to send a mail when workflow not triggered at given time in informatica
I have a workflow which gets triggered everyday in the Morning at 07:15 AM.I want to get an email to my Id from Informatica when the workflow doesn't get trigerred within 3 min from the start time.我有一个工作流,每天早上 07:15 触发。我想从 Informatica 获取 email 到我的 Id,当工作流在开始时间后 3 分钟内没有被触发时。
You have two options -你有两个选择——
start -->cmd task -->|--link status<>0--> email task
command task will be like -命令任务将像 -
#!/bin/sh
if [ -r /somedir/ind.txt ]; then
exit 0
rm /somedir/ind.txt
else
exit 1
fi
Now, in real time, at 7:15 the wkflow will start and crete the file, second workflow will detect and do nothing.现在,在 7:15,wkflow 将实时启动并创建文件,第二个工作流将检测到并且什么也不做。 Now, if file doenst exist, it will mail.
现在,如果文件不存在,它将发送邮件。
#!/bin/sh
if [ -r /somedir/ind.txt ]; then
exit 0
rm /somedir/ind.txt
mail -s <...some command...>
else
exit 1
fi
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.