ICRF
Purpose¶
For use with EDI systems to identify message envelopes.
Methods¶
Binding name: p6.icrf
Method: int getNextISA(String name)
Increments the named X.12 Interchange Control Reference returning its new value. If the named reference is not found then it will be created automatically.
Method: String getNextISAStr(String name)
Increments the named X.12 Interchange Control Reference returning its new value as a zero padded string. If the named reference is not found then it will be created automatically.
Method: long getNextUNB(String name)
Increments the named EDIFACT Interchange Control Reference returning its new value. If the named reference is not found then it will be created automatically.
Method: String getNextUNBStr(String name)
Increments the named EDIFACT Interchange Control Reference returning its new value as a zero padded string. If the named reference is not found then it will be created automatically.
The minimum value of a named ICRF is 1 and the maximum is 999999999 (X.12) or 99999999999999 (EDIFACT).
The ICRF manager is implemented as a JMX MBean.
A JMX Console like Hawtio or Jconsole may be used for finer control of ICRF values.
Note
ICRF values are persisted so preserving their values beyond a restart.
Example¶
(1..100).each {
println p6.icrf.getNextISAStr("myicrf")
}