Good day all.
I have a simple Service Task within my workflow that receives a parameter of “addInfoReceivedDate” which is passed into the Process via Postman call like such.
{
"variables": {
"lob": {
"value": "Commercial",
"type": "String"
},
"requestTerm": {
"value": "Prospective",
"type": "String"
},
"addInfoRequested": {
"value": "true",
"type": "Boolean"
},
"addInfoReceived": {
"value": "true",
"type": "Boolean"
},
"requestDate" : {
"value" : "2020-08-08T00:10:00.165+0100",
"type": "Date"
},
"addInfoReceivedDate" : {
"value" : "2020-08-09T00:10:00.165+0100",
"type": "Date"
}
}
}
Then, within the Expression formula, I am simply trying to add 3 days to this date that is submitted to it like this.
${addInfoReceivedDate.plusDays(3).toDate()}
I am receiving an error to the effect of
Caused by: org.camunda.bpm.engine.impl.javax.el.MethodNotFoundException: Cannot find method plusDays with 1 parameters in class java.util.Date
at org.camunda.bpm.engine.impl.javax.el.BeanELResolver.invoke(BeanELResolver.java:476)
at org.camunda.bpm.engine.impl.el.AbstractElResolverDelegate.invoke(AbstractElResolverDelegate.java:97)
at org.camunda.bpm.engine.impl.javax.el.CompositeELResolver.invoke(CompositeELResolver.java:397)
at org.camunda.bpm.engine.impl.juel.AstMethod.invoke(AstMethod.java:91)
at org.camunda.bpm.engine.impl.juel.AstMethod.eval(AstMethod.java:75)
at org.camunda.bpm.engine.impl.juel.AstMethod.invoke(AstMethod.java:79)
at org.camunda.bpm.engine.impl.juel.AstMethod.eval(AstMethod.java:75)
at org.camunda.bpm.engine.impl.juel.AstEval.eval(AstEval.java:50)
at org.camunda.bpm.engine.impl.juel.AstNode.getValue(AstNode.java:26) at org.camunda.bpm.engine.impl.juel.TreeValueExpression.getValue(TreeValueExpression.java:114) at org.camunda.bpm.engine.impl.delegate.ExpressionGetInvocation.invoke(ExpressionGetInvocation.java:40) at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:58) at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:92) at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:63) at org.camunda.bpm.engine.impl.el.JuelExpression.getValue(JuelExpression.java:60)
Does anyone know how I can accomplish this?