A -> B
You have 10 days to complete the B process. If the process is not completed the First Reminder email should be sent to the appropriate user and if the task is not completed after another 5 days the second reminder email should be send.How to implement this scenario
The process to send out the email is a separate process.
You need to change this:
$taskId = '3839855285b99bcad876958079357667';
To the ID of your task in another process which is overdue.
You need to start a case in the separate process and then let it automatically loop forever. You have to set your timereventcron.php file to periodically execute on your ProcessMaker server to keep it looping.