Setting up Environment Using Sample Project
You can set up the environment using a sample project to deploy an Activity Space. This setup involves the following activities.
Tests your environment
Connects to your org
Downloads a local DB
Launches an activity space
Connects to the environment using your browser debugger
* 
You can use the sample code given in the zip package as a starting point. However, ServiceMax does not provide any support for the sample code.
Perform the following steps to set up the environment using the sample code.
1. Install NodeJS at the following link: https://nodejs.org/en/
2. Contact your account manager to download the zip package.
* 
The zip file contains the following sample projects.
__MAS_Assembly_Schematic_Example: You can use this for an image with hotspots that leverage deep link URLs to specific SFM Transactions.
__MAS_Qr_Code: You can use this for generating a QR Code for a given IP. This project uses modern Javascript like ES6, npm modules, and export/import features, which ease development for the activity space developers.
__MAS_Work_Order_Work_Detail: You can use this for Products Serviced type Work Orders. Leverages Linked SFMs to access Child Records.
3. Extract the zip package and navigate to the folder using the command line.
4. Refer to the README.md file in the zip package for steps on the configuration.
a. Create a Salesforce consumer key and secret token in the Salesforce configuration.
b. Set up Sample User Info. This is required to test the sample project with your org details.
* 
If you are on a version of the zip file older than go-debug-tool-1.4-GO1.6.0.zip, then you have to make the following changes:
From the root folder where the go-debug-tool is installed, navigate to the SyncGateway.js file located at /root-folder-of-activity-space/server/services/syncGateway.js.
Before proceeding with the npm run init-db step, in the method performInitialSync, remove the Accept-Encoding header as follows:headers['Accept-Encoding'] = 'gzip, deflate'.
5. Execute the following commands: npm run init-dbnpm start
6. On the browser, navigate to http://localhost:3000/.
7. Observe the test activity space in your browser using its developer tools.
8. Deploy the zip package to your org using SFM Custom Action. For more information, see Configure MAS Custom Action.
9. Perform Config Sync on the ServiceMax Go App. Ensure the Activity Space Custom Action is displayed under Actions.
10. Launch the Activity Space Custom Action SFM.
Related Topics
Was this helpful?