View Issue Details

IDProjectCategoryView StatusLast Update
0002426CaseTalk ModelerValidationpublic2022-01-10 20:40
ReporterBCP Software Assigned ToBCP Software  
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionfixed 
Target Version10.0.4Fixed in Version10.0.4 
Summary0002426: Rule checking population and TC too tight
Description"Populations must comply with totality constraint" uses an AND instead of an OR for validating inter-tc's.
TagsNo tags attached.
CaseTalk Editionunknown

Activities

BCP Software

BCP Software

2020-03-29 08:57

administrator   ~0001601

TC25 uses and AND instead of an OR. This should be OR because the TC is not a full mandatory constraint.
Annotation 2020-03-28 162132.png (145,906 bytes)   
Annotation 2020-03-28 162132.png (145,906 bytes)   
BCP Software

BCP Software

2020-03-29 10:33

administrator   ~0001602

Last edited: 2020-03-29 13:31

Fixed by a new implementation of the SQL Rule:

  select distinct
  'Populations must comply with totality constraints' as name,
  '"' || otftname || '" misses tuples in: ' || Population_Missing_Under,
  'POPULATION' as repositoryType,
  otftname as repositoryID,
  0 as status,
  1 as enableEdit
  from
  (
  select refs.otftname, refs.tc, group_concat(refs.partofft, ' or ') as Population_Missing_Under
  from (

  select o.otftname, tfr.tc, p.tupleno,
  case when (not pr.tupleno is null) then 'Referenced' else '' end Status, r.partofft
  from tcforroles tfr -- find TCs
  join role r on r.roleno = tfr.nonlexrole -- get the TC Role
  join otft o on o.otftname = r.playedbyot -- get the OTFT played by these Roles
  join role ro on ro.partofft = o.otftname -- Find the OTFT and it's roles
  join population p on p.role = ro.roleno -- get the OTFT population which should be referenced by roles under the TC
  left outer join population pr on pr.role = tfr.nonlexrole and pr.reftupleno = p.tupleno

      ) refs
      
  left outer join
      (

  select o.otftname, tfr.tc, p.tupleno,
  case when (not pr.tupleno is null) then 'Referenced' else '' end Status, r.partofft
  from tcforroles tfr -- find TCs
  join role r on r.roleno = tfr.nonlexrole -- get the TC Role
  join otft o on o.otftname = r.playedbyot -- get the OTFT played by these Roles
  join role ro on ro.partofft = o.otftname -- Find the OTFT and it's roles
  join population p on p.role = ro.roleno -- get the OTFT population which should be referenced by roles under the TC
  left outer join population pr on pr.role = tfr.nonlexrole and pr.reftupleno = p.tupleno

       ) used
       on refs.otftname = used.otftname
      and refs.tc = used.tc
      and refs.tupleno = used.tupleno
      and used.status = 'Referenced'
      
  where used.otftname is null
  group by refs.otftname, refs.tc
  ) messages
  order by otftname

BCP Software

BCP Software

2022-01-10 20:40

administrator   ~0004014

Closing automatically, stayed too long in resolved state. Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2020-03-29 08:56 BCP Software New Issue
2020-03-29 08:56 BCP Software Status new => assigned
2020-03-29 08:56 BCP Software Assigned To => BCP Software
2020-03-29 08:57 BCP Software File Added: Annotation 2020-03-28 160326.png
2020-03-29 08:57 BCP Software File Added: Annotation 2020-03-28 162132.png
2020-03-29 08:57 BCP Software Note Added: 0001601
2020-03-29 10:33 BCP Software Status assigned => resolved
2020-03-29 10:33 BCP Software Resolution open => fixed
2020-03-29 10:33 BCP Software Fixed in Version => 10.0.4
2020-03-29 10:33 BCP Software Note Added: 0001602
2020-03-29 13:30 BCP Software Note Edited: 0001602
2020-03-29 13:30 BCP Software Note Edited: 0001602
2020-03-29 13:31 BCP Software Note Edited: 0001602
2020-04-19 09:26 BCP Software Category Model Validation => Validation
2022-01-10 20:40 BCP Software Note Added: 0004014
2022-01-10 20:40 BCP Software Status resolved => closed