My process typically happens at the piano, and all at once. I usually start with the kernel of an idea - it could be lyrical, rhythmic, harmonic... anything, really - and build outwards from there. It involves trial, error, and repetition. It looks (and sounds) almost exactly like this:
So now you know.