added trigger code to workloadmanager