Generic Error Handling

hello, i tried this solotion.< GitHub - NPDeehan/GenericErrorAndReturn: Showing how to throw an error anywhere in the process and then Return back afterwards > The process would proceed normally as if nothing had happened. so I couldn’t direct it to the name I wanted.

my process ıs bellow

GenerıcErrorSender’s JavaDelegate code:

String taskId = (String) execution.getVariable("errormessage");
		execution.getProcessEngineServices().getRuntimeService()
        .createProcessInstanceModification(execution.getProcessInstanceId())
        .startAfterActivity(taskId)
        .execute();

and usertask1 when complete,

and generic error complete,
but the process continued its normal behavior and proceeded to the undesired task.

BEST REGARD