Workflow Task Question

Hi ,

I had a requirement of creating two workflow task (called FM and FS) after the workflow is triggered by broker document. That is already done. Now the next step is if FM approves it , create a task for FS and removes the old task which created first for FS when workflow is started… Else FM rejects it then remove the old task from FS which we created first when workflow is started.

If FS approves it before FM then remove the old task from FM which we created first when workflow is started. If FS rejects it then create a new task for FM saying reject task and also remove the old task from FM we created first when workflow is started.