[rules-users] How to add a SkinProvider for the Drools Flow Eclipse Plugin, since the SkinManager does not have any possiblities for adding one ?

Robert robert.weissmann at web.de
Tue Mar 9 10:35:17 EST 2010


Hi Kris,

thanks for the offer on extending the Eclipse Plugin to add a custom  
SkinProvider.

A little more background on what my actual intention is.

I need a collection of already setup components which I can reuse again  
and again. Those components will mostly be derived from already existing  
components (like the Action-Component), but with an already given name and  
action (like a pre-set)...

This is because I need to modell flows with a lot of reused operations. I  
work in the semiconductor industry and process flows to produce a chip  
reuse many times the same kind of operations (e.g. load equipment, unload  
equipment, collect data, ...; just with some different parameters).

My thought was to create a custom SkinProvider with all the needed  
operations which I can use for modeling the flow.


Operation                        -> (extends)                 Component  
(orig)

load equipment                   ->                               Action
                                                                   (=  
Action comp with
                                                                      Name  
= "load equipment";
                                                                      Action  
= LoadEquipmentHandler.handleIt(...))

unload equipment                 ->                               Action
                                                                   (=  
Action comp with
                                                                      Name  
= "unload equipment";
                                                                      Action  
= UnLoadEquipmentHandler.handleIt(...))

collect data                     ->                               Action
                                                                   (=  
Action comp with
                                                                      Name  
= "collect data";
                                                                      Action  
= CollectDataHandler.handleIt(...))

a.s.o.

I hope you understand what I am trying to do.

If you have a better idea of providing custom components as through a  
SkinProvider, just let me know.

Thanks.

Cheers, Rob.




----------------------------------------------

Send rules-users mailing list submissions to
	rules-users at lists.jboss.org

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
	rules-users-request at lists.jboss.org

You can reach the person managing the list at
	rules-users-owner at lists.jboss.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."


Today's Topics:

    1. Drools integration with Mysql (Nilima R)
    2. How to add a SkinProvider for the Drools Flow Eclipse Plugin,
       since the SkinManager does not have any possiblities for adding
       one ? (Robert)
    3. Re: gwt-console-drools - link 2 download (ramram)
    4. Re: How to add a SkinProvider for the Drools Flow	Eclipse
       Plugin,	since the SkinManager does not have any possiblities for
       adding one ? (Kris Verlaenen)
    5. XStream (Bertrand Grottier)
    6. Re: gwt-console-drools - link 2 download (Kris Verlaenen)
    7. Re: XStream (Kris Verlaenen)


----------------------------------------------------------------------

Message: 1
Date: Tue, 9 Mar 2010 13:04:07 +0530
From: Nilima R <nilima.r at tcs.com>
Subject: [rules-users] Drools integration with Mysql
To: rules-users at lists.jboss.org
Message-ID:
	<OFE303DE70.696D5B48-ON652576E1.0029517D-652576E1.00299385 at tcs.com>
Content-Type: text/plain; charset="us-ascii"

Hello All ,

I need to integrate Mysql with Drools

1)I have made the following changes in the repositry..xml file


<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
           <param name="url"
value="jdbc:mysql://localhost.:3306/guvnor_db;create=true"/>
         <param name="user" value="root"/>
             <param name="password" value="root123"/>
          <param name="schemaObjectPrefix" value="${wsp.name}_"/>

2)Also i have included mysqlconnector  jar in jboss AS .

Please help with above steps as am not able to connect to mysql.No tables
are created in guvnor_db.



Nilima
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL:  
http://lists.jboss.org/pipermail/rules-users/attachments/20100309/6324e83e/attachment-0001.html

------------------------------

Message: 2
Date: Tue, 09 Mar 2010 13:11:28 +0100
From: Robert <robert.weissmann at web.de>
Subject: [rules-users] How to add a SkinProvider for the Drools Flow
	Eclipse Plugin, since the SkinManager does not have any possiblities
	for adding one ?
To: "rules-users at lists.jboss.org" <rules-users at lists.jboss.org>
Message-ID: <op.u9autetogqrarf at ntnbrwe.rgb.systemagmbh.de>
Content-Type: text/plain; charset=iso-8859-15; format=flowed;
	delsp=yes


