[rules-users] Using param of innerclass in <LHS> condition

Mark Proctor mproctor at codehaus.org
Sat Nov 17 12:32:39 EST 2007


if you look over the examples download many of them use static nested 
classes - checkout HelloWorldExample.

Mark
Martin Book wrote:
>
> Hello,
>
>  
>
> the class ContactQueueDetail contains class ContactCallDetailId.
>
> ContactQueueDetail cqd
>
> I have asserted cqd to the WorkingMemory.
>
> It contains ContactCallDetailId id;
>
> On the LHS I need the Timestamp t=id.getStartDateTime();
>
>  
>
> I have not found the correct Syntax for this, yet.
>
>  
>
> My rule looks like this:
>
> *rule* "ContactQueueDetail"
>
>       *when*
>
>             
> $cqd:ContactQueueDetail($disp:disposition==1,$id:id.startDateTime)
>
>             $h: CallsPerHour(hour==$id.getHour())
>
>       *then*
>
>             ..
>
> *end*  
>
>  
>
> kind regards
>
>  
>
> Martin
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071117/dc7b67b1/attachment.html 


More information about the rules-users mailing list