Task Planning and Partial Order Planning: A Domain Transformation Approach