Log

Finally, a log combines multiple instances of one workflow in an ordered list. It is repre- sented by the class Log and additionally contains an object of LogSummary, which contains meta information about the log traces like the distinct sets of activities, subjects, and roles.

The following code creates a log and adds the formerly defined log traces:

Log<LogEntry> log = new Log<LogEntry>();
log.addTrace(traceA);
log.addTrace(traceB);
log.addTrace(traceC);

The summary now contains some meta information of the log traces and their entries:

System.out.println(log.getSummary().getActivities());
// [act_3, act_2, act_1, act_4, act_5, act_6, act_7, act_8]
System.out.println(log.getSummary().getOriginators());
// [null, sub_1]
System.out.println(log.getSummary().getRoles());
// [null, r1]
System.out.println(log.getSummary().getAverageTraceLength());
// 2.6666666666666665