I would like to upgrade my BAM extension to version 3.1. What steps do I need to follow?
This recipe covers the key steps needed to migrate to BAM 3.1, including a database migration script, recommended extension upgrades and important information regarding trackpoints and instance/token attributes.
IMPORTANT! Appway 6.1 (minimum) is required to use BAM 3.1
- Shutdown and delete your existing BAM Extension v2.0 or v3.0
- Run a DB migration script
The script for Oracle is provided at the end of this list. Please contact the Appway Product Team to get the appropriate script for your DBMS via your assigned CSM or Solution Engineer. - Upgrade the PortalWorklist extension to version 4.4.1 (if used)
- Upgrade the ComponentExtension to the latest version available (tested with ComponentExtension v3.4)
- Install the DefaultIcons extension version 1.0.0
- Install and start the BAM 3.1 Extension
- Upgrade the BAM dashboards and resolve conflicts (if any)
Here is the migration script for the Oracle DBMS mentioned in Step 2 above. If you do not use Oracle, please contact the Appway Product Team to get the appropriate script for your DBMS via your assigned CSM or Solution Engineer.
CREATE TABLE BAM_WorkflowTokenParticipants (
workflowTokenId varchar(40) NOT NULL,
workflowInstanceId varchar(40) NOT NULL,
userId varchar(255) DEFAULT NULL,
startTime number(20) NOT NULL,
endTime number(20),
PRIMARY KEY (workflowTokenId,userId,startTime)
);
INSERT INTO BAM_WorkflowTokenParticipants (workflowTokenId,workflowInstanceId,userId,startTime)
SELECT workflowTokenId, workflowInstanceId, userId, creationTime
FROM BAM_WorkflowTokens
WHERE status = 'Active' OR status = 'Suspended';
INSERT INTO BAM_WorkflowTokenParticipants (workflowTokenId,workflowInstanceId, userId,startTime,endTime)
SELECT workflowTokenId, workflowInstanceId, userId, creationTime, modificationTime
FROM BAM_WorkflowTokens
WHERE status = 'Completed' OR status = 'Cancelled';
Trackpoints now save KPIs directly to the BAM DB and do not store the values in instance/token attributes. If you were using attributes stored with BAM trackpoints outside of BAM (for example in the portal), add a script function to save the KPIs as standard instance/token attributes.
Standard instance/token attributes are no longer saved to the BAM DB by default. If you need to keep storing those attributes to the BAM DB automatically (for example if you were using ProcessInstanceSetAttribute() and/or ProcessTokenSetAttribute() functions to store BAM KPIs instead of trackpoints), please set the BAM extension configuration property bam.instance.attributes.enabled and/or the property bam.token.attributes.enabled to true.