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?
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
-
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
-
Superrr! JoosThat indeed was one of the causes! Additionally, I was doing a silly mistake of not putting back the modified event back to the log!Thanks a million.
Howdy, Stranger!
Categories
- 1.6K All Categories
- 45 Announcements / News
- 225 Process Mining
- 6 - BPI Challenge 2020
- 9 - BPI Challenge 2019
- 24 - BPI Challenge 2018
- 27 - BPI Challenge 2017
- 8 - BPI Challenge 2016
- 68 Research
- 1K ProM 6
- 393 - Usage
- 287 - Development
- 9 RapidProM
- 1 - Usage
- 7 - Development
- 54 ProM5
- 19 - Usage
- 187 Event Logs
- 32 - ProMimport
- 75 - XESame