Case
I created a UsrCustomHelper module where I placed my code. When I connect this module to the replacing schema of the contract section (ContractPageV2 ). When I try to call it, bpm'online displays an error that the module is not found.
Solution
To ensure correct operation, connect the module by the name it has in the system. You use CustomHelper in your code, while you need to use UsrCustomHelper, which is the real name of your module.
Thus, in the define section of your module, make the following changes:
define("UsrCustomHelper", [], function() {
In the define section of the schema, where you want to use the module, make the following changes:
define("ContractPageV2", ["ContractPageV2Resources", "BusinessRuleModule", "GeneralDetails", "Terrasoft", "UsrCustomHelper"], function(resources, BusinessRuleModule, GeneralDetails, Terrasoft, CustomHelper) {
Leave CustomHelper as the name of the incoming parameter if you wish, in this case the call of module methods will remian unchanged:
this.set("Number", CustomHelper.toTranslit(ownerAbb).toUpperCase()+response);