Simple workflow java API.