Nearly Completely Decomposable Epidemic-Like Stochastic Processes with Time-Varying Behavior