How to get microflow variable details while using Mendix Platform SDK

0
All, I have below snippet for(const microflowBase of model.allMicroflowBases()){ if(microflowBase.qualifiedName?.includes(moduleName)){ const loadedFlow = await microflowBase.load() const microflowWithParameters = loadedFlow.objectCollection.objects.find(element => element instanceof microflows.MicroflowParameter) if(!!! microflowWithParameters) console.log(`Microflow with parameter: ${microflowBase.qualifiedName}`) } }   Gives me microflows.MicroflowObject also for the console.log i am able to see Microflow with parameter: ModuleName.MicroflowName   But I need to know the specifics of the Microflow variable. For example, I had a string-type variable for this Microflow.
asked
1 answers
0

Use filter (for a list) and MicroflowParameterObject

 

      const microflowWithParameters = loadedFlow.objectCollection.objects.filter(element => element instanceof microflows.MicroflowParameterObject)

see this serialized code

var lDAPBaseName1 = microflows.MicroflowParameterObject.create(model);
	lDAPBaseName1.relativeMiddlePoint = {"x":100,"y":0};
	lDAPBaseName1.size = {"width":30,"height":30};
	lDAPBaseName1.name = "LDAPBaseName";
	lDAPBaseName1.variableType = objectType1;  

microflowObjectCollection1.objects.push(lDAPBaseName1);

 

answered