Here is the WF diagram.
Main WF —> WF1
WF1 → A set of activities and WF2 —> WF3.
In WF2, am reading from excel file and able to validate the data using debug activities. However the values aren’t populated to WF3.
Have tried all possible combinations of arguments. i.e. Out arguments in WF2. In/(In/Out) arguments in WF3. Imported Arguments in WF3 using the variables used in WF2.
But noticed only “null values” in WF3 even though variables/out arguments in WF2 have valid data. Any clues to fix the issue?
Used the convention of in_, io_ for arguments in WF3 and out_ in WF2.
Verified the values for all variables in WF2 in debug stmts and debug run. But not able to see the values propagated to WF3.
Used Invoke workflow from file activity for all WFs.
Any pointers to resolve the issue?
in WF1 - Decalre argument with in/out so that value is apssed in and also taken out and in import attach to v1 variable
in WF2- Now in wf2 is called inside wf1 then link argument to argument and also declare argument in wf2 as in if only data to be passed in else declare as in/out
same needs to be done for wf3
as per explaination looks like somewhere you declared only in but expectiing value to be passed out also…check the same
Thanks Anil for response. If I understand you correctly, this is the structure you are pointing to.
Declare variables in Main WF.
Declare arguments as in/out in WF1 (which gets triggered by Main). 3. Import the arguments declared in WF1 in WF2. But at this point the variables aren’t initialized, so what does the import sets the arguments to?
These are steps am following to avoid uninitialized variables.
4. We are initializing the variables in WF2 only. Using arguments in WF2 (as in/out) to push/pass to WF3.
5. Imported the arguments in WF3 and used variables initialized in WF2 in arguments panel.
Even when I did #4/#5, the arguments/variables are shown as null in WF3.
If you need to pass data from wf1 to wf2…then you need to declare arguments and not variables.because when you invoke wf2 in wf1…you would click on import arguments and it would not show the variable in wf2…so to link the argument in wf1 to wf2 …you need to declare arguments in wf2 which can be linked to argument in wf1 when called and import argumnets is clicked