Input parameters do not support lambda expressions
See original GitHub issueHi there,
our team is having lots of unnecessary lambda expressions pre and post workers execution. Most of which are checking for null values or exist checks increasing the size of the workflows drastically.
Our first goal, was to do something like this:
"inputParameters":{
"pn": "${ ${w1.output.nb} == null ? null : \"w1.output.nb\"},
"http_request": {
"uri": "http://someEndPoint/user",
"method": "POST",
"accept": "application/json",
"body": "{ \"username\": \"w1.output.username\" , \"pn\": $.pn}
}
},
Q:
- Is there a way to do what I’ve attempted to do with
pn
without using lambda workers? - If what I am attempting to do is not supported is there a plan of adding feature similar to what I’ve described in the next release?
- If this is something that you guys are interested in but don’t find super essential. Would you like our team to take it on?
Thank you!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Lambda expressions and anonymous functions | Microsoft Learn
To create a lambda expression, you specify input parameters (if any) on the left side of the lambda operator and an expression or...
Read more >Writing a lambda expression when parameters are ignored in ...
I assume that the expected functional interface method must accept a single argument. The identifier _ is a reserved keyword since Java 8....
Read more >Java - Lambda Expressions Parameters - GeeksforGeeks
This method is a generic method that takes a type parameter. This interface can be implemented anywhere in a program using a lambda...
Read more >Lambda Expressions and Functional Interfaces: Tips and Best ...
The lambda expression approach can be used for any suitable interface from old libraries. It is usable for interfaces like Runnable, Comparator, ...
Read more >Working with Lambda Expressions in Java - Developer.com
You cannot define top-level functions in Java; you can't define a function outside a class. Moreover, Java does not allow you to return...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Currently, there isn’t a way to achieve this without using lambda tasks.
This is not supported currently, but we feel that this would be a great addition to the project. Unfortunately, we will not be able to work on adding this feature.
We would greatly appreciate it if your team can contribute this feature. I am sure this would benefit other users of Conductor as well.
This issue was closed, because it has been stalled for 7 days with no activity.