<<

Anywhere 7.6.4 installation on windows machine

Pre-requisite Ensure that the build machine has internet access and can access the gradle files https://services.gradle.org/distributions/gradle-4.6-all.zip

Download Android studio for setting up a build machine for Android https://developer.android.com/studio • open the Android SDK Manager From welcome screen, select “import project”

Click the drop down arrow besides “Configure” and select “SDK Manager” option From the “SDK Platforms” tab, verify that Android Platform SDK 28 or higher is installed.

• On the SDK Tools tab, click Check Show Package Details and select Android SDK build-tools version 28.0.1 or higher.

Click Apply, OK

Go to File > Project Structure Specify the Project SDK e.g. Android API 28 Platform

Install Anywhere 764 enablement to Maximo on windows

Download the Anywhere 7.6.4 from Passport Advantage

Extract Max_Anywhere_V764. file to a temp directory e.g. Max_Anywhere_V764_Extracted

Open Installation Manager Go to File > Preference > Add Repository Point to the Max_Anywhere_V764_Extracted\Install\AnywhereEnablementInstallerRepository.zip file

NOTE: When you install the enablement it injects the maxwanywhere build script in to the buildmaximoear., this deploys with the maximo.

Excerpt from buildmaximoear.xml from ibm\smp\maximo\deployment directory

Run buildmaximoearwas8.cmd maximo.ear file contains a maxanywhere.war for app updates

C:\IBM\SMP\maximo\applications\maximo\META-INF\deployment-application.xml

There is a context for Maximo Anywhere

maxanywhere.war /maxanywhere

When applying a Maximo Interim Fix, it would be necessary to run includeanywheremodule.cmd from ibm\smp\maximo\deployment folder Then run updated.bat , rebuild and redeploy maximo ear file Install Anywhere on Windows Server Click Install option from Launchpad Select “Install or Update IBM Maximo Anywhere” option Click Install to open installation manager File > Preference shows it’s picked up AnywhereComp764.zip as the repository

Click Update option from IM Select Anywhere

Next

Click Next

Click Next

Accept license agreement and click Next

Fill out the Maximo info and click Next

Ensure that Maximo Application Server is up and running

Select No to push notification for Android Click Next

Click Update button if this is an upgrade NOTE: If this is a fresh install, you would see an install button.

Wait for it to backup the existing MaximoAnywhere directory and build apps

Click Next

Click Finish

Open a DOS prompt Navigate to C:\Anywhere\MaximoAnywhere Run build all command WorkExecution.zip is generated under MaximoAnywhere\bin

Maximo Anywhere application container must be installed on the same computer that contains the Maximo Anywhere mobile apps.

Download node.js https://nodejs.org/en/download/

Restart the machine for the nodejs install to take effect

Go to the directory that contains your extracted Max_Anywhere_V764.zip file. Start the launchpad by right-clicking the launchpad file for your operating system Select Run as administrator Select “Install IBM Maximo Anywhere Application Container” option on the left pane Click Install on the right

Click Next

Click Next

Click Next

Click Next

Click Next

Click Install

Click Finish

Open Container.properties under C:\Anywhere\MaximoAnywhereAppCntr Check to make sure all the properties all correct

Anywhere.Application.BaseDirectory=C:\\Anywhere\\MaximoAnywhere

NODE_HOME=C:\\nodejs

JAVA_HOME=c:\\progra~1\\Java\\jdk1.8.0_111 NOTE: JAVA_HOME should be the same as the one specified in build.properties envsToBuild=android appsToBuild=WorkExecution

# Bypass the app download component. The main app will be built into the apk # users will not be presented the connect page which allows them to change the url include.webcontent=false android.sdk.home=C:/android-sdk Android_TARGET_DEVICE_NAME=android-28

Ensure that Maximo application server is up and running

Open a DOS prompt and go to the MaximoAnywhere application Container directory. e.g. C:\Anywhere\MaximoAnywhereAppCntr Ensure that the build file can be executed, and run the following command: On Windows, run build.bat

Build is successful

Copy the generated .apk from C:\Anywhere\MaximoAnywhereAppCntr\bin\android to an Android Phone

Open Work Execution app Enter the Maximo URL e.g. https://host:port/maximo Click Connect button to log in to Maximo Anywhere

Downloading system data

Download lookup data

Work List ‘My Work Order’

Build date is Jan 17th 2020

In Anywhere Admin application, select an app e.g. WorkExecution

Click Deployment tab

All the deployment should show up here

If you wish to go back to a previous deployment, click the wrench icon besides a previous deployment to activate it

If no deployment shows up here, you can try to upload the workexecution.zip by clicking the New Deployment tab

Enter a version and select WorkExecution.zip from C:\Anywhere\MaximoAnywhere\bin

Click OK

Troubleshooting

1) If the install progress bar got stuck, there would be a DOS prompt in the background that says disk run out of space Clean up disk space and re-run update

2) If build fails, go to C:\Anywhere\MaximoAnywhereAppCntr\logs directory and review the container_build_summary.log if Android SDK has not been installed, then it might complain about no WorkExecution.checksum

Error: ENOENT: no such file or directory, open 'C:\Anywhere\MaximoAnywhereAppCntr\output\WorkExecution\www\WorkExecution.ch ecksum' 2020-2-4 17:24:9 [WorkExecution::android] **Could not build app: WorkExecution for Android

In the container.properties set include.webcontent=false and run the build again

3) Internet access is required to install the anywhere container. If there is no internet access

For windows, set environment variable CTG_BYPASS_PREREQ_CHECK=True or

For Mac, export CTG_BYPASS_PREREQ_CHECK=true from a terminal session. Then Launch Installation Manager from the same terminal

4) If you receive error: “Last version installed at device” after entering the Maximo URL and clicking Connect button, try manually uploading the WorkExecution.zip from Deployment tab in Anywhere Administration application