Recently, the ability to use parameters in Task Chains was added ... a long-awaited feature for many of us. But what exactly can we do with parameters in Task Chains, and what are the limitations?
Task Chains let us execute tasks in a controlled way, whether in parallel, sequentially, or a mix of both. The actions we can perform include:
However, only some of these actions support parameter usage within a Task Chain:
These objects can be defined with parameters, but we cannot pass parameters from the Task Chain to these objects directly:
If we add these parameterized objects to a Task Chain, they will only work if their parameters have default values set. We won’t be able to change them dynamically, but at least we can execute them from within a Task Chain.
If the default parameter is not set, we’ll see an error when adding them to the Task Chain
That said, we can pass parameters to a view if it’s used inside a Transformation Flow. The parameter is first passed to the Transformation Flow, which then passes it to the view.
It’s actually quite simple. In the Task Chain, you define the necessary input parameters (you can have multiple inputs if needed) and assign them a value or leave them blank, which will be treated as an empty string.
There’s no data type enforcement, no length restrictions, and no functions involved ... all parameters are treated as String value.
Now we add our tasks to the Task Chain. If those tasks support parameters under this new functionality, you’ll see an option to assign values to them.
You can either set a fixed value or map the Task Chain’s input parameter to pass the value dynamically.
If the parameter isn’t supported, you won’t see any option to assign a value or link the parameter. Here’s an example of a Data Flow defined with a parameter (with a default value), but without the option to map the Task Chain Input Parameter or assign a value.
And that’s it ! ... once you run the Task Chain, it will use the values defined in the Input Parameters. If you need to run it with different values, just update them and execute.
This new functionality is a major step forward in building smarter and more advanced flows. Hopefully, we’ll soon see features like a global variable repository, the ability to pass those values into parameters, use functions, or derive values from views ... all of which would make the system even more powerful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 7 | |
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |