I came across an interesting article by Masayuki Otoshi via Java World that discusses how to execute process definitions on the client side rather than the server side. This can come into play when making AJAX calls. As AJAX is Asynchronous, it is not possible to predict the order that your callback methods will be [...]
AJAX process definition on Client Side