AS

 

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

by Ana Sequeira Author
Posted on Mon, 12/19/2016 - 18:31

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

0
by Ana Sequeira Author
Posted on Mon, 12/19/2016 - 18:35

Ok, I was suppose to do have instead of "EPC2BPMN", should have the ID of the transformation:

"2ffa8851-a1ee-11de-4531-00155882d57a", but now got a transformation fail , what could be the problem?

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock