Sterling OMS How to override Agent Criteria parameter runtime ?

By | 05/24/2018

Sterling OMS How to override Agent Criteria parameter runtime ?

Sterling OMS How to override Agent Criteria parameter runtime

Read Non Task Q based implementation

Many times we will have customer requirement to run custom purge agent with Retention Days as 15. But in agent criteria parameter this value may be configured as 30 days. (Just example)

Easy way to do

  • Open Application Manager configuration
  • Go to the transaction and edit the criteria parameter and save.
  • Stop the agent server and start back.
  • After process complete change the value back and restart agent server

Sterling OMS How to override Agent Criteria parameter runtime ?

Is there easy to do without editing and stop and start of agent servers ? Just one time run with modified value. yes that’s possible in Sterling OMS.

  • Go to the transaction and add new criteria parameter AllowedOverriddenCriteria with value Y

AllowedOverriddenCriteria

  • Stop the agent server and start back. (One time)
  • First start the agent server using command agentserver.cmd XYZPersonInfoPurge
  • Use triggeragent.cmd to override the values

Use triggeragent.cmd XYZ_PERSON_INFO_PURGE -RetentionDays 10 -NumRecordsToBuffer 5

Get Jobs method shows the overridden values

Interview Questions ?

  • Can we use this only for custom agent ? Answer : This can be applied the existing agents. RTAM is best example to override the criteria parameter.
  • Can we override more than one value ? Answer : yes, as shown in above example we can override any number of values.
  • Does this override value gets applied always by default for next run ? Answer : No, this is just one time.
  • What is the use of Service to execute on Completion of Work under run time parameter ? Answer : This service gets called when getJobs() methods returns empty List<Document>. Meaning there is no more message process.
  • What is the use of schedule trigger message under run time parameter ? Answer : Trigger message gets posted every N minutes to queue automatically. getJobs() method reads this message and start process if able to get lock on yfs_object_lock. If not able to get lock; just go to sleep (Do nothing)

Register with us to get more updates

OMS Interview Questions

Any question please email to support@activekite.com

Happy Learning. Come lets learn together.

Leave a Reply

Your email address will not be published. Required fields are marked *