The Sample Workflow polling framework allows you to write workflow stage pollers that execute commands against documents found in the configured workflow stages.