cancel
Showing results for 
Search instead for 
Did you mean: 

Why nuxeo studio MVEL Document.getParenty("DocumentType") do not work?

Amir_Buzo
Confirmed Champ
Confirmed Champ

Florent Guillaume Why this mvel command shows @{Document.getParent("DocumentType")} me an error ? The type IEVP exist.

[Error: null pointer: Document.getParent("IEVP").getProperty("organization:code")]
[Near : {... Document.getParent("IEVP").get ....}]
             ^
[Line: 1, Column: 1]
at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:450)
at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:163)
at org.mvel2.optimizers.dynamic.DynamicOptimizer.optimizeAccessor(DynamicOptimizer.java:81)
at org.mvel2.ast.ASTNode.optimize(ASTNode.java:159)
at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:115)
at org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:117)
at org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:117)
at org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:117)
at org.mvel2.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:117)
at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:42)
1 REPLY 1

Florent_Guillau
World-Class Innovator
World-Class Innovator

From the location of the ^ it seems that you have no current document in your chain.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.