BUG 10989: "PMFNewCaseImpersonate definition is incomplete"
Error:  There were no parameter to set which starting task to select.
Sol:    Adding a optional paramater to the newCaseImpersonate function.
plus code style changes.