If you don't want a task and an asynchronous execution then a Callable Sub Process could do the job better.
Just put your target process logic in BPM process of kind 'Callable Sub Process' and invoke it from the Html Dialog by using the (Subprocess) 'Call' Acitivity.![alt Activity.![alt text][1]
[1]: http://answers.axonivy.com/upfiles/callableSubProcessCreation.png