Configuring the Web Run node

  1. On the General tab, specify this information:
    Connection information
    • If you want to use an existing configuration, select Configuration name. If you do not select a name from the list, the default configuration will be used.

    • If you want to specify parameters specific to the node, select Override connection.

    URL type

    Select from these options:

    • External: a web program on the web which could be any REST style web service on a server

    • Infor Lawson: the web program is an internal web program, for example, jub-run.exe

    Web program

    Specify the executable for the web program and the directory in which it resides. The default is cgi-bin/jobrun.exe.

    For example, if the web program is external and the web URL for this external call is \\corpairline.com\airfare\find.exe, then \airfare\find.exe is the web program.

    Success string

    This string is generated and returned as part of the data returned by the web program. If this string is found in the data returned by the web program, the program has executed successfully.

    In Email and Branch activities, you can use Web Run variables to refer to the success string and whether it was found:

    <!WebRunActivityName_success> is the (Boolean true/false) value which indicates whether the data returned included the "Success String" (as defined in the properties of the Web Run activity), for example, <!WebRun9740_success>.

    <!WebRunActivityName_result> is the (String) data returned by the URL in the Web Run activity, for example, <!WebRun9740_result>.

    You can branch a process based on whether a success string is returned. This is just one example of how a process could branch based on whether a success string is found:

    If a batch program is:

    • Not successful (the success string is not returned), an email containing that information is sent to the owner of the process.

    • Successful (the success string is returned), the process moves to a different activity node.

    Header string

    This setting is available only when the URL type is External.

    Specify the header information that needs to be sent to the web program, for example, authentication headers, Accept: text/plain, Accept-Charset: utf-8, etc.

    Method

    Select from the list of standard HTTP methods.

    Post string

    The parameters for the web call string that will be posted to the web server. For example, the internal web program jobrun.exe has these parameters:

    • FUNC(TION): The action (run) to be performed.

    • USER: The name of the person under whose name this job should be run.

    • JOB: The job name that should be executed.

    • OUT: The type of output (text) desired.

    To use a string that has already been created, click Import.

    To construct a Data Service (DME) or Transaction Service (AGS) call, click Build. The Build button is available only when the URL type is Infor Lawson.

    Content Type

    Specify the media type of the entity-body (Post string) sent to the web program. Some web services process requests based on the content type of the request body.

  2. On the On Error tab, specify this information:
    What should happen on an error?

    Select from the available options.

    Notify

    Select the check box if you want to send a notification when an error occurs. If this option is selected, you must fill out the notification details.

    Custom log entry

    Select the check box if you want a custom log entry in addition to the system-generated log entry.