xes

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

xes

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertXESToCSV

func ConvertXESToCSV(header, keys []string, xes XES, csvFilePath string) error

ConvertXESToCSV converts an XES file to a CSV file

func GetFileColumns

func GetFileColumns(file io.Reader) ([]string, string, error)

GetFileColumns gets the column names of a file.

Types

type DateAttribute

type DateAttribute struct {
	Key   string `xml:"key,attr"`
	Value string `xml:"value,attr"`
}

DateAttribute represents a date attribute in an event

type Event

type Event struct {
	StringAttributes []StringAttribute `xml:"string"`
	DateAttributes   []DateAttribute   `xml:"date"`
}

Event represents an event in the XES file

type StringAttribute

type StringAttribute struct {
	Key   string `xml:"key,attr"`
	Value string `xml:"value,attr"`
}

StringAttribute represents a string attribute in an event

type Trace

type Trace struct {
	Event            []Event           `xml:"event"`
	StringAttributes []StringAttribute `xml:"string"`
}

Trace represents a trace in the XES file

type XES

type XES struct {
	XMLName xml.Name `xml:"log"`
	Trace   []Trace  `xml:"trace"`
}

XES represents the structure of the XES file

func GetXESColumn

func GetXESColumn(file *multipart.FileHeader) ([]string, []string, XES, error)

GetXESColumn get XES column name

Jump to

Keyboard shortcuts

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