Fixed and adopted sample application from Activiti in Action book