workflow example for REST interaction