Open carlosthe19916 opened 4 years ago
Hi @carlosthe19916
can you try the workflow described here? http://blog.athico.com/2020/03/kogito-ergo-rules-from-knowledge-to.html we are in the process of updating the quickstarts, some uses an older syntax.
traits are currently not supported. What are you trying to achieve?
@evacchi Thank you very much for the link provided, it helped a lot.
interesting. You can obtain the same behaviour by creating two classes and have a constructor or factory method on the enriched one that copies over the values from the first. If you also need the polymorphic features of traits, you should be able to simulate it through inheritance or interfaces (an EnrichedPerson may extend an Person or you could implement an EnrichedPerson interface)
PS: you can also get in touch with us through https://groups.google.com/forum/#!forum/kogito-development
I hit this same issue today using Kogito 1.6.0.Final
. Interesting that the Kogito docs use the DRL declare
statement for defining Fact Types for all drools rules examples...
By the way, the workaround pointed in the post does not work...
I've been trying to use Kogito and Quarkus but I ended up not being able to use all the features that Drools gives. I'm not sure where to raise this bug so I'll start reporting it here:
To reproduce the error you only need to add a declared type inside a .drl file like this example: https://github.com/carlosthe19916/quarkus-quickstarts/blob/patch-1/kogito-quickstart/src/main/resources/org/acme/kogito/person-rules.drl#L6
cannot find symbol [ERROR] : method don(....)
Is this a problem that can be solved by adding some configuration or is it a bug? Is it possible to add an example using those features?
Note: I also reported this problem in https://github.com/quarkusio/quarkus-quickstarts/issues/488