I need to check if that's the correct syntax, but in the right hand side as
far as i know you can also do insert() and retract() that uses the kcontext
to be executed. I think that is just syntax sugar from the parser side.
2011/8/4 Wolfgang Laun <wolfgang.laun(a)gmail.com>
2011/8/4 Mauricio Salatino <salaboy(a)gmail.com>
> there is short way to do the same without using the kcontext: you should
> be able to do something like:
>
> entry-point['Temporal Reasoning'].insert(evt);
>
That would surprise me, "entry-point" not being a valid Java identifier.
The parser would see an expression.
-W
>
> Please check the syntax in the docs.
>
>
>
>
>
> 2011/8/4 Esteban Aliverti <esteban.aliverti(a)gmail.com>
>
>> This should work:
>>
>> when
>> ...
>> then
>> TransactionEvent evt = new TransactionEvent();
>> evt.setMessage("Temporal Reasoning");
>> kcontext.getKnowledgeRuntime().getWorkingMemoryEntryPoint("Temporal
>> Reasoning").insert(evt);
>> end
>>
>>
>> Best Regards,
>>
>> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>>
>> Esteban Aliverti
>> - Developer @
http://www.plugtree.com
>> - Blog @
http://ilesteban.wordpress.com
>>
>>
>>
>> On Thu, Aug 4, 2011 at 10:38 AM, Amila Suriarachchi <
>> amilaSuriarachchi(a)gmail.com> wrote:
>>
>>> This post has done some time ago. is there a solution for this
>>> currently?
>>>
>>> --
>>> View this message in context:
>>>
http://drools.46999.n3.nabble.com/Drools-Fusion-Inserting-an-Event-in-to-...
>>> Sent from the Drools: User forum mailing list archive at
Nabble.com.
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
> --
> - CTO @
http://www.plugtree.com
> - MyJourney @
http://salaboy.wordpress.com
> - Co-Founder @
http://www.jbug.com.ar
>
> - Salatino "Salaboy" Mauricio -
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users