Executing custom task on change of status in workflow

Hello All:

I created a custom task using one of the examples from PDM API training files. I would like to execute that task whenever there is a change of status in a workflow. But the custom task does not show up in the drop down list when I tried to select the task in Action->Execute Task-> Task Drop Down menu. All other built tasks show up except the custom task I've created. Could anyone please let me know what is the problem?

Thank you very much in advance,

Shwetha.

SolidworksApi macros