[rules-users] NullPointerException when calling FactType.set and FactType.setFromMap

2014-05-06 Thread Patel, Ronak (Autonomy)
Hello all, I'm getting a NullPointerException when calling org.kie.api.definition.type.FactType.set(Object, String, Object) and also when I call org.kie.api.definition.type.FactType.setFromMap(Object, MapString, Object). The exception stack trace points to the same line in both cases:

Re: [rules-users] NullPointerException when calling FactType.set and FactType.setFromMap

2014-05-06 Thread Michael Anstis
Data Modeller generates Java classes in 6.x whereas we generated DRL Declarative Types before. The getFactType() API is for manipulating declared types. Java's standard Reflection API is for manipulating Java classes. Sent on the move On 6 May 2014 20:57, Patel, Ronak (Autonomy)

Re: [rules-users] NullPointerException when calling FactType.set and FactType.setFromMap

2014-05-06 Thread Patel, Ronak (Autonomy)
Ah, OK, thanks for the clarification. I'll give the Java Reflection API a try with this in that case. On May 6, 2014, at 1:10 PM, Michael Anstis michael.ans...@gmail.commailto:michael.ans...@gmail.com wrote: Data Modeller generates Java classes in 6.x whereas we generated DRL Declarative