在同一工作流程中将日期值从一个会话传递到另一个会话 [英] Pass date value from one session to another session in the same workflow

查看:60
本文介绍了在同一工作流程中将日期值从一个会话传递到另一个会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在如下所示的工作流程中,我有两个会话

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.

  1. 在mapping1中,创建一个名为var1的映射变量,并将其值设置为join_date.
  2. 在工作流程中创建一个工作流程变量,例如var_wkf
  3. 在会话1中,在成功变量分配后的会话中,分配var_wkf = var1
  4. 在mapping2中,创建一个映射变量,例如var2
  5. 在会话2中,在会话前变量分配中,分配var2=var_wkf
  6. 您可以在mapping2中使用var2变量,它的值应在mapping1中设置
  1. In mapping1 create a mapping variable say var1 and set its value to join_date.
  2. Create a workflow variable in the workflow, say var_wkf
  3. In session1, in Post-session on success variable assignment, assign var_wkf = var1
  4. In mapping2, create a mapping variable, say var2
  5. In session2, in Pre-session variable assignment, assign var2=var_wkf
  6. You can use the var2 variable in mapping2, it should have the value set in mapping1

这篇关于在同一工作流程中将日期值从一个会话传递到另一个会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