[rules-users] Guvnor bulk importer problem

Toni Rikkola toni.rikkola at gmail.com
Mon Jan 24 01:23:15 EST 2011


Hi,

I made a Jira for this so that we can use your work to improve our bulk importer.
https://issues.jboss.org/browse/GUVNOR-1169

Let me know if you want to patch the drools bulk importer to support your changes.


Toni Rikkola

On Jan 23, 2011, at 12:01 AM, vasilievip wrote:

> 
> Attaching my version of repository xml generator for Guvnor based on drools
> repository api.
> RepositoryGenerator scans specified folders and generates packages into
> repository then export it as xml into target folder (then unit tests loading
> this exported file and perform package testing). 
> 
> http://drools-java-rules-engine.46999.n3.nabble.com/file/n2310754/RepositoryGenerator.java
> RepositoryGenerator.java 
> http://drools-java-rules-engine.46999.n3.nabble.com/file/n2310754/KnowledgeGenerator.java
> KnowledgeGenerator.java 
> http://drools-java-rules-engine.46999.n3.nabble.com/file/n2310754/RulesGenerator.java
> RulesGenerator.java 
> 
> Generator can be executed with maven build:
>        <dependency>
>            <groupId>org.drools</groupId>
>            <artifactId>drools-repository</artifactId>  
>            <exclusions>
>                <exclusion>
>                    <groupId>org.hibernate</groupId>
>                    <artifactId>hibernate</artifactId>
>                </exclusion>
>                <exclusion>
>                    <groupId>org.hibernate</groupId>
>                    <artifactId>hibernate-entitymanager</artifactId>
>                </exclusion>
>            </exclusions>
>        </dependency>
> ...
> 
>           <plugin>
>                <artifactId>maven-dependency-plugin</artifactId>
>                    <executions>
>                        <execution>
>                            <phase>compile</phase>
>                            <goals>
>                                <goal>copy-dependencies</goal>
>                            </goals>
>                            <configuration>
> 
> <outputDirectory>${project.build.directory}/model_to_guvnor</outputDirectory>
> 
> <includeArtifactIds>mycompany-model</includeArtifactIds>
>                            </configuration>
>                        </execution>
>                    </executions>
>            </plugin>       
> ...
>           <plugin>  
>              <groupId>org.codehaus.mojo</groupId>  
>              <artifactId>exec-maven-plugin</artifactId>  
>              <executions>  
>               <execution>  
>                <phase>compile</phase>  
>                <goals>  
>                    <goal>java</goal>  
>                </goals>  
>                <configuration>  
>                 <mainClass>com.mycompany.RepositoryGenerator</mainClass>  
>                 <arguments>  
>                  <argument>${project.build.directory}/classes</argument>  
> 
> <argument>${project.build.directory}/model_to_guvnor</argument>
>                  <argument>${app-version}</argument>
>                  <argument>${app-build-date}</argument>
>                 </arguments>  
>                </configuration>  
>               </execution>  
>              </executions>  
>             </plugin>  
> -- 
> View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-bulk-importer-problem-tp1488360p2310754.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





More information about the rules-users mailing list