You need te execute a microflow indeed.
To check whether such a record exist, you can use retrieve an allocation with the following xpath: Retrieve from database, first only, where [module.Allocation_Persion = $myperson][startdate != empty][enddate = empty]