Created attachment 868931 [details] 3 files, 2 of them invalid, validation results for the valid one Description of problem: See summary. When there are multiple DRL files in a project and one of them is invalid, running validation on any of these DRL files will return results for the invalid DRL file. If there are more invalid DRLs, the validation result for any of them will show errors in all of them. Version-Release number of selected component (if applicable): BPMS 6.0.1 ER1 Steps to Reproduce: 1. In a project, create DRLs drl1, drl2, drl3. 2. Validate any of them - validation is successful. 3. Make drl1 invalid and save, run validation on all 3 DRLs - each time you get errors found in drl1. 4. Make drl2 invalid as well, save and again, validate all 3 DRLs - for each file, validation results show errors from both drl1 and drl2.
Hmmm. This isn't really a bug. A DRL file can reference DRL Queries and DRL Declarative Types; which themselves may be defined in other DRL files. So, in order to validate a DRL file we really need to load all other DRL files too. This is what you're observing. There's no real way to ascertain what other DRL files need to be loaded to validate a single DRL file.
An alternative, and probably less impact to the average user, is to just validate the single DRL file and if things needed by the file being validated (Queries or Declared Types) are not in the same file they'll get a validation error. What do you think?
Hi Zuzana, re: comments 1 and 2, what are your thoughts?
(In reply to manstis from comment #3) > Hi Zuzana, re: comments 1 and 2, what are your thoughts? Sorry for the late reply - I had vacation. As for the issue.. I can't say I like either of these approaches. If I request validation for one file, I expect to get results for that file. Not for other drl files. If the one I'm interested in is valid and others are not, I won't see that now - I will only see validation errors. This isn't very good. On the other hand, if I (correctly) use stuff from other drl files, the file being validated is ok and I get validation error stating that some fact or query could not be found, I'll be quite surprised and frustrated as well. It would be really cool to run the validation with all the drl files loaded, but then present results only for the one file the user is interested in. After all, if I want a report on all the problems in the project, there's the Problems panel. What do you think? Is it doable (and/or reasonable)?
I agree. Implemented.
Verified with ER2, thanks.