You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ActivityForm form =ActivityForm.findByExternalId(guid)
284
286
if (!form) {
@@ -318,6 +320,18 @@ class ParatooService {
318
320
log.warn "Error saving form with id: "+id+", name: "+name
319
321
}
320
322
}
323
+
324
+
List allProtocolForms =ActivityForm.findAll {
325
+
externalIds {
326
+
idType ==ExternalId.IdType.MONITOR_PROTOCOL_GUID
327
+
}
328
+
status !=Status.DELETED
329
+
}
330
+
331
+
List deletions = allProtocolForms.findAll{it.externalIds.find{it.idType ==ExternalId.IdType.MONITOR_PROTOCOL_GUID&&!(it.externalId in guids)}}
332
+
deletions.each { ActivityFormactivityForm->
333
+
result.messages <<"Form ${activityForm.name} with guid: ${activityForm.externalIds.find{it.idType == ExternalId.IdType.MONITOR_PROTOCOL_GUID}.externalId} has been deleted"
0 commit comments