Running LN sessions

Running LN sessions through LN UI

LN Studio can attach to a running LN UI and can run sessions started in LN UI. Unlike when you run sessions through BW or Web UI, the sessions are started from LN UI and not from LN Studio.

To run a session:

  1. Connect to LN Studio from LN UI.

    Start LN UI and select Options > Debug and Profile 4GL. The Debug and Profile 4GL (ttadv1123m000) session starts. Select your activity and ensure the Debug Mode check box is cleared. Click OK to save the settings.

  2. Start a session in LN UI.

Step 1 is only required at the beginning, before you start the first session. Subsequent sessions automatically start using the established connection.

Running LN sessions through BW or Web UI

You can run LN sessions from the Eclipse workbench.

For each session that you want to run, you must generate, or manually create, a run configuration. In this configuration you can specify execution parameters.

To run a session for the first time, use one of these procedures:

  • Automatically generate a run configuration and then run the session
  • Manually create a run configuration and then run the session

When you run a session, the session executes, but you cannot suspend or examine the execution.

Note: To examine the execution, you must run the session in debug mode. In debug mode, you can suspend and resume the execution, inspect variables, and evaluate expressions.

See Debugging LN sessions.

Automatically generate a run configuration and then run the session

Complete these steps:

  1. In the Activity Explorer, right-click the session.
  2. Select Run As > Infor LN Session. The session starts. A run configuration is generated automatically.

You can modify a generated run configuration in various ways. For example:

  • In the Activity Explorer, right-click the session and select Run As > Run Configurations.
  • Select Run > Run Configurations.
  • Click the Run Configurations command on the Run button pull-down menu.

The Run - Create, manage, and run configurations dialog box is displayed.

For more information, see Configurations.

Manually create a run configuration and then run the session

  1. Add a new configuration
    1. Select Run > Run Configurations, or select Run Configurations on the Run button pull-down menu. The Configurations dialog box is displayed.
    2. In the left pane, right-click Infor LN Session and select New. A new configuration is added in the left pane.
    3. In the Sessions tab, select an activity from the list.
    4. Select the session you want to run. The name of the configuration is automatically filled with the description of the selected session.

      To select a session, perform one of these actions:

      • Select a session linked to your activity from the list.
      • Click Browse to select a session that is not linked to your activity. The Browse session dialog box starts. In this dialog box you can select a session on the LN server.
      • Specify a session code.
      Note: You can only select sessions that belong to the packages displayed in the Component Explorer.
    5. Specify the launch mode for the session.

      See Configurations.

    6. Select the company in which you want to start the session.
    7. Optionally: Specify additional execution parameters, such as profiling parameters and environment variables, in the other tabs.

      See Configurations.

    8. Click Apply to save the settings.
    Note: You can also use run configurations to start sessions in debug mode.

    See Debugging LN sessions.

  2. Run the session

    Click Run in the Run dialog box. The session is started in run mode.

Note: To start sessions through Web UI you must start Web UI first.

Restarting a session in run mode

The workbench keeps a history of all configurations launched.

To restart the most recent launch, click the Run button in the toolbar.

You can restart any previous launch in various ways. For example:

  • Select a previous launch on the Run button pull-down menu.
  • Select Run > Run History and select a previous launch from the sub-menu.
  • Select Run > Run Configurations, or select Run Configurations on the Run button pull-down menu. The Run - Create, manage, and run configurations dialog box is displayed. Select the desired configuration and click Run.
  • In the Activity Explorer, right-click the session and select Run As > Infor LN Session.

Select Activity command in Web UI

The Options menu in Web UI contains the Select Activity command. You can use this command to test software components that are checked out to an LN Studio activity.

For details, see the Web UI online help.