Hi
I have a dmn which holds default values in json format {
“delayUntilOrigin”: now(),
“delayUntilIntervalDays”: “0”,
“delayUntilTime”: “16:00”
}
and another dmn which takes the above json and replace one property with different value.
To achieve that, am using put all function , like put all(defaultCalculation,{“delayUntilIntervalDays”: “10”})
But dmn engine unable to identify feel function put all. Even put does not work.
I get below error, org.camunda.bpm.dmn.feel.impl.FeelException: FEEL/SCALA-01008 Error while evaluating expression: failed to parse expression ‘put all(defaultCalculation,{“delayUntilIntervalDays”: “10”})’: [1.5] failure: end of input expected
I have got dependency
testImplementation group: ‘org.camunda.bpm.dmn’, name: ‘camunda-engine-dmn’, version: “7.14”
testImplementation group: ‘org.camunda.bpm’, name: ‘camunda-engine’, version: ‘7.14.0’
Updated to 7.15 and I see it recognizes put or put all function.
In DMN I want to override one of the properties
put(defaultCalculation,“delayUntilIntervalDays”,“10”) - where defaultCalculation is a context defined in
a new DMN
{
“delayUntilOrigin”: now(),
“delayUntilIntervalDays”: “0”,
“delayUntilTime”: “16:00”
}
put(defaultCalculation,“delayUntilIntervalDays”,“10”) returns null.
How do I override with the feel expression?