Skip to main content

slim_ocel_bindings

process_mining::bindings::slim_ocel_bindings

Functions in this Module(31)

locel_get_ev_attr_val

Get the value of a specific event attribute by name
Source
fn locel_get_ev_attr_val(ocel*: SlimLinkedOCEL, ev*: i64<uint>, attr_name*: String)Nullable_OCELAttributeValue

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_ev_attr_val(ocel, 1, 'price')
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:241

locel_get_ev_type

Get the event type specification for a given type name
Source
fn locel_get_ev_type(ocel*: SlimLinkedOCEL, ev_type*: String)Nullable_OCELType

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_ev_type(ocel, 'pay order')
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:131

locel_get_evs_of_type

Get all event indices of a given event type
Source
fn locel_get_evs_of_type(ocel*: SlimLinkedOCEL, ev_type*: String)Vec<EventIndex>

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_evs_of_type(ocel, 'pay order')
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:143

locel_get_ob_attr_vals

Get all values (with timestamps) of a specific object attribute by name
Source
fn locel_get_ob_attr_vals(ocel*: SlimLinkedOCEL, ob*: i64<uint>, attr_name*: String)Vec<(DateTime, OCELAttributeValue)>

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_ob_attr_vals(ocel, 1, 'price')
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:251

locel_add_object

Add a new object to a SlimLinkedOCEL
The attribute order must match the attributes defined on the corresponding object type.
Returns the ObjectIndex of the newly added object, or None if the object type is unknown or the id is already taken.
Source
fn locel_add_object(ocel*: SlimLinkedOCEL, object_type*: String, id: Option<String>, attributes: Vec<Vec<(DateTime, OCELAttributeValue)>>, relationships: Vec<(String, ObjectIndex)>)Nullable_ObjectIndex

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_add_object(ocel, 'order', '893f8ab9', [[['2020-01-01T10:30:00Z', 1]]], [['example', 1]])
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:69

locel_get_ob_type

Get the object type specification for a given type name
Source
fn locel_get_ob_type(ocel*: SlimLinkedOCEL, ob_type*: String)Nullable_OCELType

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_ob_type(ocel, 'order')
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:137
fn locel_add_object_type(ocel*: SlimLinkedOCEL, object_type*: String, attributes: Vec<OCELTypeAttribute>)()

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

r4pm.bindings.locel_add_object_type(ocel, 'order', [{"name": 'example', "type": 'string'}])
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:38

locel_add_o2o

Add an O2O (object-to-object) relationship with the specified qualifier
Source
fn locel_add_o2o(ocel*: SlimLinkedOCEL, from_obj*: i64<uint>, to_obj*: i64<uint>, qualifier*: String)()

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

r4pm.bindings.locel_add_o2o(ocel, 1, 1, 'places')
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:94

locel_get_ob_type_of

Get the object type of an object
Source
fn locel_get_ob_type_of(ocel*: SlimLinkedOCEL, ob*: i64<uint>)String

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_ob_type_of(ocel, 1)
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:185

locel_add_e2o

Add an E2O (event-to-object) relationship with the specified qualifier
Source
fn locel_add_e2o(ocel*: SlimLinkedOCEL, event*: i64<uint>, object*: i64<uint>, qualifier*: String)()

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

r4pm.bindings.locel_add_e2o(ocel, 1, 1, 'places')
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:83

locel_delete_e2o

Remove the E2O relationship between the given event and object
Source
fn locel_delete_e2o(ocel*: SlimLinkedOCEL, event*: i64<uint>, object*: i64<uint>)()

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

r4pm.bindings.locel_delete_e2o(ocel, 1, 1)
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:105

locel_get_o2o

Get the O2O (object-to-object) relationships of an object as (qualifier, object_index) pairs
Source
fn locel_get_o2o(ocel*: SlimLinkedOCEL, ob*: i64<uint>)Vec<(String, ObjectIndex)>

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_o2o(ocel, 1)
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:213

locel_add_event

Add a new event to a SlimLinkedOCEL
The attribute order must match the attributes defined on the corresponding event type.
Returns the EventIndex of the newly added event, or None if the event type is unknown or the id is already taken.
Source
fn locel_add_event(ocel*: SlimLinkedOCEL, event_type*: String, time*: DateTime, id: Option<String>, attributes: Vec<OCELAttributeValue>, relationships: Vec<(String, ObjectIndex)>)Nullable_EventIndex

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_add_event(ocel, 'pay order', '2020-01-01T10:30:00Z', '893f8ab9', [1], [['example', 1]])
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:53

locel_get_ev_id

Get the ID of an event
Source
fn locel_get_ev_id(ocel*: SlimLinkedOCEL, ev*: i64<uint>)String

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_ev_id(ocel, 1)
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:167

locel_get_ev_type_of

Get the event type (activity) of an event
Source
fn locel_get_ev_type_of(ocel*: SlimLinkedOCEL, ev*: i64<uint>)String

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_ev_type_of(ocel, 1)
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:179

locel_get_ob_id

Get the ID of an object
Source
fn locel_get_ob_id(ocel*: SlimLinkedOCEL, ob*: i64<uint>)String

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_ob_id(ocel, 1)
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:173

locel_get_full_ev

Get the full materialized event (with expanded type, attributes, and relationships)
Source
fn locel_get_full_ev(ocel*: SlimLinkedOCEL, ev*: i64<uint>)OCELEvent

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_full_ev(ocel, 1)
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:229
fn locel_add_event_type(ocel*: SlimLinkedOCEL, event_type*: String, attributes: Vec<OCELTypeAttribute>)()

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

r4pm.bindings.locel_add_event_type(ocel, 'pay order', [{"name": 'example', "type": 'string'}])
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:28

locel_get_o2o_rev

Get the reverse O2O relationships of an object as (qualifier, object_index) pairs
Source
fn locel_get_o2o_rev(ocel*: SlimLinkedOCEL, ob*: i64<uint>)Vec<(String, ObjectIndex)>

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_o2o_rev(ocel, 1)
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:221

locel_get_obs_of_type

Get all object indices of a given object type
Source
fn locel_get_obs_of_type(ocel*: SlimLinkedOCEL, ob_type*: String)Vec<ObjectIndex>

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_obs_of_type(ocel, 'order')
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:149

locel_delete_o2o

Remove the O2O relationship between the given objects
Source
fn locel_delete_o2o(ocel*: SlimLinkedOCEL, from_obj*: i64<uint>, to_obj*: i64<uint>)()

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

r4pm.bindings.locel_delete_o2o(ocel, 1, 1)
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:111

locel_get_full_ob

Get the full materialized object (with expanded type, attributes, and relationships)
Source
fn locel_get_full_ob(ocel*: SlimLinkedOCEL, ob*: i64<uint>)OCELObject

Arguments

Returns

import r4pm
ocel = r4pm.import_item('SlimLinkedOCEL','path/to/file')

res = r4pm.bindings.locel_get_full_ob(ocel, 1)
Defined inprocess_mining/src/bindings/slim_ocel_bindings.rs:235