ARIS Community - We Love BPM

Delete a model in a report

hreidemeister's picture
by Holger Reidemeister in Reports & Macros posted on 2017-12-12

Hello community,

with the command line:

oTmpModel = oTmpGrp.CreateModel(Constants.MT_EEPC_TAB, sTmpModName, LOC)

I can create a new model for temporary use. That works fine. But after the usage I don't need this model anymore.

How can I delete this model?

I would be very happy if anyone can help me.

 

Best regards

Holger

1085 Views
0 Likes
3 Comments
There are no attachments
Robert Goldenbaum posted on 2017-12-12

Hi Holger,

Group.Delete(oModel)  

or in your case:

oTmpModel.Group().Delete(oTmpModel)

BR Robert

Holger Reidemeister posted on 2017-12-12

Hello Robert,

many thanks for your help.

I tried:

oTmpGrp = oCurrentModel.Group();

oTmpModel = oTmpGrp.CreateModel(Constants.MT_EEPC_TAB, sTmpModName, LOC);

...

oTmpGrp.Delete(oTmpModel);

In my point of view that should work as well, but it didn't. May be, there was another mistake.

Anyway, now it works fine. Many thanks.

Greetings, Holger

Bernd Renner posted on 2017-12-14

oTmpGrp.Delete(oTmpModel); should deliver a boolean answer.

What is the return value in Your report?