Tom,
Thanks for your replies...
i did the following and got it working:
Rule invoked when instance ofcustomer object is created:
If Customer IS NEW
Then
CREATE CustomerLogs WITH CustomerLogs.CustNo=ThisCustomer.CustNo,CustomerLogs.Fname=Customer.Fname,CustomerLogs.Lname=Customer.Lname
CREATE Auditog WITH Auditog.objectModified='Customer',Auditog.reference=ThisCustomer.Fname,Auditog.time=CURRENT_TIMESTAMP,Auditog.userId=LoggedInSystemUser.LoginName,Auditog.auditId=MAX Auditog.auditId+1,Auditog.action='new customer'
Rule when an instance of AuditLog is created:
If Auditog IS NEW Then
FIND CustomerLogs WHERE CustomerLogs.auditId IS UNDEFINED
CustomerLogs.auditId=Auditog.auditId