How to add a SkinProvider for the Drools Flow Eclipse Plugin, since the
SkinManager does not have any possiblities for adding one ?

Cheers, Rob.


-- 
Erstellt mit Operas revolution?rem E-Mail-Modul: http://www.opera.com/mail/


------------------------------

Message: 3
Date: Tue, 9 Mar 2010 04:11:25 -0800 (PST)
From: ramram <ramram858 at gmail.com>
Subject: Re: [rules-users] gwt-console-drools - link 2 download
To: rules-users at lists.jboss.org
Message-ID: <1268136685185-437310.post at n3.nabble.com>
Content-Type: text/plain; charset=us-ascii


Hi Kris,

   Please check the following:
   1- I downloaded the code from the SVN
   2- generated the gwt-console-jbpm war using MAVEN
   3- deployed the war using the JBOSS server
   4- Log in screen of the JBPM console appears where I used the user name
and password to login
   5- If wrong username and password provided I have authentication error
   6- If correct username and password provided and after loading the
workspace I have the following ERROR any idea.

   11:58:03,660 ERROR [STDERR] java.lang.NoSuchMethodError:
org.jboss.errai.bus.client.api.builder.MessageBuildParms.noErrorHandling()
Lorg/jboss/errai/bus/client/api/builder/MessageBuildSendable;
11:58:03,661 ERROR [STDERR]     at
org.jboss.errai.bus.server.ServerMessageBusImpl$2.callback(ServerMessageBusImpl.java:202)
11:58:03,663 ERROR [STDERR]     at
org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:322)
11:58:03,668 ERROR [STDERR]     at
org.jboss.errai.bus.server.AsyncDispatcher.dispatchGlobal(AsyncDispatcher.java:45)
11:58:03,669 ERROR [STDERR]     at
org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:176)
11:58:03,672 ERROR [STDERR]     at
org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:96)
11:58:03,675 ERROR [STDERR]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
11:58:03,676 ERROR [STDERR]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
11:58:03,679 ERROR [STDERR]     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
11:58:03,682 ERROR [STDERR]     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
11:58:03,682 ERROR [STDERR]     at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
11:58:03,683 ERROR [STDERR]     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
11:58:03,684 ERROR [STDERR]     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
11:58:03,686 ERROR [STDERR]     at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
11:58:03,686 ERROR [STDERR]     at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
11:58:03,687 ERROR [STDERR]     at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
11:58:03,687 ERROR [STDERR]     at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
11:58:03,688 ERROR [STDERR]     at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
11:58:03,688 ERROR [STDERR]     at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
11:58:03,692 ERROR [STDERR]     at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
11:58:03,694 ERROR [STDERR]     at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
11:58:03,695 ERROR [STDERR]     at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
11:58:03,695 ERROR [STDERR]     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
11:58:03,696 ERROR [STDERR]     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
11:58:03,715 ERROR [STDERR]     at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
11:58:03,716 ERROR [STDERR]     at java.lang.Thread.run(Unknown Source)


Regards,
Ram
-- 
View this message in context:  
http://n3.nabble.com/gwt-console-drools-link-2-download-tp428289p437310.html
Sent from the Drools - User mailing list archive at Nabble.com.


------------------------------

Message: 4
Date: Tue, 9 Mar 2010 14:07:42 +0100
From: "Kris Verlaenen" <kris.verlaenen at cs.kuleuven.be>
Subject: Re: [rules-users] How to add a SkinProvider for the Drools
	Flow	Eclipse Plugin,	since the SkinManager does not have any
	possiblities for adding one ?
To: "Rules Users List" <rules-users at lists.jboss.org>
Message-ID: <F1F7A6C025CE45BE822F2C91DC549CCE at BORG2>
Content-Type: text/plain; format=flowed; charset="iso-8859-15";
	reply-type=original

Rob,

At this point, you'll need to modify the existing one in the Eclipse plugin
and simply add your own one.  Ideally, this would need to be transformed
into an Eclipse extension point, so you can use that to register your own
skin providers as part of a separate, additional plugin.

