How to deploy Drools Flow and rules by my web application

后端 未结 1 1088
谎友^
谎友^ 2021-02-11 03:04

I\'ve just now started my new project. My project manager said that Drools is the new technology and we will include drools flow and rules and will integrate our web application

1条回答
  •  后悔当初
    2021-02-11 03:32

    It depends on what technologies you use. If, for example, you use Java+Maven+Spring, you first need to include Drools dependencies:

        
            org.drools
            drools-core
            ${drools.version}
        
        
            org.drools
            drools-compiler
            ${drools.version}
        
        
            org.drools
            drools-spring
            ${drools.version}
        
    

    Define the application context:

    
    
    
    
        
            
                
            
        
    
        
    
    
    

    Then you can inject ksession1 as a bean.

    0 讨论(0)
提交回复
热议问题