How do I add a parameter using the SDK to a microflow call action?
I've created in order a:
- MicroflowCallAction
- MicroflowCall on MicroflowCallAction
- MicroflowCallParameterMapping on MicroflowCallAction
Now, how do I add a Parameter on the MicroflowCallParameterMapping?
I couldn't find any documentation or example Typescript code fore this. This is what I've got so far:
let microflowCallAction = microflows.MicroflowCallAction.createIn(actionActivity);
let microflowCall = microflows.MicroflowCall.createIn(microflowCallAction);
let destMF = <microflows.Microflow>workingCopy.model().findMicroflowByQualifiedName(microflowName);
microflowCallAction.microflowCall.microflow = destMF;
console.log(microflowCallAction.microflowCall.parameterMappings.length);
// Logs 2
let parameterMapping = MicroflowCallParameterMapping.createIn(microflowCall);
// How to add the parameter?
parameterMapping.parameter = ????