system.mes.purgeControlRecipeObjects(Date cutoff, int limit)

Sepasoft MES Module Suite

system.mes.purgeControlRecipeObjects(Date cutoff, int limit)

Permanently removes variable amount of batch control recipes and associated logic that are both older than the passed in date and in an Executed, Faulted, or Removed state.

This function works with the configuration option: MES Enterprise Network Settings > Data Retention Period in Days.

Note Available in 3.81.10 RC3 and later.

Syntax

system.mes.purgeControlRecipeObjects(Date cutoff, int limit)

  • Parameters

Date cutoff - Records with this date or older than this date will be removed, starting with the oldest.

int limit - The maximum amount of control recipes to remove, 1000 is used if None is entered.

  • Returns

Nothing

  • Scope

All

Sepasoft MES Module Suite