question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Input parameters do not support lambda expressions

See original GitHub issue

Hi 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:

  1. Is there a way to do what I’ve attempted to do with pn without using lambda workers?
  2. 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?
  3. 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
apanicker-nflxcommented, Nov 26, 2019
  1. Is there a way to do what I’ve attempted to do with pn without using lambda workers?

Currently, there isn’t a way to achieve this without using lambda tasks.

  1. 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?

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.

  1. 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?

We would greatly appreciate it if your team can contribute this feature. I am sure this would benefit other users of Conductor as well.

0reactions
github-actions[bot]commented, Apr 23, 2021

This issue was closed, because it has been stalled for 7 days with no activity.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found