ebi_objects 0.3.182

Objects for Ebi - a stochastic process mining utility
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{ActivityKey, ebi_objects::event_log_ocel::EventLogOcel};

/// OCEL, object_type, resource attribute, timestamp attribute
impl From<(process_mining::OCEL, String, Option<String>, String)> for EventLogOcel {
    /// it is the responsibility of the caller to ensure the second argument is a valid object_type
    fn from(value: (process_mining::OCEL, String, Option<String>, String)) -> Self {
        let mut result = Self {
            rust4pm_log: value.0,
            activity_key: ActivityKey::new(),
            case_object_type: value.1,
            resource_object_type: value.2,
            time_attribute: value.3,
        };
        result.create_activity_key();
        result
    }
}