error on MendixIdentifier in Bizzomate Avola Decision Adapter on Mendix 7

0
in a conversion from Mendix 6 to 7, the Bizzomate Avola Decision Adapter raises a cluster of two java errors: The import com.mendix.core.objectmanagement.MendixIdentifier cannot be resolved       in module GetFilledDecisionRequest.java MendixIdentifier cannot be resolved to a type                    in module GetFilledDecisionRequest.java code: IMendixIdentifier parentValueObjectIdentifier = (MendixIdentifier) valueObject.getValue(iContext, subMappingObject.getCompleteReferenceName(iContext)); How to solve this?
asked
2 answers
2

after consulting Bizzomate they came with the following Solution

in module GetFilledDecisionRequest.java

Remove

  • import com.mendix.core.objectmanagement.MendixIdentifier;

 

change

  • IMendixIdentifier parentValueObjectIdentifier = (MendixIdentifier) valueObject.getValue(iContext, subMappingObject.getCompleteReferenceName(iContext));

in

  • IMendixIdentifier parentValueObjectIdentifier = (IMendixIdentifier) valueObject.getValue(iContext, subMappingObject.getCompleteReferenceName(iContext));
answered
0

A call to the "getValue" method returns an IMendixObject, so you should remove the cast to MendixIdentifier. So, the new code should be:

IMendixIdentifier parentValueObjectIdentifier = valueObject.getValue(iContext, subMappingObject.getCompleteReferenceName(iContext));

Let us know if that works for you!

answered