Currently when a Task cannot be dispatched because a mandatory artefact is missing then we mark the WorkflowInstance as Failed but we lose traceability to the Task that caused the failure because we dont append that to the WFI.
Actual outcome
WFI.Status: 0 (Created)
Task_1.Status: 2 (Accepted)
Expected Outcome
WFI.Status: 2 (Failed)
Task_1.Status: 3 (Succeeded)
Task_2.Status: 4 (Failed)