0 votes
948 views
in Coach Views by (530 points)

Why I don't have plust button in BPMExt-Core.zip?

I want add  BPMExt-Core.js

https://bpm.tips/?qa=blob&qa_blobid=5938565423697714779

1 Answer

0 votes
by (30.6k points)

BPMExt-Core.zip is the ZIP managed asset that carries the Coach Framework extension JavaScript of the BPM UI Toolkit (Spark): BPMExt-Core.js plus its dependencies. There is no "plus button" for zip assets - the web file editor of Process Designer only lets you replace a zip as a whole (the "+" / upload icon appears for the toolkit's files list, not inside the zip). To add or change BPMExt-Core.js:

  1. Do not edit the IBM toolkit: it is read-only (system toolkit) and every fix pack replaces it.
  2. Put your own file into your toolkit: Toolkit > Files > Web files > upload BPMExt-Core-custom.js (or a zip with several files); reference it from a coach view (Included scripts) that every coach includes - scripts inside a zip are referenced as zipname.zip/path/file.js in the include list.
  3. If you must override a function of the framework, do it after the framework loaded: include your file in a view that is placed after the toolkit's views, and patch the function on bpmext.ui / window.bpmext at load.
// custom-overrides.js in your toolkit (included by a "Framework Overrides" coach view on every coach)
(function () {
  if (!window.bpmext || !bpmext.ui) return;
  var original = bpmext.ui.formatNumber;                       // example: wrap a framework function
  bpmext.ui.formatNumber = function (n, opts) { return original.call(this, n, opts).replace(/ /g, " "); };
})();

Note the toolkit version: on 8.5.7 the UI Toolkit came from Salient as "Spark UI Toolkit" (BPMExt-Core.zip inside it); IBM's later "BPM UI Toolkit" (SYSBPMUI) restructured the files (bpmui.js). Copying a newer BPMExt-Core.js into an old toolkit does not work - upgrade the toolkit dependency instead.

References

Related questions

0 votes
1 answer 2.1k views
asked Aug 22, 2023 by sanjay_hdi (360 points)
0 votes
1 answer 1.4k views
0 votes
1 answer 882 views
0 votes
1 answer 2.2k views
asked Dec 22, 2016 in Interview Questions by Anil Singh (30.6k points)
0 votes
1 answer 1.3k views
0 votes
1 answer 1.7k views
0 votes
1 answer 1.7k views
0 votes
1 answer 2.2k views
0 votes
1 answer 3.0k views
0 votes
1 answer 797 views
0 votes
2 answers 4.7k views
0 votes
1 answer 1.9k views
0 votes
1 answer 605 views
0 votes
3 answers 4.0k views
0 votes
1 answer 903 views

723 questions

807 answers

98 comments

4.9k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...