AnsweredAssumed Answered

Class {xxx}xxx has not been defined in the data dictionary

Question asked by rohit9637 on Oct 17, 2018
Latest reply on Oct 22, 2018 by jpotts

I have deployed the custom model by the dynamic approach. I am trying to develop a behavior which will get triggered on Add aspect.

public void init() {
this.onAddAspect = new JavaBehaviour(this, "onAddAspect", NotificationFrequency.TRANSACTION_COMMIT);
this.policyComponent.bindClassBehaviour(QName.createQName(NamespaceService.ALFRESCO_URI,"onAddAspect"),QName.createQName("", "jobPostingEdit"), this.onAddAspect);


The jobPostingEdit Aspect belongs to model deployed dynamically.

While compiling it gives this issue.

Caused by: java.lang.IllegalArgumentException: Class {}jobPostingEdit has not been defined in the data dictionary

The Aspect is active and applied to documents and configured correctly.


Can we add behavior policy on Types or Aspect created dynamic approach or by the model manager?