[progress Communities] [progress Openedge Abl] Forum Post: Re: Corticon Process Duration Time

  • Thread starter Thread starter mparish
  • Start date Start date
Status
Not open for further replies.
M

mparish

Guest
You could create a Corticon extended operator like this to get the time at the start and at the end of execution inside Corticon. Then Corticon can calculate the overall execution time (or the execution time of any part of the rule flow. The built in “now” operator in Corticon always returns the same value throughout the execution of the rules so that can’t be used for this purpose. public class Utility implements ICcStandAloneExtension{ public static BigInteger getMillis() { try { return BigInteger.valueOf(System.currentTimeMillis()); } catch (Exception e) { return BigInteger.ZERO; } } } If you also record the start and end in your java program you can determine the overhead in making the call beyond just the execution of the rules.

Continue reading...
 
Status
Not open for further replies.
Back
Top