If you're serious about adding your own skin provider, I can definitely  
help
you out on how to do this.

Kris

----- Original Message -----
From: "Robert" <robert.weissmann at web.de>
To: <rules-users at lists.jboss.org>
Sent: Tuesday, March 09, 2010 1:11 PM
Subject: [rules-users] How to add a SkinProvider for the Drools Flow  
Eclipse
Plugin, since the SkinManager does not have any possiblities for adding one
?



How to add a SkinProvider for the Drools Flow Eclipse Plugin, since the
SkinManager does not have any possiblities for adding one ?

Cheers, Rob.


-- 
Erstellt mit Operas revolution?rem E-Mail-Modul: http://www.opera.com/mail/
_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm


------------------------------

Message: 5
Date: Tue, 9 Mar 2010 13:14:17 +0000
From: Bertrand Grottier <b_grottier at hotmail.com>
Subject: [rules-users] XStream
To: <rules-users at lists.jboss.org>
Message-ID: <SNT122-W1514E83736A486DC9FB9B1F6340 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"


Hello,

My general aim is to load facts from a xml file.
I tried to modify an example furnished in the documentation (Example 3.37.  
Constructing a pipeline).

I get an exception on the following line:
Transformer transformer = PipelineFactory.newXStreamFromXmlTransformer(  
xstream );

The message is the following:
org.drools.ProviderInitializationException: Provider  
org.drools.runtime.pipeline.impl.XStreamTransformerProviderImpl could not  
be set.

Am I going in the right direction ? (I am a newbie)
If yes, have you got an explanation for my problem.
Otherwise, what is the simplest way to achieve my goal ?

Thank you in advance for your help.

Regards,

Beno?t

PS : I am using Drools 5.0
  		 	   		
_________________________________________________________________
D?couvrez comment SURFER DISCRETEMENT sur un site de rencontres !
http://clk.atdmt.com/FRM/go/206608211/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:  
http://lists.jboss.org/pipermail/rules-users/attachments/20100309/e303faa6/attachment-0001.html

------------------------------

Message: 6
Date: Tue, 9 Mar 2010 14:29:10 +0100
From: "Kris Verlaenen" <kris.verlaenen at cs.kuleuven.be>
Subject: Re: [rules-users] gwt-console-drools - link 2 download
To: "Rules Users List" <rules-users at lists.jboss.org>
Message-ID: <DB057C6976D94289A0443F50A2BA660A at BORG2>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
	reply-type=original

Ram,

You actually need a combination of the gwt-console war (and you need the
drools profile here, not the jbpm one), the gwt-console server war and the
drools integration jar that links the console to our engine.  The drools
build system should do all that for you automatically though.

I'm currently upgrading that to use the latest gwt-console version 2.0.1
(all you have to do is change the 5 poms in the drools-process/gwt-*
projects to use version 2.0.1 instead of 1.1.2 and it should build and open
up just fine).  There are still two issues left though, which I'm trying to
fix asap:
  - the generated server war contains two javassist jars that conflict with
the server ones, but you can just remove those from the jar, trying to get
maven to not put them in there using provided scope
  - the latest guvnor requires authentication for accessing built packages
and the console is not yet using that, so need to fix that first, otherwise
no process list will show up

Kris

----- Original Message -----
From: "ramram" <ramram858 at gmail.com>
To: <rules-users at lists.jboss.org>
Sent: Tuesday, March 09, 2010 1:11 PM
Subject: Re: [rules-users] gwt-console-drools - link 2 download


