To prevent spam users, you can only post on this forum after registration, which is by invitation. If you want to post on the forum, please send me a mail (h DOT m DOT w DOT verbeek AT tue DOT nl) and I'll send you an invitation in return for an account.

Nested attributes in OpenXES?

pcoder
edited November 2011 in Event Logs
Hi,

Nested attributes can be very useful in storing information in the log file as suggested by the XES 1.0 standard definition, But I wonder if OpenXES implementation actually makes use of it.

For eg:

<string key="city" value="Bearlin">
<boolean key="spellChecked" value="false"/>
</string>

I can code a plugin to introduce the nested element (here boolean spellChecked). However, when I use the XesXmlSerializer to write this back to the file, it simply ignores this nested attribute.

XAttributeMap city= event.getAttributes().get("city").getAttributes();
SpellChecked sc = new SpellChecked();
sc.setValue("false");
city.put("spellChecked", sc);
event.getAttributes().get("city").setAttributes(city);

SpellChecked is an arbitrary class that implements XAttributeBoolean interface

Can somebody explain if there is some workaround for this?

Best Answer

  • JBuijs
    Accepted Answer
    Hi PCoder,

    XESame supports nested attributes using the OpenXES library so it is supported and implemented.

    I tried to quickly see if your code contains an error but could not spot it.
    Could you try to follow what happens in debug mode and see if the city attribute has the spellchecked attribute at the end?
    For instance, could you try it without the SpellChecked class? So directly on an XAttributeBoolean instance. It might also be an idea to extend the XAttributeBooleanImpl instead of implementing the interface.

    Let me know what works or not!
    Joos Buijs

    Senior Data Scientist and process mining expert at APG (Dutch pension fund executor).
    Previously Assistant Professor in Process Mining at Eindhoven University of Technology

Answers

Sign In or Register to comment.