Henchway
4 years agoContributor
Expression Library evaluates to ArrowFunction
Hello,
i’m trying to nest a function in a map within an expression library, however what i get returned just the ‘callstack’ of the function.
Here’s the outcome:
[
{
"test":
"/* ArrowFunction ...
- 4 years ago
Change your responsibleUnit to a function:
"responsibleUnit": (opt) => match opt { "10" => "Delivery", "9" => "Operation", "8" => this.salesRegionMapper('accountableUnit', 8), "16" => "Tolling Services", _ => "unknown" },
Then you can call as a function and it will drilldown to the salesRegionMapper function:
lib.testcall.responsibleUnit('8')