[rules-users] [optaplanner] creating dynamic fact classes(planning entity and planning variables) in Optaplanner
Davide Sottara
dsotty at gmail.com
Thu Jul 24 05:27:31 EDT 2014
Declared types support annotations. You'll have to import it
package my.drl;
import my.SomeAnnotation;
declare Foo
@SomeAnnotation
bar : String
end
When the declare is processed, the class builder will try to resolve the
annotation
and, if found, will wire it to the class being generated.
If this does not work, it's a bug, so please report it as such.
Davide
On 07/24/2014 11:19 AM, colorful.world wrote:
> Hi Geoffrey,
>
> Thanks for reply.
> What we use for declaring fact type is just to have class declaration in drl
> file. Since this drl string is loaded at runtime, we are able to have
> dynamic class structures and drools rules from DB.
> So, I am wondering if we can have dynamic Planning Entity and Variables in
> Optaplanner.
> Please share, if you have another similar ideas to achieve this.
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/optaplanner-creating-dynamic-fact-classes-planning-entity-and-planning-variables-in-Optaplanner-tp4030473p4030476.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list