You need to implement this. If you want your route to start with D then do the following:
1.) if newAct is D then prevAct needs to be Start, if not return NOT_FULFILLED
2.) if newAct is not D then if prevAct is Start AND nextAct is D return NOT_FULFILLED otherwise FULFILLED