Hello,
I'd like to add an automated task to the vendor invoice workflow in AX 2012 R3 but when I go to modify my workflow, I don't see my new task as an option to add to the workflow.
I'm following instructions from here:
https://docs.microsoft.com/en-us/dynamicsax-2012/developer/how-to-create-a-workflow-automated-task
I've created a new class which implements WorkflowElementExecutionEventHandler. I've basically duplicated the VendInvoicePolicyTaskEventHandler, changed the name, and added my own little hello world code to the execute method.
I've created a new automated task under AOT\Workflow\Automated Tasks. I've basically duplicated the VendInvoicePolicyEvaluationTask, changed the name, and pointed it to my new class. I've ensured the Document is VendInvoiceDocument, the same as VendInvoicePolicyEvaluationTask which is the document that I'd like to associate my task with.
I've performed an incremental CIL and tried restarting the AOS. When I go to edit the workflow, I can see the "Evaluate policy rules for invoices" automated task but mine is not an option to add to the workflow:
Any ideas why my task is not showing up in the workflow editor? Is there something obvious that I'm missing? Any help is greatly appreciated!