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.
You could use the workflow criteria to prevent a change from being promoted in the event the declaration is missing.
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.
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.
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.