Hi all,

i have a lot of "Person Type" objects that I want to change to "Position". Is that possible?


by Carsten Wolff Author
Posted on Wed, 11/25/2009 - 13:50

...sorry - found the Replace Object Type macro...which I will use...WITH CAUTION :)

by Uwe Roediger
Posted on Wed, 11/25/2009 - 15:15

Hello Carsten,

of course this report is very powerful and might bring the desired result for you. And it is recommendable to be cautious using it because all objects in the selected database will be affected.

An alternative could be to write a new macro or report that can be started on a single object or multi-selection of objects with same type. With this approach you can control what object(s) will get a new type. And you can include more intelligence into the transformation procedure. So it is possible to write a certain attribute value into another attribute of the new object type or to change the type of connections related to the object instead of simply reassigning the connections to the new object type.

Best Regards


by Kris Nunes
Posted on Thu, 11/26/2009 - 16:36

It depends on how you want to be helped. if you are going to handle it by custom scripts, 


here are some simple code snippets which will help you

for (var i = 0 ; i < (objectDefs.length -1)+1 ; i++){

namePObj = objectDefs[i].Name(g_nloc);

//groupCurrent = objectDefs[i].Group();

objectDefs[i].ChangeGroup ( newGroup);

replacingObject = newGroup.CreateObjDef ("new object ttype", namePObj, g_nloc );

ooutfile.OutputLnF((i+1) + " - Object created:"+replacingObject.Name(g_nloc), "REPORT4");

transferTheAttr(objectDefs[i], replacingObject);



function transferTheAttr(objectDef, newObject){

var attrbutes = objectDef.AttrList ( g_nloc );

for (var i = 0 ; i < (attrbutes.length -1)+1 ; i++){

newObject.Attribute( attrbutes[i].TypeNum ( ), g_nloc ).setValue(objectDef.Attribute( attrbutes[i].TypeNum ( ), g_nloc ).getValue());

// temp = objectDef.Attribute( attrbutes[i].TypeNum ( ), g_nloc ).getValue();

ooutfile.OutputLnF(" - atrribute created:"+ newObject.Attribute( attrbutes[i].TypeNum ( ), g_nloc ).Type()+"=" + newObject.Attribute( attrbutes[i].TypeNum ( ), g_nloc ).getValue(), "REPORT4");



by Carsten Wolff Author
Posted on Tue, 12/01/2009 - 10:06

Hi Uwe and Kris,


Thanks a lot for your replies - I will look into them.

Regards Carsten

by Ayman Al-Sayyed
Posted on Thu, 03/15/2012 - 10:57


the above code is only copying the attributes to a new object; but i need to replace the current object on the EPC with the new object (change object type not copy the object whit a new type).

please help

by Uwe Roediger
Posted on Thu, 03/15/2012 - 13:43

Hello Ayman,

of course the above code is not enough to replace objects. This is a potentially quite complex operation, because you have to care for the existing occurences, connection definitions and occurences, the aligned models and the attributes of the object to be replaced.

I propose you have a look into the above mentioned report script "Replace Object Types". You can open it in the Scripts-Component under Reports-Administration.

If you really want to replace all objects with a certain type in the whole database by another type, you might use this script. If you want to replace only single objects you might use parts of the script in a new report.

Best Regards


by Dick Linschoten
Posted on Tue, 04/16/2013 - 15:54

Is there any one that updated the "Replace Object Types" report so it works on selected objects

And wants to share it?

I'm interested


Featured achievement

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


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