Decompose workflow into tasks