I have a custom workflow step (inheriting from NativeActivity and notCodeActivity) which is kicking off an operation, then calling thePostone activity via nativeActivityContext.ScheduleActivity(dateTime, ExecuteIterationCallback) to sleep for 30 seconds repeatedly until an external operation completes.
This all seems to work fine, and the workflow eventually will kick over to a status of Completed. The problem here is that when you open the workflow instance, the custom step still has a spinning busy indicator next to the step.
After looking in the WorkflowLogBase table, I see that all my steps have a Status of 5 which appears to mean Waiting according tothis link.
Any thoughts on how to ensure I can make the step flip to a green checkmark? Is there maybe something I'm missing that I need to do to mark the activity as completed even thought the workflow is completing?