update global example to new kie API