My FNZ Studio Version
The article you are currently reading is not compatible with your selected My Appway version.

Deprecation, Migration & Known Issues

Latest Update: 25.07.2022 |
Recipe
6

Problem

I would like to upgrade my BAM extension to version 3.1. What steps do I need to follow?

Solution

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
  1. Shutdown and delete your existing BAM Extension v2.0 or v3.0
  2. 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.
  3. Upgrade the PortalWorklist extension to version 4.4.1 (if used)
  4. Upgrade the ComponentExtension to the latest version available (tested with ComponentExtension v3.4)
  5. Install the DefaultIcons extension version 1.0.0
  6. Install and start the BAM 3.1 Extension
  7. Upgrade the BAM dashboards and resolve conflicts (if any)

Database Migration Script

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

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

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.

© 2026 Appway AG. All Rights Reserved