For context what I am trying to accomplish is having a preview window where a user can view what a invoice (or any document is being generated) can be previewed before being submitted and continuing the business process.
The basic preview page (with no polish, bells, or whistles) looks like this:
Since this requires being able to trigger the workflow an unspecified number of times without advancing the business process, I use some JavaScript to grab the variables and then start an instance of the workflow when my preview button is clicked here:
The issue I am having is within the table field merge in my workflow. For reference, this is what my workflow looks like:
The collections are passed as pipe delimited lists (eg. apples|bananas) and then are split into multi-value tokens in the pattern matching. The reason my workflow contains retrieve business process variables is 'Update Word Doc' will not let you assign the table field merge with anything other than variables from a Forms table or collection - so what I do is 'import' these variables as a kind of template and then replace them with the multi value tokens I created in the pattern matching... except this does not work.
My track tokens activity shows that the variables are correctly assigned as multi-value tokens:
but when run, the word document retains the <<variable names>> and does not update (I tested the word template with a test workflow and it works when run from a process). Here is what the table field merge within my update word doc activity looks like:
Does anyone know how I might go about getting Update Word Doc to let me use my non-process multi value tokens? Please let me know if you need any additional information or screenshots.