I had an idea for a new step and wanted to see if there would be enough support from the community to suggest it.
What I was thinking would be kind of a cross between an Artifact and a Pattern Match and should be really easy to implement.
The idea comes from the workaround where you use an Artifact to present a string. Say I’m using a step that has an output of an array and I just want the first instance as an array, I can create an Artifact with that multidimensional array and the content of that Artifact will be a string.
Sometimes I want to return one value if a variable is set and another if it isn’t, this works in a simple form in an Artifact, but some of the handlebar functions only work in a Decision Step.
Also, this only presents a string, what if I want to present an object, integers, or an array?
The other thing is with large Workflows this adds an Artifact that I might not care to see on the Job page.
The idea that I had would be some kind of Variable Step where you could either define an object that you could add a member or change a member to or do handlebar logic like in a decision step or just build some output like you do in a Pattern Match?
You could do this with some Actions, but for speed reasons it would be nice to not need an Orchestrator.
Some ideas that I had for uses:
- You have a LDAP Action that returns one user, you want the attributes to be at the top level of the output for future use
- You have the output of multiple Actions that you want to make into an array for a loop
- You have an Action that has multiple members for its output and you want to add to that from another Action
- You have multiple paths in a Decision Step that you want to present some wording differently depending on the path that will be used in an Artifact latter after a Join Step
If the Community thinks this would be useful Like this and if I get a bunch I’ll put in an official feature request.