Table of Contents
This post provides a quick start guide to installing the Case Management Accelerator 2.0.2 on the installation of ActiveMatrix BPM 4.2 with AMX HF17 using Spotfire 7.10.
Pre-requisites
Case Management Accelerator 2.0.2 requires the following pre-requisites:
- ActiveMatrix BPM 4.2 or later (refer to docs.tibco.com for installation instructions and edelivery.tibco.com for software)
- Hotfixes available from support.tibco.com
- with ActiveMatrix BPM 4.2 the ActiveMatrix 3.3 HF 17 should be fully applied. (or 4.3)
- Tibco Business Studio 4.2.0 BPM Edition or later should be installed. (or 4.3)
- ActiveMatrix BPM should be configured with a CMIS connection if you wish to use the document management components
- Analytics template is configured to point to a sample visualization on Tibco Spotfire Cloud using embedded data
- If you wish to use the Spotfire capabilities you will need to install Spotfire server:
- Tibco Spotfire 7.10 Server should be installed and the Web Player should be configured:
- To simplify the example application - it is configured using anonymous access to Spotfire
- You should configure Spotfire to allow anonymous/guest access as per https://community.tibco.com/s/article/configuring-anonymous-access-analysis-files-spotfire-75
- Spotfire Javascript API must be enabled
- Tibco Spotfire 7.10 Server should be installed and the Web Player should be configured:
- Requires use of either Firefox, Chrome, Safari, Microsoft Edge as a browser - chrome recommended
Installation and Configuration
Case Manager App
- Unzip the starter-kit package
- Case Management Accelerator 2.0.2.zip
- for TIBCO ActiveMatrix BPM 4.3. you need to follow these additional Steps.
- Upload the CaseManager.app.zip using the AppDev console
- http://localhost:8080/apps
- Located in /Case Management Accelerator 2.0.2/AppDev/CaseManager.app.zip
- Open Tibco Business Studio BPM Edition and create a new workspace
- Import the Service Request example to your workspace (File/Import Existing Business Studio Projects)
- Located in /Case Management Accelerator 2.0.2/ BStudio_ServiceRequest/ServiceRequest.zip
- Connect to your BPM server using the Deployment pane and deploy (drag/drop) the following BPM projects in order:
- CaseManager_Roles_ORG
- ServiceRequest_Data
- ServiceRequest_CaseView
You should now be able to access the CaseManager Application using http://localhost:8080/apps/CaseManager/index.html (assumes AMX:BPM on default port 8080)
Analytics Configuration
If you wish to use analytics you also need to import the analytics visualizations to Spotfire.
Note: before following these steps this you must create one case in the Case Manager Application and click one action. For example: Create a new customer (+ icon on the home page) and create a new complaint from the case screen.
- Copy and extract the file CaseManager_GenericLibrary_SPOT.zip from the installation package. Copy the file CaseManager_GenericLibrary_SPOT.SQLSERVER.part0.zip to your Spotfire Server Library directory (such as C:\tibco\tss\7.10.0\tomcat\application-data\library)
- From Spotfire client, import the library,
- Click on "Tools->Library Administration" menu
- Click on "import" then "Browse" and select the file above and click "OK" and close the Library Administration popup. For destination folder use the root (Library). Spotfire will then import the visualization and data connection.
- Click close once the import is complete to exit Library Administration
- Configure your Data source
- Click on "Tools->Information Designer". You should now see a folder called "CaseManager" under the Elements tab.
- Click on the "Data Sources" tab. You should see several data sources. Select the right data source for your AMX BPM database and select "Edit"
- Configure to match your database configuration (Connection URL, user and password). Then click save.
- Within the Data Sources tab, select your data source and Drill down into the tables to check access to the bpm database, for example, try to locate the ec_case_status table.
- You now need to re-configure information links for your chosen database
- Drill down into your data source and locate bpm/amxbpm/ folder
- Select the following tables:
- ec_attribute, ec_event_attr, ec_event, ec_case_status
- Right-click and select Create Default Information model
- Click save, drill into /CaseManager and select INFORMATION LINKS. Then click you selected DB folder (SQL/Postgres/Oracle) - dont drill in, just select the folder.
- On the next screen select the option to "Replace existing items"
- Click OK
- You now need to add a filter to the ec_event information link
- Locate the ec_event information link on the Elements tab: eg) /CaseManager/INFORMATION LINKS/<DB>/ec_event
- Right-click and choose edit
- Click filter
- Click add - choose column message_id and click OK
- Select filter Type "Values" and add paste the following values under the values column: CMF_CASE_ACTION_COMPLETED;CMF_CASE_ACTION_STARTED;CMF_CASE_TASK_COMPLETE;CMF_CASE_TASK_OPEN;BDS_GLOBAL_DATA_CASE_STATE_CHANGE
- Click Save
- Exit the Information Designer tool
- Now open the sample visualization in Spotfire from the Library Menu: File/Open from Library and select /CaseManager/TEMPLATES/CaseManager_Analytics_V1.0.3 (embedded replace your data sources)
- Replace the data sources with your information links:
- Perform these steps for each data table (ec_attribute, ec_event_attr, ec_event, ec_case_status)
- Click File Menu -> replace data table
- Select the data table and choose your newly created information links
- Click OK, then Save
- If you use Oracle. You also need to add a transformation for each table:
- add a transformation of type "change column names", then select all fields on the left column
- click on "Add"
- select the "Lower" function
- click "Insert"
- click ok
- Click Edit->Data Table Properties. For each table (ec_attribute, ev_event_attr, ec_event, ec_case_status, EC CASE EVENTS, EC EVENTS ATTRIBUTES)
- select table
- set store data-> linked to source
- click apply
- Click OK to exit data table properties screen
- Now click File Menu, choose to reload data. Now select the second tab (Case Dashboard and ensure data is retrieved from your AMX BPM server)
- You can now remove the Instructions tab
- Click File Menu, Save As -> Library item
- Save the visualization as: '/CaseManager/TEMPLATES/CaseManager_Analytics_V1.0.3'
- You will be given a Web Player URL. Make sure you can open that in a web browser.
- Perform these steps for each data table (ec_attribute, ec_event_attr, ec_event, ec_case_status)
- Test the sample template click on "File->Open from->Library" and select the "/CaseManager/TEMPLATES/CaseManager_Analytics_V1.0.3" and try to open it in Spotfire
- You can now configure the Case Manager App to point to the Spotfire visualization:
- In a web browser:
- http://localhost:8080/apps
- Double click Case Manager application
- Double click CaseManager.config.json
- Change line 20 to point to the right port number for your Spotfire Server eg:)
- "spotfireServer": "http://localhost:28080/spotfire/wp",
- Change line 23 to point to the right visualization
- "analysisPath": "/CaseManager/TEMPLATES/CaseManager_Analytics_V1.0.3"
- Click applications to return to the top level AppDev console screen
-
You should now be able to access the CaseManager Application using http://localhost:8080/apps/CaseManager/index.html
-
Click the analytics button to check the visualization is displayed.
- In a web browser:
Note: If you see a blank screen when clicking analytics in Case Manager it is likely guest access for Spotfire is not properly configured.
Troubleshooting: If you have problems - be sure to check the developer console in your browser for errors.
Roles Configuration
The Case Management Framework also supports role-based access to enable/disable certain features. Follow these steps to configure roles for the Case Management Accelerator:
- Open the AppDev console in your web browser:
- http://localhost:8080/apps
- Click the roles button on the left-hand nav bar
- Click upload
- Upload the roles zip file provided in /Case Management Accelerator 2.0.2/AppDev
- Once the roles zip is installed click the refresh icon on the roles page and you should see the following roles:
- Super, Manager, Admin, Worker, Operator
- Click the edit icon at top right of roles page, then select the Super role
- Click map/unmap role
- Drill into CaseManagerOrganization1/CaseManagerRolesOrg and select the super position, then click map
- (Now any user you map to the super position in the org model will get the supervisor (super) role)
- Repeat steps f-i for each role and map to the associated org model position
- Now in Openspace UI (http://localhost:8080/openspace/) login as tibco-admin and use the organization tab to map users to the org model positions (super/manager/admin/worker/operator). Ensure that each user is only mapped to one of these positions.
- Enable Roles for the Case Manager Application
- Click the applications tab on the left hand nav bar
- Double click the Case Manager application
- Double click CaseManager.config.json
- Scroll down to line 77 and set useRoles = true
- Click save
- Click the applications tab
- Click the edit icon at top right of the screen
- Select the CaseManager application
- Click Publish application
Roles should now be enabled for your application as per the following image:
So for example, a superuser will be able to access any of the Case Management functions but the operator user will not see OrgModel or Analytics icons in the UI.
If you want to customize the roles configuration then please review the AMX BPM documentation on using AppDev roles:
Doc's Link:
Main Page > Case-Management-Accelerator
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now