return bo != null && bo instanceof SubProcess;
}
@Override
public IReason updateNeeded(IUpdateContext context) {
Property triggerProperty = Graphiti.getPeService().getProperty(context.getPictogramElement(),
TRIGGERED_BY_EVENT);
if (triggerProperty == null)
return Reason.createFalseReason();
SubProcess process = (SubProcess) getBusinessObjectForPictogramElement(context.getPictogramElement());
boolean changed = Boolean.parseBoolean(triggerProperty.getValue()) != process.isTriggeredByEvent();
IReason reason = changed ? Reason.createTrueReason("Trigger property changed") : Reason.createFalseReason();
return reason;
}