Re: [rules-dev] [rules-users] Maven Plugin to build pkg files
by Bernd Rücker
Hi Eric.
Thanks for the answer. Basically I developed that code yesterday, yes. I
did it somehow similar to the Ant Task. But I had some serious
serialization issues as posted yesterday. Maybe you have an idea about
that?
> If one doesnt exist and theres enough interest, we
> could use what I have as a starting point as an open source plugin for
it.
You mean in the drools codebase? Basically, yes, sure. Should be no
problem to contribute it. Just tell me how to progress in that area.
Cheers
Bernd
Von: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] Im Auftrag von Miles, Eric
Gesendet: Mittwoch, 2. September 2009 14:27
An: Rules Users List
Betreff: Re: [rules-users] Maven Plugin to build pkg files
Bernd,
Something didnt exist as of Drools 4.x (at least nothing official). With
the latest release of Drools, the amount of code needed to be written to
compile is actually pretty small. Making a Maven plugin would not be that
difficult. Ive made one that is just a couple of hundred lines long and
most of that is the Maven framework glue.
If one doesnt exist and theres enough interest, we could use what I have
as a starting point as an open source plugin for it.
Eric
_____
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Bernd Rücker
Sent: Monday, August 31, 2009 10:57 AM
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Maven Plugin to build pkg files
Hi all.
I wonder if there exists a maven plugin to build pkg files out of the rule
base during the maven packaging. Because we dont use the Guvnor
repository in this project and I want to package the pkg files with the
overall ear.
I searched a bit, but didnt found anything
Okay, not hard to write
ourself, but would be nicer to reuse existing stuff
Thanks
Bernd
15 years, 3 months
Re: [rules-dev] Root-Cause is swallowed
by Michael Neale
yes, or nest the underlying exception ? - just checked in that change.
Some of that code probably pre-dates java 5 where nesting exceptions
became possible and common (from memory).
Thanks for the tip.
Michael.
On Wed, Sep 2, 2009 at 3:11 AM, Bernd Rücker<bernd.ruecker(a)camunda.com> wrote:
> Hey guys,
>
> just stumbled over this code, it swallowes the root exception (which was
> some Classloading issue). Would be much better to throw it as root cause,
> so the developer can get a clue what's wrong...
>
> Or file a JIRA for it?
>
> Cheers
> Bernd
>
> -----Ursprüngliche Nachricht-----
>
> + private static void loadProvider() {
> + try {
> + // we didn't find anything in properties so lets try and us
> reflection
> + Class<DecisionTableProvider> cls = (
> Class<DecisionTableProvider> ) Class.forName(
> "org.drools.decisiontable.DecisionTableProviderImpl" );
> + setDecisionTableProvider( cls.newInstance() );
> + } catch ( Exception e2 ) {
> + throw new ProviderInitializationException( "Provider
> org.drools.decisiontable.DecisionTableProviderImpl could not be set." );
> + }
>
>
> [DEBUG] Trace
> org.drools.ProviderInitializationException: Provider
> org.drools.decisiontable.DecisionTableProviderImpl could not be set.
> at
> org.drools.compiler.DecisionTableFactory.loadProvider(DecisionTableFactory
> .java:36)
> at
> org.drools.compiler.DecisionTableFactory.getDecisionTableProvider(Decision
> TableFactory.java:25)
> at
> org.drools.compiler.DecisionTableFactory.loadFromInputStream(DecisionTable
> Factory.java:16)
> at
> org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.jav
> a:485)
> at
> org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java
> :36)
> at
> com.oneandone.maven.plugins.CreateRulesPackageMojo.createDroolsPackage(Cre
> ateRulesPackageMojo.java:130)
> at
> com.oneandone.maven.plugins.CreateRulesPackageMojo.execute(CreateRulesPack
> ageMojo.java:75)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMana
> ger.java:451)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLi
> fecycleExecutor.java:558)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
> DefaultLifecycleExecutor.java:512)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLif
> ecycleExecutor.java:482)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFa
> ilures(DefaultLifecycleExecutor.java:330)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(De
> faultLifecycleExecutor.java:227)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecyc
> leExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
> pl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
--
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com
15 years, 3 months
Evaluation of Drool Rule Engine with Drools Flow
by premkumar
Hi,
We are evaluating the Drools Rule engine with Drools flow as work flow
in web based j2ee project. The following are important criteria
1) Customize Rules and Workflow through Web UI
2) Admin user can see all of the items in workflow in UI (View job queue:
current queue, executed jobs, exceptions)
3) Integrate with Calendaring/Scheduling
4) Versioning of process definitions
5) Ability to migrate process instances between process versions
6) Rule Actions can be web services
7) Web Service can be rule input
8) Web service can be actor in process
9) Delete/cancel process definitions at runtime
10) Conditional elements nesting
11) Control steps should allow parallel flows within steps for synchronizing
of joining parallel flows
12) process simulation
Please can any one provide your inputs on the above mentioned areas to help
us this evaluation process.
Thanks
Prem
--
View this message in context: http://www.nabble.com/Evaluation-of-Drool-Rule-Engine-with-Drools-Flow-tp...
Sent from the drools - dev mailing list archive at Nabble.com.
15 years, 4 months
Root-Cause is swallowed
by Bernd Rücker
Hey guys,
just stumbled over this code, it swallowes the root exception (which was
some Classloading issue). Would be much better to throw it as root cause,
so the developer can get a clue what's wrong...
Or file a JIRA for it?
Cheers
Bernd
-----Ursprüngliche Nachricht-----
+ private static void loadProvider() {
+ try {
+ // we didn't find anything in properties so lets try and us
reflection
+ Class<DecisionTableProvider> cls = (
Class<DecisionTableProvider> ) Class.forName(
"org.drools.decisiontable.DecisionTableProviderImpl" );
+ setDecisionTableProvider( cls.newInstance() );
+ } catch ( Exception e2 ) {
+ throw new ProviderInitializationException( "Provider
org.drools.decisiontable.DecisionTableProviderImpl could not be set." );
+ }
[DEBUG] Trace
org.drools.ProviderInitializationException: Provider
org.drools.decisiontable.DecisionTableProviderImpl could not be set.
at
org.drools.compiler.DecisionTableFactory.loadProvider(DecisionTableFactory
.java:36)
at
org.drools.compiler.DecisionTableFactory.getDecisionTableProvider(Decision
TableFactory.java:25)
at
org.drools.compiler.DecisionTableFactory.loadFromInputStream(DecisionTable
Factory.java:16)
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.jav
a:485)
at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java
:36)
at
com.oneandone.maven.plugins.CreateRulesPackageMojo.createDroolsPackage(Cre
ateRulesPackageMojo.java:130)
at
com.oneandone.maven.plugins.CreateRulesPackageMojo.execute(CreateRulesPack
ageMojo.java:75)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMana
ger.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLi
fecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLif
ecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFa
ilures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(De
faultLifecycleExecutor.java:227)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecyc
leExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
pl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
15 years, 4 months
Message could not be delivered
by Mail Delivery Subsystem
��G�X�~�r�_��1��!R|G������������G�(����v����N�a���y�{
��N��hX���H�����������/�^���[$���y��:��se��������.���}q������C�� d�;������A���8w�>i�j��k�1�B�<���b��8T�U�x�
�B�]����
��{��1��!B���yTg�hK8���K���tF���S��V��
�z��ok4TG� {���w�
~v�����]����rs��}�l���|��1����Ys���G�yu��#]�����iE��.��\�^�z������D,��l��fN����K�%~�����<"z�
����<�!v^z�I���A� �P)KQ��������������R
u��16�;�����p
]���y����%���P��Pa�����c���.w�.�7���a�e����_l��L����rQ��V�K;�������2���"�[��S�w���2����A'fW�hs�
B��M�M�"��G�����7W���Y�(���wjH�K�c��y�#�(����7!
����{������[*��H��"�(��SPi�F���z�)^����������1>����;�Mx��U�����OW�v�#�p��R�V)'��
�*r���p;����6��xUG�(��U�V�����vD�K�?������h�p�x�Q���~�Y���S7�H]q�N��5�
�4���
�G���o!o����Li�4��)�c�m�m6�`q��������r(
b8�Pr��5��1����3�y�t�_������&��`l������K���U�eS�[���E�N�N�:�x_���;K�{
o�[�C����O��
�
�����hI���
��B ���v�/x��S}�g�&Uuk'!�(��(v���������.9��%��l�-E������I�
&�������
;"���f:�k�����`��Z�����RK��tX0�lP��|��?�t��%�'B%�J�K�.m�^��x�#�d~T
�3Nb��9mI�'�c�5�������
�r���c��~'Y
�K\����v�'&}I��gh��
���#-�H� ,��Ub�ju�Bl���V'���-O�{B�1���$��1��pH�K�(��g����\e�p������#�/����|CZE��m��z���L��H00#�;-V!h&j�D�i�5�vqs�\sQ�i�{�������w5}��nK��)A��.Z������m����Lr���o�9���#����u�
�P��N�<�<SNe���#��
"��y���C��8�$�`D�t��e3xY�A�� �}9GR
���(�4�(~�S�:�)L/{�����6��9��Uj��8BS�V�<�����p:hp�$�`swB���������"�t�lU�����\����9�yb�hzH�Y��!:����4#��`$���oz�:��#4����l��u����x���H6��q���$o_�RH22Qv�c���2o�J����H$A4��$|���������q�NC\QN.�%�K"bf����J��a�h��������r
E�}k�B��3��k�t������)7s�dH
���!�lo�$;��V�Wuy��N?�[���3N���L9�������5��b����o�6�H�E1zm�W��3�1�Kp�0��(��(����������q;���.�99�� �1z.���]d:�tE���v\"��TN#��DcK`���l�������Y�EG��~�V��N��`��\);K>�����C����L�����r�����v����7�t�H�}CqQ��� *S�[{��^i9�mG��>z��z���
A�2�����?��z���?o�fl�M��~�:���,�W��U��
{nly_Y|�-�X���y��8���3��Q�2�\bb����r��32������m�]�5�'EO���J&
�S���i>���c����W��?KBT���2b.���gixI������oF��8�K-8Ie���2g���li�>����30e���r��4��^n�y��0[��5Y�A<W/z�[���"�Q�p���!x�*�c��{:�/��\��i����_.}l1�0OB�����D�Z����/X��w�s���P}���%>��l}x(�W6� ��?�bF���J��c��c�oC�"����V�f�[~g
`�pZ��Z�������!��e��w��G������)19�o���}�s�H������i6k��d���m����O�}� 8�4��'(���c�
��p��u�b��)���I
������3��s�^Y�
-�CY�p��\opQ���|U�Z.��0M��MU�oH��>��)�5�`�
F����f�n�0��_��D��������0�i����H��bz�����u�
�~�_,Clm-�)t�����H;j���{)�k�r�;�_��\��t��Hr6*W/���B��/�T%�:j�Q��k�1�S�"o�����
���L�;�E�l�
O�&��m>���o�`��y�O�o��S����"�X20u<�
1y#�|,����
PGl}�xx/������J��MDmbUN�;!��� ��7�3�����DDhY�_��I�o�5����W�����I]�k��O��icwp�;���#������aK�R���{�us����#g��/S�T�Y���i��X��8��'���r�',�3.�����l:#��n_���k�����o��q��#��6?l)���r)'��M{��,��"\d
�|�i�����uVCS���B�f�<��y}4�1�*�]��
4*����F��\B��������F!��]u}NX>�x?cO�k{B;u���T��������<�����(���M\��F�r����S�9�A>�����R10��5G.���c�����
���6��$�\�W
0X1N��87�D�w��5�L�"r
Uz��?��h�
15 years, 4 months