This post relates to a previous one in which I've asked for help in getting a simple workflow that saves a form as a PDF to disk to work. Based on help from Jasmin and Howard I believe that I'm closer to understanding how to make this work, but now I get an error when trying to read the document from the repository. Here's a complete description of what I've done:
1. I create an Adobe XML Form File (PDF) called Jeff.pdf on my server in the location \BDI\Forms\Jeff.pdf. This is just a simple form with one field on it - there is no embedded schema (my understanding is that I would only need that if I wanted to make reference to specific fields in my workflow).
2. I created a process with a two variables. The first is an xfaForm variable called JeffsForm - I set its Template Url to /BDI/Forms/Jeff.pdf. I've also checked all of the General check boxes and the Enduser UI Items check boxes. The other variable is a Document Form variable called DocumentVar (I've also tried setting this to type document...). Under General I've selected "Output" and under "Enduser UI Items" I've checked both boxes. The URL field in the "Datatype Specific Settings" is set to /BDI/Forms/Jeff.pdf.
3. In my workflow I have a User Assignment step. In the "From Data Mappings" section ive set the "Input from varaible" to /process_data/JeffsForm. I left "Form must be saved" unchecked. In the "Output form data - (variable)" field I've entered JeffsForm. In the "Task id" field I've entered "/process_data/@id".
4. I have a route going from the assignment step to a Read Resource Content step. This is where things fail. In the Input section I've tried a few different values. In one case I set the "Resource Uri" to "{$/process_data/JeffsForm/object/@templateUrl$}". In another attempt to get this to work I set it to the literal value of /BDI/Forms/Jeff.pdf. In the Output variable I've put DocumentVar.
When I run this workflow it stalls with the following entry in the server error log:
com.adobe.idp.DocumentError: The Document is not available on the sending side anymore. Make sure that it is not disposed or garbage collected too early.
I'f anyone can tell me what I'm doing wrong I'd be extreamly grateful. I've spent about 5 days so far trying to get this very simple sample workflow to work with no luck.
1. I create an Adobe XML Form File (PDF) called Jeff.pdf on my server in the location \BDI\Forms\Jeff.pdf. This is just a simple form with one field on it - there is no embedded schema (my understanding is that I would only need that if I wanted to make reference to specific fields in my workflow).
2. I created a process with a two variables. The first is an xfaForm variable called JeffsForm - I set its Template Url to /BDI/Forms/Jeff.pdf. I've also checked all of the General check boxes and the Enduser UI Items check boxes. The other variable is a Document Form variable called DocumentVar (I've also tried setting this to type document...). Under General I've selected "Output" and under "Enduser UI Items" I've checked both boxes. The URL field in the "Datatype Specific Settings" is set to /BDI/Forms/Jeff.pdf.
3. In my workflow I have a User Assignment step. In the "From Data Mappings" section ive set the "Input from varaible" to /process_data/JeffsForm. I left "Form must be saved" unchecked. In the "Output form data - (variable)" field I've entered JeffsForm. In the "Task id" field I've entered "/process_data/@id".
4. I have a route going from the assignment step to a Read Resource Content step. This is where things fail. In the Input section I've tried a few different values. In one case I set the "Resource Uri" to "{$/process_data/JeffsForm/object/@templateUrl$}". In another attempt to get this to work I set it to the literal value of /BDI/Forms/Jeff.pdf. In the Output variable I've put DocumentVar.
When I run this workflow it stalls with the following entry in the server error log:
com.adobe.idp.DocumentError: The Document is not available on the sending side anymore. Make sure that it is not disposed or garbage collected too early.
I'f anyone can tell me what I'm doing wrong I'd be extreamly grateful. I've spent about 5 days so far trying to get this very simple sample workflow to work with no luck.