Functional Principle: Task Generator for Forms and Web Applications

A Task Generator generating a form task or a form for a web application functions according to the following principle:

module guide 819 0

In a Task Generator, two conversion steps are performed consecutively:

  1. The data of the input message are mapped to a form. Then, the form is edited by users.

  2. The result of the form editing is returned to the Task Generator and is prepared as expected by the next module.

The conversion steps in detail:

  1. In the Form mapping, a request is generated out of the input message by using an XSLT style sheet.

  2. Out of the request, either a form for display in the INUBIT Workbench or an HTML request for a browser is created. The browser converts the HTML request into a form.

  3. The form is edited by the users. By clicking the Submit button, the form data are returned as response to the Task Generator.

  4. The response is merged with the input message and, in the output mapping, mapped to the XML format, which is expected by the next module in the workflow.

Watch points in the Designer

The input messages of both conversion steps are also visible in the Watch Mode of the Designer:

  1. As long as the form is displayed, a watch point stands well ahead of the linking arrow (in this case: in front of the module EnterOrder):

    module guide 820 1

    When you open the watch point, the Task Generator’s input message is displayed.

    Now, the Workflow waits until the browser returns the form data, which means, until a user presses the Submit button of the form.

  2. After clicking the Submit button, the response is sent to the Task Generator and the next form is displayed. Now, the watch point is displayed on the arrowhead close to the Task Generator (in this case: in front of the module EnterOrder):

    module guide 820 2

    When you open the watch point, the result is displayed.

    The response is not displayed in the Task Generator in the output mapping in this way. There, it is directly merged with the input message.