问题
I have two sessions i a workflow like below
workflow1->session1->session2
i have a join_date column in a table in Mapping1 , in session1
i want to pick this join_date value and pass to mpping2/session2
If join date value changes in the table in session1 then the same value should pick and pass to session2
I will use this date value in a query in session2 .
Please tell me how to achieve this?
Thank you
回答1:
You can do this using mapping and workflow variables.
- 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
来源:https://stackoverflow.com/questions/26839075/pass-date-value-from-one-session-to-another-session-in-the-same-workflow