Pass step data to Fire event?
Hi, I thought I had this set up correctly, but testing reveals otherwise. I have a reusable workflow that is set up to send data passed to it to an external destination (as an Excel file). However, I only want to run this when the data being fed has rows. The reusable workflow is fine when used in a workflow - it uses the data passed to it from a previous step. But when used in a custom event, the data is not passed to it and instead it is using the source dataset used as part of the build. I do have 'Can supply source when executed' selected. Any suggestions?
Best Answers
-
I've also had this problem. It looks like a possible upcoming feature on the Export step could be a solution:
:
0 -
Release is out @James T Sidebotham
1
Answers
-
I'm fairly sure data can't be passed through a Fire Event to a triggered workflow execution in this way - Parameters can be passed but not the dataset.
The approach would be to write to a (intermediate) Snapshot in your initial workflow, then Fire Event to trigger the reusable Export workflow (only when rows are present).
This may mean making a change to your reusable workflow to take the intermediate workflow, since you won't be using the "Supply source" functionality in the way to can with embedded reusable workflows.
Keen to know if anyone has a different way of doing it.
1 -
I was worried this would be the answer. I wanted something completely modular, but only executes when data is present. I think I just have to go back to the method of the reusable workflow call within, and just generate empty Excel files.
0 -
Thanks Henry, that would solve my issue!
0 -
I wonder if I should request that data be passed thru Fire Event? I can't be the only one that would benefit.
0 -
We're currently adding an option to the export step to only create the output if rows are present. It's planned for the next release so keep an eye on the release notes for 2.16.6.
1 -
ok great
0 -
Great, thanks!
0