Scripting and REST API improvements
The following improvements to the ConSol CM API and REST API have been made.
Skipping interrupt restore for scope activities (#667896)
It is now possible to use the method ticket.getScopeInfo().skipInterruptRestore(); for scope activities to avoid that the case returns to its previous position in the workflow after executing a scope activity.
Direct usage of Highcharts library (#667600)
The highcharts library can now be used directly in scripts without uploading it to the resources folder of the data directory. The following module are available by default:
- highcharts.js
- highcharts-3d.js
- highcharts-more.js
Proceed as follows to use them in a visualization script:
- Add the import:
import com.consol.cmas.common.model.customfield.visualization.FieldVisualizationContext.Resources
- Modify the
resourcesmethod in the visualization script:def resources(PageVisualizationContext pContext) {List<String> resources = [Resources.HIGHCHARTS_JS, Resources.HIGHCHARTS_3D_JS, Resources.HIGHCHARTS_MORE_JS] as String[];return resources;}
info
If you want to use other modules, you need to add them to the resources folder of the data directory as previously.