Websydian v6.1 online documentationOnline documentation - WebsydianExpress v3.0

Installing 2E Developer

Overview

If you want to develop using 2E, there are a few steps you need to perform after making the basic installation of WebsydianExpress.

Before progressing with these steps, please make sure that you have installed WebsydianExpress for iSeries, and can access the delivered sites.

Restore 2E model

The 2E model is delivered in two save files. As part of the basic installation of WebsydianExpress, these save files has been placed in the installation library (default WXP30INST).

The savefile WXPMDL contains the model library, WXPGEN contains the generation library.

Restore these two objects using the RSTLIB command:

RSTLIB SAVLIB(WXPGEN) DEV(*SAVF) SAVF(WXP30INST/WXPGEN)

RSTLIB SAVLIB(WXPMDL) DEV(*SAVF) SAVF(WXP30INST/WXPMDL)

Import definitions to your own model

Having the necessary functions defined in a separate 2E model is typically not of much use. To be able to access these functions in a 2E model containing your own data definitions and functions, you need to copy the definitions from the delivered model to your own.

Add 2E runtime and generation library to library list

As all other functions created using 2E, the functions you create for 2E developer must be executed in a job that has the 2E runtime in the library list.

To ensure that the jobs used by the WebsydianExpress application has access to the 2E runtime, you must add your 2E runtime library/libraries to the library list for the job description EXPRESS found in the data base library for WebsydianExpress (Default WXP30DB).

The easiest way to deploy your objects in a development environment is to just add you generation library to the library list.

Add your generation library to the library list for the job description EXPRESS.

Add menu item for 2E example to the site structure

At this point, there are two different versions - one for the cases where the site is being upgraded from version 1.0/1.1 - and one where the site is being installed.

Installing new Site

The delivered demosite contains the necessary definitions and objects for running the 2E Horse Example. The only thing missing is that it is necessary to add a menu item activating the example business process to the site structure.

Upgrading from version 1.0/1.1

In this case, the demosite does not contain the definitions of the business process and presentation - so these has to be created in addition to adding the business process to the site structure.