如何配置工作流运行时(Informatica)? [英] How to configure workflow runtime (Informatica)?
问题描述
我希望工作流运行20分钟....如果运行过程在20分钟内未完成,则应立即终止工作流.但是,我只能找到计时器,但它用于在指定的时间(我不是要寻找的时间)之后开始该过程...有人知道如何指定工作流程的持续时间吗?
I would like the workflow to run for 20 minutes....If the running process does not complete within 20 minutes, the workflow should be ended immediately..However, I can only find the timer, but it is used for starting the process after the indicated time which is not I'm looking for...Does anyone know how to specify the duration for the workflow?
推荐答案
[已更新,以涵盖完整的方案并涵盖Koushik Sinharoy在评论中提出的问题]
[updated to cover complete scenario and cover issues raised by Koushik Sinharoy in comments]
您可以使用计时器来实现:
You can achieve it using the timer:
- 将一个链接到
Start
任务,并将其设置为在20分钟内运行与您的会话并行. - 具有
Decision任务
,其中将输入链接的
设置为OR
.每当任何前面的任务结束时,这都会触发该决定,因此您的会话将完成或计时器用完(无论先发生什么). - 将
Decision
条件设置为$ s_your_session.Status = SUCCEEDED
. - 将
Decision任务
链接到Control Task
. - 将
Control任务
设置为Fail parent
. - 将条件
$ Decision.Condition = False
添加到Decision任务
和Control任务
之间的链接.
- Link one to the
Start
task and set it to run for 20 minutes in parallel with your session. - Have a
Decision task
withTreat the input links as
set toOR
. This will trigger the decision whenever any of the preceeding task ends, so either your session will get completed or timer runs out (whatever happens first). - Set the
Decision
condition to$s_your_session.Status = SUCCEEDED
. - Link the
Decision task
toControl Task
. - Set
Control task
toFail parent
. - Add a condition
$Decision.Condition = False
to the link betweenDecision task
andControl task
.
这应该是结果:
Start--->s_your_session--\
\ > Decision [OR] ---(False)---> Control Task [Fail parent]
\-->timer-----------/
感谢库希克·辛哈罗伊(Koushik Sinharoy)的讲话!
Thanks Koushik Sinharoy for the remarks below!
这篇关于如何配置工作流运行时(Informatica)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!