1. A method comprising: receiving an indication of a first of a plurality of tasks; accessing a policy associated with the first of the plurality of tasks; determining that a restricted activity state is to be imposed on an electronic device workspace based, on the policy that is associated with the first of the plurality of tasks and an application related activity, wherein the restricted activity state imposes use of a first set of one or more applications on the electronic device and preventing use of a second set of one or more applications on the electronic device, wherein the application related activity comprises: accumulation of a first time period of a user working with the first set of one or more applications, expiration of a lack of activity second time period for the second set of one or more applications, a first activity to launch one of the first set of applications, a second activity to close one of the second set of one or more applications, and activation of one or more lock controls of the second set of one or more applications; restricting the electronic device workspace to the first set of one or more applications that correspond to the application related activity and the policy; and preventing the second set of one or more applications from intruding into the electronic device workspace during the restricted activity state.