Configuration of InTouch OMI View application
- Last UpdatedNov 17, 2017
- 6 minute read
Before using the Recipe Manager Plus v4.1 with InTouch OMI View Application, you must configure the Recipe Manger Plus View application.
To configure the Recipe Manager Plus View application
-
Open the ArchestrA IDE.
-
Click the Galaxy menu and then click Import => Object(s). The Import Objects dialog box appears.
-
Browse to locate the path where RecipeManagerPlusApp.aaPKG is located.

-
Click OK. After import, the RecipeManagerPlusApp is added to the Galaxy. Once the .appkg is imported, the object will be visible under _Default Content => Apps=> InTouch OMI Apps.

-
Next, create a new Screen profile by right-clicking the Galaxy in Graphic Toolbox and then click New -> select Screen Profile. A screen profile, ScreenProfile_001, is added to the Galaxy.

-
Next, create a new Layout by right-clicking the Galaxy in Graphic Toolbox and then click New ->Layout. A new Layout, Layout_001, is added to the Galaxy.

-
Next, create a new Symbol by right-clicking the Galaxy in Graphic Toolbox and then click New -> Symbol. A Symbol, Symbol_001, is added to the Galaxy.

-
Open Symbol_001 and add two buttons from the toolbox in the left pane.
-
Specify the button label names as Login and Logout. Resize the window to a very dimension as shown in the figure.

-
Right-click the respective buttons and click Edit Animations.
-
Add Action Scripts for the Login and Logout buttons as shown below. This is important to bring out the login dialog when you open the Recipe Manager Plus application at runtime.


-
Open Layout_001. Using the Layout, you can design the view of the runtime time application. The view is set by creating panes and adding the controls into them. When you open the layout the following screen appears.

-
On the Pane1, right -click and add a pane to the left. A new pane,Pane2, is created.

-
Click the Add (+) icon on the top. A Pane3 is created as shown below.

-
Now, you can add controls into these panes. Go to the right side of the layout and click Toolbox.
-
Click the RecipeManagerPlusApp under _Default Content => Apps =>InTouch OMI Apps and then drag the RMPExecutionWebControl in Pane1.

-
Select NavTree control from the Toolbox and drag it to Pane 2.

NOTE: Navtree control will not work if you access a Standalone Recipe Manager Plus application as Navtree only reflects the hirerachy of the objects which are deployed under Archestra WinPlatform.
-
Select Symbol_001 and drag it to Pane 3.

-
The layout will appear as shown below once all controls are added. You can customize the layouts according to your Runtime application.

-
Now, select Pane1 and click the Properties tab. A list of all properties that are available from the RMPExecutionWebControl is displayed.

-
In the Content Properties, do the following:
-
Specify the RMP Server name in the Host box.
-
Slide to enable the EquipmentName as the reference and specify "MyViewApp.Navigation.CurrentAsset", so that the input for equipment name will come from the navigation tree selection.
-
Leave the remaining Properties selected as by default.
-
-
Save and close the Layout_001.
-
Configure the system to point to the ArchestrA Identity Manager.
Configuring the Application to Point to ArchestrA Identity Manager
NOTE: This is valid only if you are using the ArchestrA Identity Manager.
To configure the application to point to ArchestrA Identity Manager
-
Go to C:\Program Files (x86)\ArchestrA\Utilities\Activity IDE\BaseRuntimeApp
-
Edit View.exe.config to have the following:
<!-- Configure the AIM by adding the following key value pairs.
Replace "your_token_server" and "your_client_id" with proper values. -->
<add key="TokenServiceBase" value="https://<RMPServerName>/IDENTITYMANAGER" />
<add key="ClientId" value="SE_WSP_NG" />
<add key="Scope" value="openid profile system offline_access" />
Configuration of Operating System Security.
-
Go to the Security menu in ArchestrA IDE.

-
In the Configure Security dialog box, select the OS User based option.

-
Click the Users tab and click the Add icon to add the user login, and click the associated Roles for the added user as Administrator.

-
Click OK. The ArchestrA IDE will close and reopen.
-
Enter the valid credentials.
-
Select ViewApp in the Galaxy and create a new derived template ViewApp_001.

-
Double-click to open the ViewApp_001.

-
Select the screen from Select Screen Profile, and then click Next. The Associate Layout dialog box appears.
-
Select the layout from Associate Layout, and then click Finish.

-
Select Assets and select the Properties tab. Specify a title such as RMP Execution. Select all the equipment(s) that were imported from the Recipe Manager Plus Server and are available at Area_001.
-
Set the title to RMP Execution.

-
Save and close the ViewApp_001.
-
Right-click and create a view instance ViewApp_001_001. A new ViewApp_001_001 is added into the Unassigned area in the Model.

-
Rename the instance to NGVIEWAPP_001. You can customize the name as you want.
-
Create the model hierarchy as shown below. Create new instance of AppEngine, ViewEngine and Area. Place all the Recipe Manager Plus Server equipments in Area_001, place AppEngine_001 and ViewEngine_001 under PlantArea.

-
Move NGVIEWAPP_001 under ViewEngine_001.

-
Now right-click the Galaxy and then click Deploy.