2 import "Simantics/Ontologies"
4 importJava "org.simantics.event.view.EventView" where
5 getEventLogs :: () -> <ReadGraph> [Resource]
7 findEvents :: <ReadGraph, Proc> [Resource]
10 slices = map findEventSlices logs
12 events = map findEventsFromSlice slices
16 findEventSlices :: Resource -> <ReadGraph, Proc> [Resource]
17 findEventSlices log = do
18 collectionToList $ objects_ log L0.ConsistsOf
21 findEventsFromSlice :: Resource -> <ReadGraph, Proc> [Resource]
22 findEventsFromSlice slice = do
23 collectionToList (objects_ slice L0.ConsistsOf)
25 importJava "org.simantics.event.util.EventExporter" where
27 exportCurrentEvents "\t" "X:/events.txt"
29 exports the currently visible events into the specified
30 text file using the specified column separator string.
31 This function should be used when invoking outside of
32 a database transaction.
34 exportCurrentEvents :: String -> String -> ()
37 exportCurrentEventsG "\t" "X:/events.txt"
39 exports the currently visible events into the specified
40 text file using the specified column separator string.
41 This variant must be used when invoking the method with
44 exportCurrentEventsG :: String -> String -> <ReadGraph> ()