PG&C Criteria

I am looking for a way to perform a check on Changes to verify that all Part items have a Declaration under the Compliance tab.  Parts don’t need to be compliant just have a declaration.

Add Comment
5 Answer(s)

You could use the workflow criteria to prevent a change from being promoted in the event the declaration is missing.

Agile Angel Answered on April 14, 2016.
Add Comment

This is what I am hoping, rather than having to write a process extension.  My problem is that I can’t find any criteria for the compliance attachment.

Agile User Answered on April 14, 2016.
Add Comment

Hmmm, not having that enabled on my current instance I am unable to be of help.  Let’s see if there are others out there that have PG&C enabled that could provide details.

Agile Angel Answered on April 14, 2016.
Add Comment

Hi Cote,

    I can´t think of a criteria to fit this. I would rather make this a groovy script that gets triggered.

 

Pseudo code:

boolean allpass = true;
getTable(BOM)

for each part in table BOM{

currpart = part

currpart.getTable(Compliances)
boolean pass = false;

for each Row in table Compliances{

 if(row.getField(Type)=”Declaration”)
    pass = true;

   break;
}
if(pass = false)
allpass = false,; break;
}
//if allpass is false,…then revert back to previous workflow state…
if(!allpass)
 move workflow state to previous.

Agile Angel Answered on April 14, 2016.
Add Comment

Thanks!  I’ll take a swag at writing this.

Agile User Answered on April 15, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.