Very old thread, but anyway.
I got this code:
...but the page won't be published. In the pages section, the page is displayed as draft and needs to be approved.
What's wrong? I just copied the essential part of your code.
Maybe check in again?
Edit: I recognized that the variable "instance" in ExecuteActivity is nothing, so nothing will be passed. Any solution for that?
Regards,
Marcel