update global example to new kie API
(cherry picked from commit bfd3eb8936e723230cb9eca6906b0e2a6142728c)