Jump to content

Stop composition based on a RULE only


rpaterick

Recommended Posts

Is there a way to stop composition on a SPECIFIC RULE rather than the minor, medium, and severe setting?

 

Or.... the following rule below, is there a statement that can stop composition if FusionPro finds a Social Security number or 9-digit numeric code in either field instead of skipping?

 

I have a ONRECORDSTART Rule:

if (Field("Address Line 1").search(/\d{9}/) > -1 ||  Field("Address Line 2").search(/\d{9}/) > -1) {
  FusionPro.Composition.composeThisRecord = false;
  ReportWarning("Record #" + CurrentRecordNumber() + " was skipped because it may have a SS# in address field.");
  }

 

Thanks!

Link to comment
Share on other sites

The rule you have will skip the invalid records. If you want to abort the composition entirely, you can set the "Abort on errors of this type" drop-down to either Minor or Medium, and then set "Select how to abort the job" to "Stop composition." This causes any call to the ReportWarning or ReportError function in JavaScript to invoke the abort. Be aware that other errors and warnings which may otherwise be benign may also invoke the abort with these settings.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...