Can Nanoflow change object type from the generalized object type to the specialized object type

1
Hello Experts, I am a newbie of JavaScript. I know we can cast object in Microflow, I am wondering how we can cast object in Nanoflow from he generalized object type to the specialized object type?  Thanks a lots Zhaojie
asked
1 answers
1

Finally I found a way to cast object, it is simple, 

 

/**

* @param {MxObject} parameter

* @returns {Promise.<MxObject>}

*/

export async function JS_Object_Cast(parameter) {

    // BEGIN USER CODE

    return parameter;

    // END USER CODE

}

answered