AS

Hi,

Does someone know if it's possible to build a fragment in javascript? I would like to use it in models creation. The other option is to use a "ready for use" fragment as a template but how I can get it in a report?

Looking forward to hear from you.

by Martin Miskovic
Posted on Thu, 08/27/2015 - 07:46

Hello,

I am sorry but what is a fragment? Do you mean a fragment / part of a model?

Regards,

Martin

0
by Albina Schupak Author
Posted on Thu, 08/27/2015 - 07:52

In reply to by martin.miskovic

This is kind of caption or header with, let say, company logo picture, type of model , date creation or last change and ect.. It's very useful for models.

0
by Martin Miskovic
Posted on Thu, 08/27/2015 - 09:23

Hi,

we do not use this feature, but I looked it up. According to this, your request is not possible:

http://www.ariscommunity.com/users/kwanchoo/2011-03-24-adding-fragment-header-model-automatically

the only thing I can think of is to create templates and store them somewhere in ARIS database. Then you could copy these and add stuff you like. Question is, if this is applicable to your needs.

Regards,

Martin

0
by Albina Schupak Author
Posted on Thu, 08/27/2015 - 10:39

In reply to by martin.miskovic

Thank you very much for your quick reply. Yes, I would like to go this way but I need it for REPORTs and not for MACROs and I did not find any info regarding this. We create header using poligon with white color and place model attributes on it. It's not exactly what we want to see.

0
by Martin Miskovic
Posted on Thu, 08/27/2015 - 11:06

Well in that case only 2 options pop in my head.

1. Create desired objects and create their occurrences with report. But this won't do if you need other items, like polygons.

2. Create fragment-like-model that you can then copy and add other object occurrences, specific for each model. This will work exactly as typical fragment does.

Regards,

Martin

0
by Albina Schupak Author
Posted on Thu, 08/27/2015 - 11:36

In reply to by martin.miskovic

This is good idea. Does it work dynamically if an user copies this "fragment-like-model" from the report-created-model and paste it on others models? Do attributes' "fragment-like-model" change automatically? 

Thanks.

0
by Martin Miskovic
Posted on Thu, 08/27/2015 - 11:50

That depends on what exactly do you want to show on a fragment. If you want to have only company logo and polygons with model attributes, just add them via Insert -> Model attribute and these attributes will be dynamically changes according to current model.

Therefore if you create a copy of this template model, the attributes will refer to the model copy and not to the original one.

The only problem is it takes a little bit of time to make the template looks pretty nice.

Martin

0
by Albina Schupak Author
Posted on Thu, 08/27/2015 - 12:20

What do mean " just add them via Insert -> Model attribute "? Can I have piece of code, please?

Our header (part of the code):

model.CreateTextOcc(xx, yy, Constants.AT_Name);

model.CreateTextOcc(xx, yy, "Type: " + model.Type()); //it's a problem: when an user copies this "fragment" the model type does not change because it is not attribute

model.CreateTextOcc(xx, yy, "Last Change: " + Constants.AT_LAST_CHNG_2);

 

0
by Albina Schupak Author
Posted on Sun, 08/30/2015 - 13:54

In reply to by zalbina

Hi again,

The my problem is that I have more then 100 different model types. Is it possible to change model type?

Thanks.

0
by Martin Miskovic
Posted on Fri, 09/04/2015 - 10:39

Well I suggested that you create fragments manually as models. If you use this method, the model attributes will change without problems.

I am certain that the same result could be achieved via programming as you are writing. Unfortunately I do not have the resources to examine it properly.

Best regards,

Martin

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