Professional Documents
Culture Documents
Migrating Workflows: Maximo Business Object
Migrating Workflows: Maximo Business Object
In its simplest form, a workflow process can consist of a conditional action, based
on a submitted record criteria, requiring no user interaction. More complex
workflow processes can be split into sub-processes and used to manage highly
interactive change management approval processes, such as multiple
assignments, actions (for example, status updates), and notifications via email or
pager systems, using predefined communication templates.
6.1.1 Requirements
In this use case scenario, we use the Source workflow PRSTATUS. The
requirement is to migrate a duplicate of this workflow with modifications to the
action lines, including communication templates that advise the requestor of the
status of the request.
6.1.2 Solution
The original workflow might already exist (PRSTATUS) in the Target environment,
and a new workflow that is based on the existing workflow needs to be migrated.
Therefore, only the new workflow process and the components that have been
added will be migrated. Any existing component that has not been changed is not
migrated.
We defined an approach so that the workflow configuration and the related new
configurations are migrated in a single Snapshot migration package.
From Workflow Designer, open the PRSTATUS workflow, duplicate it, and name
it REDBOOK_WF. Save it as Version 1.
The goal is to add a notification to the action in the connecting line between the
SUB_APPR and CLOSE tasks, as illustrated in Figure 6-1.
The naming convention with the prefix RB_ will be applied to support the
selective migration process that we will describe later. This naming convention is
extremely important and supports the selective migration process that is
described further in this chapter.
A communication template can define one or more recipients in the form of email
address, role, person, or person group. For this exercise, a communication
template, RB_REQ_APP is added to the Action PR_APPR in the connector line
between the two task nodes. In addition, a role will be related to the Purchase
Requisition requestor. See Figure 6-3 on page 143.
When the communication template is associated with a role, the role has to
be defined using the Roles application, which can be accessed by clicking Go
To System Configuration Platform Configuration Roles. You can
create the role based on a previously defined person or person group record
or a role that is associated with a person record. For this example, the use of
a record-related role player (PR.Requestedby) allows the use of the
previously loaded PR records on a role-based basis. The requestor of the
purchase requisition is the role player in this case, as shown in Figure 6-4.
Create the new migration group by duplicating the existing BPM group. The
dependencies are simply deleted, and the order of the objects is the same.
We name the new migration package RB_BPM, also. After the RB_BPM
package definition is saved, SQL filter criteria can be associated with each of the
object structures in the group, as needed, to identify the subset of the
configurations requiring migration.
6.1.7 Deployment
After the package definition has been saved and approved, the physical package
can be created, distributed, and deployed using the Migration Manager
application. The deployment of workflows and their associated configurations
can be performed in a live environment without the need to restart the application
server or turn on Admin mode.
Version
It is common practice to develop and test multiple versions of a workflow process.
However, you will migrate the chosen active version, and the version will reset to
“1” in the Target environment.
Activation
Although a manual activation step is necessary, this step also gives you the
opportunity to verify the contents of the workflow and to only activate the
workflow at the appropriate point in time in the Target environment.
6.2.1 Requirements
For this example, the main process ISMACCEPT and all of its sub-processes
have been changed extensively. There have been many actions, roles, and
communication templates changed and added to the process to meet the change
requirements.
However, there has been no documentation of what exactly was changed, and
the Migration Manager Change package was not used to track these
configuration changes. The only known fact is that the workflow process
ISMACCEPT has been reconfigured and needs to be migrated.
Resource: For more information about migration object structures, refer to the
Migration Manager Guide:
http://publib.boulder.ibm.com/infocenter/tivihelp/v3r1/topic/com.ibm
.mam.doc_7.1/pdf/mam71_migration_mgr_guide.pdf
The standard group BPM, which ships with the product, contains these migration
objects. We will create a new group that is based on this group for our scenario.
Create the new group by duplicating the standard BPM group first, leaving all of
the defaults, and then, follow these steps:
1. Name the group MYBPM with a description Business Process Modules
without dependencies.
2. Remove all dependency groups.
3. Save the group.
Not removing any of the existing objects from the duplicated BPM group allows
for future use of the new group to migrate other similar configurations, for
example, Escalations.
By removing the dependency groups, we are not including all of the configuration
content in these groups. However, dependencies must be always part of the
migration process. In this use case scenario, we work on an existing workflow.
Therefore, we assume that the configuration on which the workflow elements
might depend is already in the Target environment. If, for example, a new table
attribute was created or a new person group for a role was added, these objects
must be migrated before you attempt to migrate our workflow.
Create a new package definition that you can name MYTESTS-WF. This
package is the Snapshot type and contains the migration group MYBPM.
The next step is to define the SQL criteria within each of the object structures in
the group. The only information that we need for this criteria is the name of the
main workflow, ISMACCEPT. The conditions for other related workflow
dependencies, such as roles, actions, and templates, will use in-line SQL
statements that are built to retrieve the information within each object.
Table 6-1 on page 151 lists the Where clause SQL command statement
conditions for each object. These conditions result in one or many records of
configuration content for each migration object.
The conditions for each object generate the precise content for this package. The
Where clauses for the objects defined with a logical false statement (1=2) will
6.2.7 Deployment
After all package definitions are saved, approved, and activated, the next step is
to create and distribute the package to the Target environment. After the package
is available to the Target environment, it is time to deploy.
Load and deploy the MYTESTS-WF package in the Target environment. The
deployment does not require turning Admin Mode on; however, it is a good idea
to turn Admin mode on as part of the change management process.
The new workflow version will not be activated in this case. After the records
using the old workflow are out of the workflow process, the new workflow can be
activated.
The updated workflow will be deployed as inactive and disabled, and its
subprocesses will not enabled. To complete the deployment, you must disable
and deactivate the old versions of the workflows.