Posts

Drools rules decision tables implementation

Image
Drools decision table Implementation with xls files import java.util.HashMap; import java.util.Map; import org.drools.KnowledgeBase; import org.drools.KnowledgeBaseFactory; import org.drools.builder.DecisionTableConfiguration; import org.drools.builder.DecisionTableInputType; import org.drools.builder.KnowledgeBuilder; import org.drools.builder.KnowledgeBuilderError; import org.drools.builder.KnowledgeBuilderErrors; import org.drools.builder.KnowledgeBuilderFactory; import org.drools.builder.ResourceType; import org.drools.io.ResourceFactory; import org.drools.logger.KnowledgeRuntimeLogger; import org.drools.logger.KnowledgeRuntimeLoggerFactory; import org.drools.runtime.StatefulKnowledgeSession; public class BusinessRurlesDroolsService { Map<String, KnowledgeBase> map = new HashMap<String, KnowledgeBase>(); public void init() { try { System.out.println("BusinessRurlesDroolsService -------> Init execution started-----------------------...

about me

Raja Maragani, Linköping Sweden. Expert in Java and related Frameworks. Working at the CI/CD organization responsible for developing, Support, Architecture. Involved in the development of Eiffel, a continuous integration framework.  The framework is used widely within Ericsson RnD and is currently moving to the open source arena, https://github.com/Ericsson/eiffel. Involved in Insurance product development with Single-page Application and Microservices.

Jquery validator for Phone Number and confirm password

Jquery validator The Jquery validator we can implement validations in two ways: Inline validations Validate method for more information go through the below link http://jqueryvalidation.org/documentation/ Here give code work for the valid phone number and confirm the password. Script < link rel = "stylesheet" type = "text/css" href = "css/jquery-ui-1.10.3.css" > < script src = "js/jquery.validate.js" type = "text/javascript" ></ script > $ ( "#formsubmit" ).live( 'click' , function () {      $ ( "#qApply" ).validate({           rules: {              phonenumber: {                 min:7000000000                    },          ...

File Upload using the JQuery and spring

File Upload function using the JQuery  The below function can used for the upload a file using jquery. For large files it may show error like script execution take more time and some times its hanges. $(document).on( 'change' , '.uploaddocument' , function () {                 var oMyForm = new FormData();                 oMyForm.append( "file" , this .files[0]);                 $.ajax({                   url: 'uploaddocument.html' ,                   data: oMyForm,                   dataType: 'text' , ...