Conversion of deprecated functions in imported process applications and toolkits
To prepare a process application to be deployed to multiple device types, ensure that its
artifacts and the artifacts in its corresponding toolkit dependencies are suitable for use on both
mobile and desktop devices.
Business Automation Workflow provides functions that enable you to convert deprecated coach views from artifacts that were built in earlier versions into views from the UI toolkit.
You can convert coach views from the deprecated Coaches and Responsive Coaches toolkits into UI views that are based on newer technologies and can be used to build applications that run on multiple device types.
The conversion ensures that every deprecated coach view has at least one replacement in the UI
toolkit. When one deprecated coach view can convert into different UI views, the configuration
options that you specified before conversion determine the output after conversion. For more
information about the mapping between the deprecated functions and their corresponding functions
after conversion, see Mapping deprecated functions to UI functions.
- You do not have to convert a process application or toolkit that is created in Business Automation Workflow
25.0.1.0.
- Build the new process application or toolkit by using only mobile-ready views from the UI toolkit for all the new coaches and coach content.
- Avoid mixing non-responsive or responsive deprecated coach views and UI views in the same coach.
- Convert a process application or toolkit that you imported from an earlier version of Business Automation Workflow or an IBM® BPM version. The conversion UI is enabled for process
applications or toolkits that depend on the deprecated Coaches or Responsive Coaches toolkits, or on the Content Management toolkit. In the conversion process, you replace the deprecated coach views in all or the specified artifacts that belong to the process application or toolkit with UI views.
- All the view instances in the artifacts selected for conversion remain intact and unchanged.
- All the references to deprecated coach views in the Coaches and Responsive Coaches toolkits are converted into UI views.
- All the references to deprecated Content Management coach views are converted into corresponding views from the same Content Management toolkit.
- Some but not all the configuration options, bindings, implemented services, and values for responsive device settings that are defined for a converted coach view are preserved after the conversion.
Remember:- This is a best-effort conversion that ensures that each deprecated coach view has at least one replacement in the UI toolkit. However, the conversion does not guarantee that the behavior, the configuration options, bindings, and some of the implemented services and responsive device settings of the resulting UI view remain identical to those of the original coach view. That is why it is important that you test and reconfigure the UI view as necessary to ensure that it works as expected. For example, if the implementation of a specified service in a deprecated coach view is not preserved after conversion, you might need to recreate the service implementation in the corresponding UI view.
- Post-conversion configuration is also required for custom JavaScript and CSS code that refers to elements and classes in deprecated coach views. Differences in the CSS code for views require that you verify and reconfigure the custom CSS to ensure that the CSS is still compatible with the converted UI views.
- If you are using or converting to the UI views, you must add a dependency on the System Data 25.0.1.0 toolkit or a toolkit or process application that has a theme. The UI views require theme definitions. The Carbon theme in the System Data toolkit provides these theme definitions and it is the default theme for new process applications.
To plan your way through the conversion, understand how the conversion
works and the concepts that are involved in the process.
- Artifacts that contain deprecated coach views
- For a specified process application or toolkit, the conversion UI lists all the artifacts that directly depend on deprecated coach views from that application or toolkit. The artifact list can include a mix of coach views, heritage human services (deprecated), and client-side human services whose coaches use deprecated coach views. Depending on your business needs, you can select all the artifacts in the list or only some of them for conversion.
- Toolkit dependencies
- If the listed artifacts that contain deprecated coach views have
toolkit dependencies or include coaches or coach views that have toolkit
dependencies, the toolkit dependencies are listed in the Toolkit Dependencies section. The list includes all the
toolkit dependencies for the specified process application or toolkit,
from direct dependencies to dependencies of dependencies. Important: Regardless of how simple or complex the hierarchy of toolkit dependencies is, when you convert its deprecations you must always start at the deepest level and follow the described bottom-up conversion strategy while you ensure that you convert all the dependencies.
- Bottom-up conversion strategy
- Whether you start the conversion from a process application or
a toolkit, follow a bottom-up strategy that includes the following
main steps: Remember: Before you proceed with the conversion, take a snapshot of the process application or toolkit.
- In the toolkit dependencies structure, go to the deepest level that has no custom toolkit dependencies and start the conversion there.
- Convert the deprecated coach views in all artifacts for each toolkit dependency, one level at a
time, and work your way up until there are no dependencies left to convert.Tip: Other users might have already converted some toolkits that your process application is dependent on. If a converted version of a toolkit exists, upgrade the toolkit to that version directly.
- For each toolkit dependency, at every level, follow this process:
- Check - Check whether a converted version of a toolkit dependency exists:
- If it exists, skip step 2 and update the version of your toolkit to the converted version.
- If it does not exist, continue with steps 2 - 5.
- Convert - Convert the deprecated coach views in all the listed artifacts for that toolkit.
- Test and customize - Test the results of the conversion in the artifacts and customize where necessary. Retest the artifacts to ensure that they work as expected.
- Refresh- (Optional) Refresh (
) to make sure that there are no more artifacts and dependencies left to convert for the
current toolkit. - Take snapshot - Take a snapshot of the converted toolkit.
- Check - Check whether a converted version of a toolkit dependency exists:
- Move up one level and, from the dependencies listed under UI Conversion or from the library, change the dependency version to the version of the snapshot that you took.
- At the top application level, iterate through steps 2 - 4. Then retest and update the custom artifacts as necessary.
- (For the Coaches toolkit only) From the library, remove the application's dependency on the
toolkit.Note: The dependency on the Content Management toolkit is automatically upgraded.
- Example
-