>  Hi Kris,
>   Please check the following:
>  1- I downloaded the code from the SVN
>  2- generated the gwt-console-jbpm war using MAVEN
>  3- deployed the war using the JBOSS server
>  4- Log in screen of the JBPM console appears where I used the user name
> and password to login
>  5- If wrong username and password provided I have authentication error
>  6- If correct username and password provided and after loading the
> workspace I have the following ERROR any idea.
>   11:58:03,660 ERROR [STDERR] java.lang.NoSuchMethodError:
> org.jboss.errai.bus.client.api.builder.MessageBuildParms.noErrorHandling()
> Lorg/jboss/errai/bus/client/api/builder/MessageBuildSendable;
> 11:58:03,661 ERROR [STDERR]     at
> org.jboss.errai.bus.server.ServerMessageBusImpl$2.callback(ServerMessageBusImpl.java:202)
> 11:58:03,663 ERROR [STDERR]     at
> org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:322)
> 11:58:03,668 ERROR [STDERR]     at
> org.jboss.errai.bus.server.AsyncDispatcher.dispatchGlobal(AsyncDispatcher.java:45)
> 11:58:03,669 ERROR [STDERR]     at
> org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:176)
> 11:58:03,672 ERROR [STDERR]     at
> org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:96)
> 11:58:03,675 ERROR [STDERR]     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> 11:58:03,676 ERROR [STDERR]     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 11:58:03,679 ERROR [STDERR]     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 11:58:03,682 ERROR [STDERR]     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 11:58:03,682 ERROR [STDERR]     at
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 11:58:03,683 ERROR [STDERR]     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 11:58:03,684 ERROR [STDERR]     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 11:58:03,686 ERROR [STDERR]     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> 11:58:03,686 ERROR [STDERR]     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> 11:58:03,687 ERROR [STDERR]     at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
> 11:58:03,687 ERROR [STDERR]     at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> 11:58:03,688 ERROR [STDERR]     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 11:58:03,688 ERROR [STDERR]     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 11:58:03,692 ERROR [STDERR]     at
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> 11:58:03,694 ERROR [STDERR]     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 11:58:03,695 ERROR [STDERR]     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> 11:58:03,695 ERROR [STDERR]     at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> 11:58:03,696 ERROR [STDERR]     at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> 11:58:03,715 ERROR [STDERR]     at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> 11:58:03,716 ERROR [STDERR]     at java.lang.Thread.run(Unknown Source)
>   Regards,
> Ram
> --View this message in context: 
> http://n3.nabble.com/gwt-console-drools-link-2-download-tp428289p437310.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm


------------------------------

Message: 7
Date: Tue, 9 Mar 2010 15:02:28 +0100
From: "Kris Verlaenen" <kris.verlaenen at cs.kuleuven.be>
Subject: Re: [rules-users] XStream
To: "Rules Users List" <rules-users at lists.jboss.org>
Message-ID: <56419286F6D74687AE2AD22DFBBE1102 at BORG2>
Content-Type: text/plain; charset="iso-8859-1"

Bertrand,

You're probably missing the  
org.drools.runtime.pipeline.impl.XStreamTransformerProviderImpl class in  
your classpath?  Make sure you add the drools-transformer-xstream-5.x.jar  
to your classpath.

Kris

   ----- Original Message -----
   From: Bertrand Grottier
   To: rules-users at lists.jboss.org
   Sent: Tuesday, March 09, 2010 2:14 PM
   Subject: [rules-users] XStream


   Hello,

   My general aim is to load facts from a xml file.
   I tried to modify an example furnished in the documentation (Example  
3.37. Constructing a pipeline).

   I get an exception on the following line:
   Transformer transformer = PipelineFactory.newXStreamFromXmlTransformer(  
xstream );

   The message is the following:
   org.drools.ProviderInitializationException: Provider  
org.drools.runtime.pipeline.impl.XStreamTransformerProviderImpl could not  
be set.

   Am I going in the right direction ? (I am a newbie)
   If yes, have you got an explanation for my problem.
   Otherwise, what is the simplest way to achieve my goal ?

   Thank you in advance for your help.

   Regards,

   Beno?t

   PS : I am using Drools 5.0


------------------------------------------------------------------------------
   Envie de naviguer sur Internet sans laisser de trace? La solution avec  
Internet Explorer 8


------------------------------------------------------------------------------


   _______________________________________________
   rules-users mailing list
   rules-users at lists.jboss.org
   https://lists.jboss.org/mailman/listinfo/rules-users

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
-------------- next part --------------
An HTML attachment was scrubbed...
URL:  
http://lists.jboss.org/pipermail/rules-users/attachments/20100309/585bbe84/attachment.html

------------------------------

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


End of rules-users Digest, Vol 40, Issue 27
*******************************************



More information about the rules-users mailing list