Re: [rules-users] retrieving streams/entry points from java api

2009-09-30 Thread Edson Tirelli
Certainly, that is one of the goals of the Drools Boot Camps. I will be
there in Dallas for the boot camp and for the ORF.

More info:

http://www.octoberrulesfest.org/
http://blog.athico.com/2009/09/iii-drools-boot-camp-at-october-rules.html
http://blog.athico.com/2009/09/drools-boot-camp-dallas-october-25th.html

Just a reminder, the boot camp is completely free for ORF attendants, so
I strongly advise everyone to join both the boot camp and this awesome
conference! Check the agenda!

Cheers,
  Edson

2009/9/30 Chris Richmond 

>  Ed,
>
>
> Thanks a lot.  I am thinking about comding to Drools boot camp in Dallas?
> In late October.  If not that one than the next one.  Will you be there?  I
> feel it would be beneficial to have some time to get over the hump with
> using Drools and Fusion to it’s full potential.  That way I can give you
> guys my use cases and discuss a proper Drools strategy.
>
>
>
> Thank,
>
>
> Chris
>
>
>  --
>
> *From:* rules-users-boun...@lists.jboss.org [mailto:
> rules-users-boun...@lists.jboss.org] *On Behalf Of *Edson Tirelli
> *Sent:* Wednesday, September 30, 2009 4:45 AM
> *To:* Rules Users List
> *Subject:* Re: [rules-users] retrieving streams/entry points from java api
>
>
>
>
>Chris,
>
>That is indeed missing in the public API. I am adding it as we speak,
> thanks for bringing that up:
>
> https://jira.jboss.org/jira/browse/JBRULES-2285
>
>Meanwhile, until we release the new version, the workaround is to
> downcast the interface:
>
>   *for*(WorkingMemoryEntryPoint entry :
> session.getWorkingMemoryEntryPoints()){
>
> System.*err*.println("entry point
> stream: " +
>
>
> ((InternalWorkingMemoryEntryPoint)entry).getEntryPoint().getEntryPointId());
>
>   }
>
> Edson
>
>
>
>  2009/9/29 Chris Richmond 
>
> Hello,
>
>
>
> I am trying to determine, iterate the working memory streams within my rule
> by doing the following:
>
>
>
>   *for*(WorkingMemoryEntryPoint entry :
> session.getWorkingMemoryEntryPoints()){
>
> System.*err*.println("entry point
> stream: " + entry.toString());
>
>   }
>
>
>
> But I can find no method/way to finid the actual text name of the entry
> point(what is written in the rule as from entry-point “”).
>
>
>
>
>
>
>
> Is there a way to do this?  To list the readable names of the entry points
> from your session?  I would like to list those entry points in a drop down
> as application profiles, so if they have one selected, one entry point of
> rules will be inserted to and so on..
>
>
>
> Thanks,
>
>
>
> Chris
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
> --
>  Edson Tirelli
>  JBoss Drools Core Development
>  JBoss by Red Hat @ www.jboss.com
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] retrieving streams/entry points from java api

2009-09-30 Thread Chris Richmond
Ed,


Thanks a lot.  I am thinking about comding to Drools boot camp in Dallas? In
late October.  If not that one than the next one.  Will you be there?  I
feel it would be beneficial to have some time to get over the hump with
using Drools and Fusion to it's full potential.  That way I can give you
guys my use cases and discuss a proper Drools strategy.

 

Thank,


Chris

 

  _  

From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Edson Tirelli
Sent: Wednesday, September 30, 2009 4:45 AM
To: Rules Users List
Subject: Re: [rules-users] retrieving streams/entry points from java api

 


   Chris,

   That is indeed missing in the public API. I am adding it as we speak,
thanks for bringing that up:

https://jira.jboss.org/jira/browse/JBRULES-2285

   Meanwhile, until we release the new version, the workaround is to
downcast the interface:

  for(WorkingMemoryEntryPoint entry :
session.getWorkingMemoryEntryPoints()){

System.err.println("entry point stream:
" + 



 
((InternalWorkingMemoryEntryPoint)entry).getEntryPoint().getEntryPointId());

  }

Edson





2009/9/29 Chris Richmond 

Hello,

 

I am trying to determine, iterate the working memory streams within my rule
by doing the following:

 

  for(WorkingMemoryEntryPoint entry :
session.getWorkingMemoryEntryPoints()){

System.err.println("entry point stream:
" + entry.toString());

  }

 

But I can find no method/way to finid the actual text name of the entry
point(what is written in the rule as from entry-point "").

 

 

 

Is there a way to do this?  To list the readable names of the entry points
from your session?  I would like to list those entry points in a drop down
as application profiles, so if they have one selected, one entry point of
rules will be inserted to and so on..

 

Thanks,

 

Chris


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] retrieving streams/entry points from java api

2009-09-30 Thread Edson Tirelli
   Chris,

   That is indeed missing in the public API. I am adding it as we speak,
thanks for bringing that up:

https://jira.jboss.org/jira/browse/JBRULES-2285

   Meanwhile, until we release the new version, the workaround is to
downcast the interface:

  *for*(WorkingMemoryEntryPoint entry : session
.getWorkingMemoryEntryPoints()){

System.*err*.println("entry point
stream: " +


((InternalWorkingMemoryEntryPoint)entry).getEntryPoint().getEntryPointId());

  }
Edson




2009/9/29 Chris Richmond 

>  Hello,
>
>
>
> I am trying to determine, iterate the working memory streams within my rule
> by doing the following:
>
>
>
>   *for*(WorkingMemoryEntryPoint entry :
> session.getWorkingMemoryEntryPoints()){
>
> System.*err*.println("entry point
> stream: " + entry.toString());
>
>   }
>
>
>
> But I can find no method/way to finid the actual text name of the entry
> point(what is written in the rule as from entry-point “”).
>
>
>
>
>
>
>
> Is there a way to do this?  To list the readable names of the entry points
> from your session?  I would like to list those entry points in a drop down
> as application profiles, so if they have one selected, one entry point of
> rules will be inserted to and so on..
>
>
>
> Thanks,
>
>
>
> Chris
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] retrieving streams/entry points from java api

2009-09-29 Thread Chris Richmond
Hello,

 

I am trying to determine, iterate the working memory streams within my rule
by doing the following:

 

  for(WorkingMemoryEntryPoint entry :
session.getWorkingMemoryEntryPoints()){

System.err.println("entry point stream:
" + entry.toString());

  }

 

But I can find no method/way to finid the actual text name of the entry
point(what is written in the rule as from entry-point "").

 

 

 

Is there a way to do this?  To list the readable names of the entry points
from your session?  I would like to list those entry points in a drop down
as application profiles, so if they have one selected, one entry point of
rules will be inserted to and so on..

 

Thanks,

 

Chris

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users