What is the proper way to save a workflow dialog step's widget values?
For example, I have a dialog step that has two textarea widgets.
The first, used in most default steps, is named "comment". When a user enters text into this field during the workflow it is saved to the workitem history metadata as a property called "comment" (/etc/workflow/instances/<date>/<model>/history/<###>/workItem/metaData).
The second widget could be any text that i want to get from the user for use in the next step. Is it possible to set this widget's name so that it is stored similarly to "comment" in the workitem's metadata? I've tried a few different names - "randomText", "./metaData/randomText" - but it seems to want to store these values on the payload's node. For now, i've been naming it "./jcr:content/randomText" and grabbing it off of the payload's node but this isn't ideal.
Is there a better way to get this text from the user for use in the next step (a service that implements ParticipantStepChooser) without having to store and lookup the value on the payload's content node? (Using CQ5.6)
Thanks