Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-4962

[GSS](7.z) A Spreadsheet decision tables does not convert to a DRL file correctly when a Function is being used in the RuleTable constraints

    XMLWordPrintable

Details

    • 2020 Week 04-06 (from Jan 20)
    • NEW
    • NEW

    Description

      1. Create a "test_functions" project in the "MySpace" space.
      2. Create a "Person" Data Object

      package com.myspace.test_functions;
      
      /**
       * This class was automatically generated by the data modeler tool.
       */
      
      public class Person implements java.io.Serializable {
      
      	static final long serialVersionUID = 1L;
      
      	@org.kie.api.definition.type.Label("Gender")
      	private java.lang.String gender;
      	@org.kie.api.definition.type.Label("Is Married")
      	private java.lang.Boolean married;
      	@org.kie.api.definition.type.Label("Name")
      	private java.lang.String name;
      
      	@org.kie.api.definition.type.Label(value = "Message")
      	private java.lang.String message;
      
      	public Person() {
      	}
      
      	public void setHelloMsg(String arg) {
      		this.message = arg;
      	}
      	public java.lang.String getGender() {
      		return this.gender;
      	}
      
      	public void setGender(java.lang.String gender) {
      		this.gender = gender;
      	}
      
      	public java.lang.Boolean getMarried() {
      		return this.married;
      	}
      
      	public void setMarried(java.lang.Boolean married) {
      		this.married = married;
      	}
      
      	public java.lang.String getName() {
      		return this.name;
      	}
      
      	public void setName(java.lang.String name) {
      		this.name = name;
      	}
      
      	public java.lang.String getMessage() {
      		return this.message;
      	}
      
      	public void setMessage(java.lang.String message) {
      		this.message = message;
      	}
      
      	public Person(java.lang.String gender, java.lang.Boolean married,
      			java.lang.String name, java.lang.String message) {
      		this.gender = gender;
      		this.married = married;
      		this.name = name;
      		this.message = message;
      	}
      
      }
      

      3. Import the "test_functions.xlsx"
      4. Convert the "test_functions.xlsx"
      5. Check the result files

      Attachments

        Issue Links

          Activity

            People

              trikkola Toni Rikkola
              trikkola Toni Rikkola
              Jozef Marko Jozef Marko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: