I am using arguments to get the status of the excel row
The workflow will be like
- In Process Transaction in the process workflow I have assigned the status in between the workflow as Out Argument and passed it to the Main Workflow
I see you are ending with a Throw, this means that normal arguments do not normally work within that Try Catch.
If you want to pass out info to the Main workflow, coming from an error in the try, you need to 1st init a DataTable or a Dictionary in the main. Set it as In/Out inside the Process.xaml, and then fill it inside.
Normal “String Out arguments” do not carry information out of the TryCatch.
If you changed to in/out, but you kept the Argument Type to “String”, it will not work. you need some kind of structured data, like Dictionary, DataTable, or Lists
For reference, my Process contains the assign with the following data:
io_dict_DataForReport("Data") = "Failed"
Checking out of the process, on Main, my key io_dict_DataForReport(“Data”) contains the “Failed” string in it.
“Data” in io_dict_DataForReport(“Data”) = “Failed” is just the key.
If you want to get the “Failed” information on Main, instead of getting it from your out_String argument, you can refer to Var_Dict_DataForReport(“Data”) and this will contain your value.
You can of course change the key “Data” if you want, by using any other string, inclusive the one in your argument. But bear in mind that you will have to refer to that one, also on Main.
Example:
Process: io_dict_DataForReport(“Data”) = “Failed”
Main: var_dict_DataForReport(“Data”) will have the value: “Failed”
Process: io_dict_DataForReport(in_StringVariable) = “Failed”
Main: var_dict_DataForReport(var_StringVariable) will have the value: “Failed”