The following scripts are provided to create the Process Framework and Session Manager schema on a SQL Server instance:
- CreatePXTables_MSSQL.sql
- CreateSMTables_MSSQL.sql
- GrantSMRole_MSSQL.sql
Database Set Up:
The tables required by the Process Framework engine can be placed on the same SQL instance that provides the SDE geodatabase. The tables (created by the SQL scripts) must exist under a user named "PROCESS."
- Optional. Create a new database on your SQL Server instance to house the Process Framework database. An existing database can be used, but it might be easier to manage (backups, disk storage, etc.) if you create a new database dedicated to the Process Framework tables.
- Create the PROCESS user in the SQL Server instance. Remember that it is mandatory the user name is "PROCESS." Grant this user access to the database discussed in step 1.
- Open the SQL Server Query Analyzer window, connecting to the database discussed in step 1 as the new PROCESS user.
- Run the CreatePxTables_MSSQL script. This script will create the tables required by the Process Framework engine.
- Run the CreateSMTables_MSSQL script. This will create the tables required by Session Manager.
- As a DBA user in SQL Server, create a role called "SM_USER." This can either be done in a Query Analyzer window or the Enterprise Manager. This role will be used to assign the appropriate table privileges to users of Session Manager. The name of this role is not mandatory; however, if you use a different name for this role you will have to alter the SQL script in the next step. The following SQL syntax will create a role in SQL Server:
sp_addrole SM_USER;
- With the Query Analyzer, connect to the database as the PROCESS user and Run the GrantSMRole_MSSQL script. This script grants the appropriate table privileges to the "SM_USER" role. Again, if you changed the role name as discussed in step 6, you’ll need to alter this script to use the name you chose.
- Grant the various existing SQL Server users access to the database discussed in step 1. Since the number of users involved in this step is probably equal to the number of users that access SDE, you’ll probably want to make a script to perform this task.
- Add the various existing SQL Server users to the "SM_USER" role. Since the number of users involved in this step is probably equal to the number of users that access SDE, you’ll probably want to write a script to perform this task.
Session Manager Administration
Add each user involved in step 8 above to the Process Framework with the "Users" tab in the Process Framework Administration Tool. After you have imported the work flow (see Add Work Flow, below), you can also use the "Users" tab to assign the Session Manager user roles to each user.
Add Work Flow
The following steps allow you to export the work flow from the sample database provided with the ArcFM Solution installation and import that work flow into your own Process Framework database. Once imported, this work flow can be modified to meet your specific business needs.
- To add a work flow, use the Import/Export tab in the Process Framework Administration tool and the sample Session Manager database (SessionManager.mdb) provided with the ArcFM Solution install.
- Login to SessionManager.mdb as "Process".
- Select the Import/Export tab.
- Select the Export radio button and select the Process Framework Workflow Importer/Exporter checkbox.
- Designate an XML file name to which the workflow will be exported.
- Click Export and select the MMSessionManager extension.
- Close the Process Framework Admin tool when the export is complete.
- Login to your Session Manager database as "Process".
- Select the Import/Export tab.
- Select the Import radio button and browse to the XML file you just exported from the sample data.
- Click Import.
For more information about the Process Framework Administation Tool and the Import/Export tab, see the Using ArcFM Solution online help and the Process Framework Administration section.
Access the Process Framework Administration Tool in the Start menu > ArcFM Solution > Process Framework > Admin.