The advanced, special workflow component,
Enrich by input form is a workflow component, that can help to modify the XML payload of a workflow with a
webform.
Please notice, that an alternative webform solution is covered in the section,
Webforms.
This component is to be triggered in a workflow and the workflow then waits for a user to open the form before the workflow continues the process with the changed XML file.
The component has these parameters:
Form unique ID
This is used as a reference later when a user is to open and fill out the form as a part of the URL the user need to use for accessing the form.
Forms template
This is a special template in the JSON format with the extension .frm, which must be uploaded to the
template library of InterFormNG2. The templates cannot be edited with the normal InterFormNG2 designer, so you will need to use a JSON editor for that. The format of these templates are described in the section,
Input forms.
Example of how this can be used
The basis of this example are the two attached files:
GTL_4x6_demo_Single_OneLabel_simple.xml and labeldemo.frm
The xml file is the input for a demo workflow and the labeldemo.frm is a demo form template, which we first upload to the templates library.
This workflow is triggered by the xml file, it calls the form and then saves the changed payload as a file:
In short the workflow monitors a folder, calls the enrich by input form and then saves the payload to a file with the component,
To Filesystem.
The workflow runs until the enrich by input form and then it stops the processing and waits for a user to sign on and fill out the form.
The user can access the form via a URL in this form:
where:
localhost is to be replaced with the ip-address or host name of the server on which InterFormNG2 is running.
labelform is to be replaced with the form unique ID, that was specified in the component, Enrich by input form.
If the user access this link, then the user first needs to sign on and then the user can see the outstanding forms waiting to be processed.