model

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectOperator

type CollectOperator string
const (
	List  CollectOperator = "List Operator"
	Sum   CollectOperator = "Sum Operator"
	Min   CollectOperator = "Min Operator"
	Max   CollectOperator = "Max Operator"
	Count CollectOperator = "Count Operator"
)

type DTableStandard

type DTableStandard string
const (
	GRULE  DTableStandard = "GRULE"
	DMN    DTableStandard = "DMN (OMG)"
	DROOLS DTableStandard = "DROOLS (REDHAT)"
)

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

func CreateEntry

func CreateEntry(exp string, exprLang ExpressionLanguage) Entry

func (Entry) Expression

func (e Entry) Expression() string

func (Entry) ExpressionLanguage

func (e Entry) ExpressionLanguage() ExpressionLanguage

type ExpressionLanguage

type ExpressionLanguage string
const (
	SFEEL      ExpressionLanguage = "sFeel"
	FEEL       ExpressionLanguage = "Feel"
	Javascript ExpressionLanguage = "javascript"
	Python     ExpressionLanguage = "python"
	Groovy     ExpressionLanguage = "groovy"
	JRuby      ExpressionLanguage = "jruby"
	Juel       ExpressionLanguage = "juel"
)

type Field

type Field struct {
	Name string
	Key  string
	Typ  VariableTyp
}

type HitPolicy

type HitPolicy string
const (
	Unique      HitPolicy = "Unique"   // Rules do not overlap. Only a single rule can match.
	First       HitPolicy = "First"    // Rules are evaluated from top to bottom. Rules may overlap, but only the first match counts.
	Priority    HitPolicy = "Priority" // Rule outputs are prioritized. Rules may overlap, but only the match with the highest output priority counts.
	Any         HitPolicy = "Any"      // Multiple matching rules must not make a difference: all matching rules must lead to the same output.
	RuleOrder   HitPolicy = "Rule Order"
	OutputOrder HitPolicy = "Output Order"
	Collect     HitPolicy = "Collect" // The output of all matching rules is aggregated by means of an operator:
)

type OutputFormat

type OutputFormat string
const (
	GRL  OutputFormat = "GRL"
	JSON OutputFormat = "JSON"
)

type Rule

type Rule struct {
	Description   string
	InputEntries  []Entry
	OutputEntries []Entry
}

type TableData

type TableData struct {
	Key              string
	Name             string
	HitPolicy        HitPolicy
	CollectOperator  CollectOperator
	NotationStandard DTableStandard
	Interferences    bool

	InputFields  []Field
	OutputFields []Field
	Rules        []Rule
}

type VariableTyp

type VariableTyp string
const (
	String   VariableTyp = "string"
	Boolean  VariableTyp = "boolean"
	Integer  VariableTyp = "integer"
	Float    VariableTyp = "float"
	Long     VariableTyp = "long"
	Double   VariableTyp = "double"
	DateTime VariableTyp = "date"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL