In this trigger we are going to update Parent Object (Work Order) field (Status) to 'Complete' when its all associated Child Object (Work Order Line Item) status gets completed.
Requirement : Lets say we have 5 Work Order line Item for a Work Order. When all 5 Work Order Line Item status change to complete only then Work Order Status gets completed.