API for graphic representation of workflows