expose rest API for Guided Rule template over admin console application
This commit is contained in:
parent
a0499d8e3a
commit
46ae8eb6dd
22 changed files with 1216 additions and 245 deletions
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>drools-framework-admin-console-parent</artifactId>
|
||||
<groupId>com.pymmasoftware.jbpm</groupId>
|
||||
<version>1.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>drools-framework-admin-dto</artifactId>
|
||||
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
package org.chtijbug.drools.console.dto;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Hashtable;
|
||||
import java.util.List;
|
||||
|
||||
public class GuidedRuleTemplate {
|
||||
|
||||
private String workbenchName;
|
||||
|
||||
private String spaceName;
|
||||
|
||||
private String projectName;
|
||||
|
||||
private String name;
|
||||
|
||||
private Hashtable definitionList = new Hashtable();
|
||||
|
||||
private List<GuidedRuleTemplateDataRow> rows = new ArrayList<>();
|
||||
|
||||
public String getWorkbenchName() {
|
||||
return workbenchName;
|
||||
}
|
||||
|
||||
public void setWorkbenchName(String workbenchName) {
|
||||
this.workbenchName = workbenchName;
|
||||
}
|
||||
|
||||
public String getSpaceName() {
|
||||
return spaceName;
|
||||
}
|
||||
|
||||
public void setSpaceName(String spaceName) {
|
||||
this.spaceName = spaceName;
|
||||
}
|
||||
|
||||
public String getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Hashtable getDefinitionList() {
|
||||
return definitionList;
|
||||
}
|
||||
|
||||
public void setDefinitionList(Hashtable definitionList) {
|
||||
this.definitionList = definitionList;
|
||||
}
|
||||
|
||||
public List<GuidedRuleTemplateDataRow> getRows() {
|
||||
return rows;
|
||||
}
|
||||
|
||||
public void setRows(List<GuidedRuleTemplateDataRow> rows) {
|
||||
this.rows = rows;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package org.chtijbug.drools.console.dto;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Hashtable;
|
||||
import java.util.List;
|
||||
|
||||
public class GuidedRuleTemplateDataRow {
|
||||
|
||||
private String lineID;
|
||||
|
||||
private Hashtable dataList = new Hashtable();
|
||||
|
||||
public String getLineID() {
|
||||
return lineID;
|
||||
}
|
||||
|
||||
public void setLineID(String lineID) {
|
||||
this.lineID = lineID;
|
||||
}
|
||||
|
||||
public Hashtable getDataList() {
|
||||
return dataList;
|
||||
}
|
||||
|
||||
public void setDataList(Hashtable dataList) {
|
||||
this.dataList = dataList;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
package org.chtijbug.drools.console.dto;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class VariableData {
|
||||
private String varName;
|
||||
private String stringValue;
|
||||
private Long longValue;
|
||||
private Double doubleValue;
|
||||
private BigDecimal bigDecimalValue;
|
||||
|
||||
public String getVarName() {
|
||||
return varName;
|
||||
}
|
||||
|
||||
public void setVarName(String varName) {
|
||||
this.varName = varName;
|
||||
}
|
||||
|
||||
public String getStringValue() {
|
||||
return stringValue;
|
||||
}
|
||||
|
||||
public void setStringValue(String stringValue) {
|
||||
this.stringValue = stringValue;
|
||||
}
|
||||
|
||||
public Long getLongValue() {
|
||||
return longValue;
|
||||
}
|
||||
|
||||
public void setLongValue(Long longValue) {
|
||||
this.longValue = longValue;
|
||||
}
|
||||
|
||||
public Double getDoubleValue() {
|
||||
return doubleValue;
|
||||
}
|
||||
|
||||
public void setDoubleValue(Double doubleValue) {
|
||||
this.doubleValue = doubleValue;
|
||||
}
|
||||
|
||||
public BigDecimal getBigDecimalValue() {
|
||||
return bigDecimalValue;
|
||||
}
|
||||
|
||||
public void setBigDecimalValue(BigDecimal bigDecimalValue) {
|
||||
this.bigDecimalValue = bigDecimalValue;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
package org.chtijbug.drools.console.dto;
|
||||
|
||||
public class VariableDefinition {
|
||||
private String varName;
|
||||
private String dataType;
|
||||
private String factType;
|
||||
private String factField;
|
||||
private String operator;
|
||||
|
||||
public String getVarName() {
|
||||
return varName;
|
||||
}
|
||||
|
||||
public void setVarName(String varName) {
|
||||
this.varName = varName;
|
||||
}
|
||||
|
||||
public String getDataType() {
|
||||
return dataType;
|
||||
}
|
||||
|
||||
public void setDataType(String dataType) {
|
||||
this.dataType = dataType;
|
||||
}
|
||||
|
||||
public String getFactType() {
|
||||
return factType;
|
||||
}
|
||||
|
||||
public void setFactType(String factType) {
|
||||
this.factType = factType;
|
||||
}
|
||||
|
||||
public String getFactField() {
|
||||
return factField;
|
||||
}
|
||||
|
||||
public void setFactField(String factField) {
|
||||
this.factField = factField;
|
||||
}
|
||||
|
||||
public String getOperator() {
|
||||
return operator;
|
||||
}
|
||||
|
||||
public void setOperator(String operator) {
|
||||
this.operator = operator;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue