add createToken method to Workflow