I'm trying to create a simple workflow for a SharePoint add-in using Visual Studio 2015. The attached MS Word document shows the design. The workflow is supposed to add an item to the list Deviations automatically when an item is added to the list DevInfo manually. Based on the DevInfo list, WorkflowHistoryList, and WorkflowTaskList (see screenshots in the attached), it appears the workflow does not fire at all.
I noticed the workflow.xaml file is not automatically added to a feature, although WorkflowHistoryList and WorkflowTaskList are. Is that something I need to add manually?
Also if I try to open the workflow after deploying the app on a dev site, I get an error and have to close/reopen the project. See screenshot in the attached.