Hello, I need to build a macro that calls this transformation from aris arquitect? is it possible?
What is the right function to do this? I am trying to use :
Macro class ModelTransformation - Method doTransformation
But i am not sure how to call this function, don't know what to write in the string parameter
doTransformation ( Model p_SelectedSourceModel, Database p_TransformationDatabase, String p_TransformationId, MTExecutionMacroOptions p_TransformationOptions, boolean p_bForceOpenResult, boolean p_bShowResultDialog )
Aris help says:
specifies, which transformation should be executed
I am trying:
selectedLanguage = Context.getSelectedLanguage();
selection = Context.getSelectedModels();
if (selection.length > 0) {
for (var i = 0; i < selection.length; i++) {
var currentModel = selection[i];
var dbGatcha = Context.getLoginInfo(currentModel).getDatabase(); //the database
var currentType = currentModel.getType(); //EPC é o 13
if (currentType == 13) {
var encontrouEPC2 = currentType == 13; //esta a dar true
ModelTransformation.doTransformation(currentModel, dbGatcha, "EPC2BPMN", ModelTransformation.createDefaultExecutionOptions(), true, true);
// var efetuaTransformacao = transformationEPCs(selection, dbGatcha);
var end = 0;
}
}
}
and i get the error: expecting at least 36 characters