legalisation workflow