The trigger agent utility is used for scheduling time-triggered
transactions.
You can override the agent criteria attributes only in the Real-Time
Availability Monitor and Inventory Monitor. The command for triggering
the Real-Time Availability Monitor and Inventory Monitor with override
abilities is:
- <INSTALL_DIR>\bin\triggeragent.cmd <criteriaID>
-<AgentCriteriaAttribute> <OverriddenValue>
- <INSTALL_DIR>/bin/triggeragent.sh <criteriaID>
-<AgentCriteriaAttribute> <OverriddenValue>
To enable this override, you should pass the
AgentCriteriaAttribute and
OverriddenValue as
additional parameters to the Java class in the
triggeragent script
as follows:
java com.yantra.ycp.agent.server.YCPAgentTrigger -criteria %*
Therefore, when you invoke:
triggerAgent.sh CustomCriteria -MyOverriddenParam DynamicValue
...all the values are passed to the Java class.
However, do not modify the parameters passed to the
Java class in the default triggeragent script. Make
these changes in the file that you have copied and renamed from the triggeragent script.
Also, the agent criteria XML code must have the AllowedOverriddenCriteria flag
set to Y.