Auto-extract value from ParamFlowArgument when blocked in ParamFlowSlot (#2776)
* Assign actual value with the result of paramFlowKey method
This commit is contained in:
parent
e0eb63e80e
commit
0bd27fb80a
|
|
@ -82,6 +82,10 @@ public class ParamFlowSlot extends AbstractLinkedProcessorSlot<DefaultNode> {
|
|||
String triggeredParam = "";
|
||||
if (args.length > rule.getParamIdx()) {
|
||||
Object value = args[rule.getParamIdx()];
|
||||
// Assign actual value with the result of paramFlowKey method
|
||||
if (value instanceof ParamFlowArgument) {
|
||||
value = ((ParamFlowArgument) value).paramFlowKey();
|
||||
}
|
||||
triggeredParam = String.valueOf(value);
|
||||
}
|
||||
throw new ParamFlowException(resourceWrapper.getName(), triggeredParam, rule);
|
||||
|
|
|
|||
Loading…
Reference in New Issue