Run The Copy Workflow Process Templates DB Process
After you have a "copy workflow process templates" DB process in the target database, you should add a table rule to its primary instruction to define which workflow process template(s) to copy from the demonstration database. For example, if you want to copy a single workflow process template called CI_DAILY, you would have the following table rule:
- Table: CI_WF_PROC_TMPL (WF Process Template)
- Override Condition:#CI_WF_PROC_TMPL.WF_PROC_TMPL_CD = 'CI_DAILY'
If you do not introduce this table rule to the primary instruction of the DB process, ALL workflow process templates in the demonstration database will be copied to the target database (and this may be exactly what you want to do).
At this point, you're ready to submit the background process identified on your "copy workflow process templates" DB process. This background process highlights the differences between the workflow process templates in the demonstration database and the target database (the target database is the environment in which you submit the background process).
When you submit the CI_COPWF background process, you must supply it with an environment reference that points to the source database (i.e., the demonstration database).
When the CI_COPWF process runs, it simply highlights differences between the workflow process templates in your source database and the target database. It creates a root object in the target database for every workflow process template that is not the same in the two environments (actually, it only concerns itself with workflow process templates that match the criteria on the table rule described above).
After you've approved the root object(s) associated with the workflow process template(s) that you want copied, submit the CL-APPCH batch process to cause your target database to be changed. You must supply the CL-APPCH process with two parameters:
- The DB process of the "copy workflow process templates" DB process (i.e., CI_COPWF)
- The environment reference that identifies the source database (i.e., the demonstration database)