Thanks 4 ur reply.we need to get the attached file count before job is initiated. Based on the count(>20) we need to through the error message. so, no Workflow task would be active at this point(CSTask API will not work, I guess). Hope preprocessor is the best option for this. Can u pls help me out with the APIs for this.Thanks..-DK
interface WFMWorkflow
WFMFile[] getFiles()