Skip to content

Need a convenient way to synchronously delete instance of multiple classes #14

Description

@modelint

When we delete an instance synchronously, we may need to delete a whole chain of instances across multiple
relationships to preserve the model integrity. For example, in the state_machine lifecycle we would like to delete a dispatched event and all of its related instances all in one go:

state Ignore
activity
    // Delete dispatched event
    {
        disp_ev .= /R1812/Dispatched Event
        sd_ev .= disp_ev/Self Directed Event
        nsd_ev .= disp_ev/Non Self Directed Event
        active_ev .= /R1812/Active Event
        pvals ..= disp_ev/R1813/Supplied Parameter Values
        !* disp_ev, sd_ev, nsd_ev, active_ev, pvals
    } <deleted>
    <deleted> Event ignored > me

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions