Skip to content

Trivial Miner

Dependency

To use these algorithms in your Java Maven project it is necessary to include, in the pom.xml file, the dependency:

<dependency>
    <groupId>com.github.beamline</groupId>
    <artifactId>discovery-trivial</artifactId>
    <version>master-SNAPSHOT</version>
</dependency>
See the introduction page for further instructions.

Usage

This miner extracts just a dependency map leveraging the directly follows relations observed in the stream. Once a XesSource is available, the miner can be configured and used as follows:

DirectlyFollowsDependencyDiscoveryMiner miner = new DirectlyFollowsDependencyDiscoveryMiner();
miner.setModelRefreshRate(1); // configure how ofter the mining algorithm should emit a new model
miner.setMinDependency(0.8); // configure the dependency threshold

StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
env
    .addSource(new StringTestSource("ABCDF", "ABCEF"))
    .keyBy(BEvent::getProcessName)
    .flatMap(miner)
    .addSink(new SinkFunction<ProcessMap>(){
        public void invoke(ProcessMap value, Context context) throws Exception {
            value.generateDot().exportToSvg(new File("output.svg"));
        };
    });
env.execute();

Scientific literature

The techniques implemented in this package are described in: