contract workflow