Hi, i found a bug or something like that.

if i attach a IntermediateTimerEvent on a Activity and i select IntermediateTimerEvent and press del to remove component, it will remove the Activity too, but if i drop the IntermediateTimerEvent out the Activity before remove, its ok.

looking at source edit.js on funcion: getAllShapesToConsider


using the connections.each(function(s) {

i add a specific if:


} else if(shape._stencil.id() == "http://b3mn.org/stencilset/bpmn2.0#IntermediateTimerEvent" && s._stencil.id() == "http://b3mn.org/stencilset/bpmn2.0#Task") {
                    // Se for remover um deadline atribuido a uma atividade, nao remover a atividade
                    return;
                    }


to ignore the Activity if i delete a IntermediateTimerEvent
i want to know if is right to check components with stencil_id or i need to use instanceOf, but i cannot found the right class to use.

any one can check that?

--
[]'s Juliano
-----------------------

http://www.google.com/profiles/skulljoi
linux user: #411461 http://counter.li.org