I'm writing a custom workflow step type that allows you to set some options during map creation, and then when the step runs during workflow execution, it runs in the background. So what I've done is extended (orphaned) $WFMAIN:WF Root:WFObjectTypes:WFTaskTypes:StandardTasks (as opposed to the GenericUserTask that I would use for a task that requires user interaction). Also set up the $WEBWFP:WFTask and $WEBWORK:WFTask so that I am able to define this new custom step in a workflow map.
So now I have a test workflow map that has three steps: the start step, which requires the user to attach some files; the custom step, which operates on those files; and a user step, which requires a user to verify the operations. Simple 1-2-3.
But I don't know where to put the code to execute when my custom step is initiated. And I don't think it's even set up to be initiated because when I launch the workflow and attach files and then initiate it, it never progresses past the start step.
So, question 1: where do I put the code for a custom task like this to execute in the background?
And question 2: why isn't my workflow advancing to the second step, and what do I need to do to fix it?