简体   繁体   English

在 informatica 中的给定时间未触发工作流时如何发送邮件

[英]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 -你有两个选择——

  1. easiest would be - create another workflow(scheduled at 7:18 AM) with a command task which will check a file.最简单的方法是 - 创建另一个工作流(安排在上午 7:18),其中包含一个检查文件的命令任务。 After command task, put a condition to the task link status=1 and then add a email task.在命令任务之后,给任务链接状态=1设置一个条件,然后添加一个email任务。
    Add a touch command as pre session to the main workflow.将触摸命令作为前 session 添加到主工作流程。 New workflow will be like -新的工作流程将像 -
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.现在,如果文件不存在,它将发送邮件。

  1. second option will be, you can create a cron script that starts around 7:18AM, check if file exist or not - if file is absent, it will mail and delete the file.第二个选项是,您可以创建一个在早上 7:18 左右开始的 cron 脚本,检查文件是否存在 - 如果文件不存在,它将发送邮件并删除该文件。 Your command file should be like this -你的命令文件应该是这样的 -
#!/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.

相关问题 使用Informatica工作流程发送邮件 - sending a mail using informatica workflow 如何在工作流程成功完成后每天自动发送邮件,并在运行时间长时发送 email - how to send mail automatically everyday when workflow completed successfully and also send an email when it run long 如何配置工作流运行时 (Informatica)? - How to configure workflow runtime (Informatica)? 在Informatica Developer中的工作流程中发送平面文件附件 - Send a Flat file attachment in the workflow in Informatica Developer 如何仅在显示指标文件时启动工作流会话? (Informatica) - How do I start workflow session only when the indicator file show up? (Informatica) Informatica Workflow Manager:如何根据某些条件控制工作流的流程 - Informatica Workflow Manager : How to control the flow of the workflow based on some condition Informatica PowerCenter 过滤器中的上一个工作流开始时间作为开始日期 - Previous Workflow Start Time as start date in a filter in Informatica PowerCenter 运行工作流程时,获取Informatica中带有日期字段的错误消息 - Get error message with date field in Informatica when the workflow is run Informatica中的工作流计划 - Workflow scheduling in Informatica Informatica工作流程方案 - Informatica workflow scenario
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM