Specifying Task Constraints in APE