Hello there.
I’m trying to start a process using scripts as right operand in Output Operation of several fields, to transform the field_XXXX data to object instance and store it in a field o a process data, and the error above is thrown.
The operator type is not the “Takes value of”, but the “Use a Java method”.
Any help?
…
Caused by: org.bonitasoft.engine.expression.exception.SExpressionEvaluationException: Groovy script throws an exception of type class org.bonitasoft.engine.commons.exceptions.SBonitaRuntimeException with message = Unable to evaluate expression without a definitionId
Expression : SExpressionImpl [name=n/a:scrValorCoord, content=import br.jus.tjce.sisaud.model.entity.Servidor;
return new Servidor(matricula : field_matCoordenadorAuditoria);, returnType=br.jus.tjce.sisaud.model.entity.Servidor, dependencies=[SExpressionImpl [name=field_matCoordenadorAuditoria, content=field_matCoordenadorAuditoria, returnType=java.lang.String, dependencies=, expressionKind=ExpressionKind [interpreter=NONE, type=TYPE_INPUT]]], expressionKind=ExpressionKind [interpreter=GROOVY, type=TYPE_READ_ONLY_SCRIPT]]
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:153)
at org.bonitasoft.engine.expression.impl.ExpressionServiceImpl.evaluate(ExpressionServiceImpl.java:86)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionWithResolvedDependencies(ExpressionResolverServiceImpl.java:215)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluateExpressionsFlatten(ExpressionResolverServiceImpl.java:120)
at org.bonitasoft.engine.core.expression.control.api.impl.ExpressionResolverServiceImpl.evaluate(ExpressionResolverServiceImpl.java:83)
at org.bonitasoft.engine.core.operation.impl.OperationServiceImpl.evaluateRightOperandExpression(OperationServiceImpl.java:192)
… 61 more
Caused by: org.bonitasoft.engine.commons.exceptions.SBonitaRuntimeException: Unable to evaluate expression without a definitionId
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.getScriptFromCache(GroovyScriptExpressionExecutorCacheStrategy.java:77)
at org.bonitasoft.engine.expression.impl.GroovyScriptExpressionExecutorCacheStrategy.evaluate(GroovyScriptExpressionExecutorCacheStrategy.java:132)
… 66 more
Same problem yet… and I find this question… oops, i find my self.