The deployment stage affects the types of revisions you can make to an application. You can deploy an application either to Development or to Production:
When you deploy with the deployment stage set to Development, you can
test the deployed application. After testing, you can change anything about
the application. For example, you can deploy an application, test it, and
decide to add or delete data fields. Because the application is still in
development, PAE assumes that you do not need to preserve data or open
work items. As a result, PAE replaces the whole application when you
redeploy it.
For example, suppose you create some process instances using Process
Express. Later, if you decide to change a data field in Process Builder and
redeploy the application, all existing process instances of that application
will be deleted from the database.
Summary of Allowed Revisions
This section lists the different aspects of an application that you can change. The summary lists are grouped as follows:
Changes to Activities and Transitions
Table 10.1 summarizes the revisions allowed to activities and transitions, depending on the application's deployment stage.
Changes to Data Elements
Table 10.2 summarizes the revisions allowed to data elements, depending on the application's deployment stage.
Changes to Forms, Scripts, and Content Store
Table 10.3 summarizes the changes allowed to forms, scripts, and the content store in deployed applications. These changes are allowed in both the development stage and in the production stage.
Deployed Applications Compared with Local Copies
In most cases, you want to edit the deployed version of an application, not the
version stored locally. You'll want to do this because the deployed version is
usually the most current. If you edit the local version and then deploy it, you
will overwrite your current deployed version.
Note
If your local version has a unique application ID that differs from that of your
deployed version, you will not be allowed to deploy the local version.
Using a Backup of a Local Application
When you open a deployed application, Process Builder saves a copy of the application locally, in the builder/Applications/application_name folder. But you may already have a version of the same application stored locally. In that case, opening the deployed version will launch a dialog box that asks whether you want to overwrite the local version with the deployed version.
If you choose to overwrite the local version, Process Builder saves a copy of the local version in a file called application_name_backup.zip. In this way, you'll have a backup of your local version in case you need to revert to it. For example, the deployed version might be corrupted, or it might not contain recent changes that you made to the local version. To revert to the local backup version, unzip the file.
Saving a Local Application to Another Name
Sometimes you want to make changes to an application, but the changes are not allowed at the deployment stage. In that case, use Save As to rename the application, and then make the changes in the new application.
To rename an application, perform the following steps:
Open the most recent version of the application (usually the one deployed to the cluster).
From the Application menu, choose Save As.
In the dialog box that appears, rename the application.
Note that you can use the same name if you save the application to a
different local folder, but the new application will have a different unique
ID. You will not be able to overwrite the deployed version of the
application with your updated version, even though the name is the same,
because the unique ID is different.
In the application tree view, double-click the application name to access the properties.
Make any changes required to the application, and redeploy under its new name.
|