How to ignore subforms based on the path that the workflow has taken

I am trying to create multiple task based on different path within the workflow, Where one task can be created at using different paths, and I need to know how I can define the ignore condition based on the path it is takig.

Can you provide more specific details of what you are trying to achieve.
Perhaps with a simple example.