在同一工作流程中将日期值从一个会话传递到另一个会话 [英] Pass date value from one session to another session in the same workflow
本文介绍了在同一工作流程中将日期值从一个会话传递到另一个会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在如下所示的工作流程中,我有两个会话
I have two sessions i a workflow like below
workflow1-> session1-> session2
workflow1->session1->session2
我在session1的Mapping1的表中有一个join_date列
i have a join_date column in a table in Mapping1 , in session1
我想选择此join_date值并传递给mpping2/session2
i want to pick this join_date value and pass to mpping2/session2
如果会话1的表中的加入日期值发生更改,则应选择相同的值并将其传递给会话2
If join date value changes in the table in session1 then the same value should pick and pass to session2
我将在session2的查询中使用此日期值.
I will use this date value in a query in session2 .
请告诉我该如何实现?
谢谢
推荐答案
您可以使用映射和工作流变量来执行此操作.
You can do this using mapping and workflow variables.
- 在mapping1中,创建一个名为
var1
的映射变量,并将其值设置为join_date. - 在工作流程中创建一个工作流程变量,例如
var_wkf
- 在会话1中,在成功变量分配后的会话中,分配
var_wkf = var1
- 在mapping2中,创建一个映射变量,例如
var2
- 在会话2中,在会话前变量分配中,分配
var2=var_wkf
- 您可以在mapping2中使用var2变量,它的值应在mapping1中设置
- In mapping1 create a mapping variable say
var1
and set its value to join_date. - Create a workflow variable in the workflow, say
var_wkf
- In session1, in Post-session on success variable assignment, assign
var_wkf = var1
- In mapping2, create a mapping variable, say
var2
- In session2, in Pre-session variable assignment, assign
var2=var_wkf
- You can use the var2 variable in mapping2, it should have the value set in mapping1
这篇关于在同一工作流程中将日期值从一个会话传递到另一个会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文