In this example We will be showing name and personnel number of worker at Worker creation and automatically deleting the worker
[ExtensionOf(tableStr(HcmWorker))]
final class TTC_HcmWorker_Extension
{
public void insert()
{
next insert();
Info(strFmt("%1",this.PersonnelNumber));
Info(strFmt("%1",this.name()));
this.delete();
}
}