orphan children

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
tkilshaw
Posts: 170
Joined: Thu Jan 19, 2006 11:33 pm
Location: Western Canada
Contact:

orphan children

Post by tkilshaw »

Class Account has reference Task and rule:

If Account.NextContact IS UNDEFINED AND SystemSettings.DaysToNextContact IS DEFINED Then
CREATE Task WITH Task.Account=Account, Task.AddedBy=LoggedInSystemUser, Task.AssignedTo=Account.AssignedTo, Task.Details='Next Contact for account: ' + Account.AccountID, Task.Kind='Business', Task.Type='Contact', Task.Status='to do', Task.TargetDate=CURRENT_DATE+SystemSettings.DaysToNextContact, Task.TargetTime='8.00 AM'

The makes a new Task and adds it to the Account as expected.

But if the user hits the Cancel button and the Account is not created I'm left with a redundant Task record.

I don't see how to avoid this and display the referenced task in a newly created Account.

Also, it should not be necessary since the relevant Task is owned by Account
thanks,

Terry
aware_support2
Posts: 595
Joined: Sun Apr 24, 2005 2:22 am
Contact:

Post by aware_support2 »

Terry,

This is on our TODO list. In the future the system will include functionality to automatically delete any owned instances that were never linked to an owner.
Aware IM Support Team
Post Reply