fix(resource locator): add back extract value logic (#4178)

add back extract value logic
This commit is contained in:
Mutasem Aldmour
2022-09-23 11:56:57 +02:00
committed by GitHub
parent 87e6877f1d
commit 46f95622e3
7 changed files with 342 additions and 40 deletions

View File

@@ -643,8 +643,15 @@ export class RoutingNode {
if (nodeProperties.routing) {
let parameterValue: string | undefined;
if (basePath + nodeProperties.name && 'type' in nodeProperties) {
// Extract value if it has extractValue defined or if it's a
// resourceLocator component. Resource locators are likely to have extractors
// and we can't know if the mode has one unless we dig all the way in.
const shouldExtractValue =
nodeProperties.extractValue !== undefined || nodeProperties.type === 'resourceLocator';
parameterValue = executeSingleFunctions.getNodeParameter(
basePath + nodeProperties.name,
undefined,
{ extractValue: shouldExtractValue },
) as string;
}