I am getting an error when the knowledge agent loads a pkg. The rules source file contains an import for a class: com.abclegal.domain.task.FileDocumentsWithCourtTask and the RHS of a rule makes a cast using the class name without fully qualifying it: ((FileDocumentsWithCourtTask)$step.getTask()).addDocument($doc);
I see the following error when the package is loaded by knowledge agent: Error creating bean with name 'workflowKnowledgeAgent': Invocation of init method failed; nested exception is [Error: unable to resolve method using strict-mode: java.lang.Object.FileDocumentsWithCourtTask()] [Near : {... ((FileDocumentsWithCourtTask)$st ....}] note in the error that the FileDocumentsWithCourtTask is not being resolved according to the import statement. The really odd thing about this is that it doesn't get the error all the time. Sometimes the package is loaded without error. I can probably resolve this by fully-qualifying the class name within the RHS, but you are not supposed to have to do that if you put the fully-qualified name in the import of the rule. Any clue why this error might happen? -- View this message in context: http://drools.46999.n3.nabble.com/error-resolving-class-name-on-imported-class-when-loading-package-tp3210034p3210034.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users