Enrich by input form

Enrich by input form

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.



    • Related Articles

    • Input forms

      An important part of the module, Webforms are the input forms. The input forms are used by the Enrich by input form workflow component to change the contents of an XML file via an interactive form. The input forms is a special kind of template in ...
    • Form field element

      You can create a fillable PDF form with InterFormNG2. This means, that a user can open the PDF and type in text and answer questions and save the filled out PDF form. The fillable fields are defined as form fields in the designer. To insert a form ...
    • Enrich XML from database

      It is possible to change the contents of an XML file and to add data from an external database with the advanced special workflow component: Enrich XML from database. An alternative to this component is ng.databaseLookup, which can e.g. be used ...
    • Enrich spooled file from database

      It is possible to change the contents of a spooled file (as known on the IBM i platform) and to add data from an external database with the advanced special workflow component: Enrich spooled file from database. You can also add data with the ...
    • PDF input and output

      If you want to create PDF output in InterFormNG2, then you need to setup a workflow in InterFormNG2 to do that. If you want to use the PDF inside of an email, then you should consider to check out the email output options first, as the normal create ...