async function serializeToJs() { const workingCopy = await project.createWorkingCopy(); const domainModelInterface = workingCopy.model().findMicroflowByQualifiedName("FirstMatch"); try { const domainModel = await mendixplatformsdk_1.loadAsPromise(domainModelInterface); console.log(mendixmodelsdk_1.JavaScriptSerializer.serializeToJs(domainModel)); //print out the generated JavaScript console.log("success!"); } catch (error) { console.log(`error: ${error}`); } } serializeToJs(); In following script while executing the same i am getting TypeError: Cannot read property 'load' of null . while i want to load microflow named “FirstMatch”.
↧