Instructions
1.Go to Site Settings.
2.In the Site Actions section, select Manage site features.
3.Locate the feature called Workflows can use app permissions and then click Activate:
SharePoint Site Settings: Your SharePoint URL/_layouts/settings.aspx