Remove objects from the workspace

JBuijsJBuijs Posts: 922
edited December 2010 in - Development
Part of a conversation between Andrea Burattin and Boudewijn van Dongen in which Andrea asked:

I have two plugins: one for the generation of a single process

(AuthoredType PLGProcess) and one for the generation of collection of

processes (AuthoredType PLGProcessCollection). The latter repetitively

calls the former (with the method tryToFindOrConstructFirstObject of

the context). The problem is that each call of the "single process

generator" creates the objects into the workspace. Since I add all the

processes to the collection, is it possible to remove them from the

workspace?
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

Comments

  • JBuijsJBuijs Posts: 922
    To which Boudewijn van Dongen replied:

    Probably the easiest solution is to not use the "trytofindorconstruct" method, but to call the method directly. Otherwise, you indeed end up with all objects in the workspace. There's no easy way to solve this otherwise.
    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
Sign In or Register to comment.