Quantcast
Channel: ARIS Report Scripting
Viewing all 257 articles
Browse latest View live

Create a Object on a opened Model via Report

$
0
0

Hello,

I have a problem to create an object on a opened model.

 

I write a macro with a custom UserDialog. The macro should be executed on a model.

This UserDialog transfer the user input to a report and the report create a object to a selected path and additionally it should create an object on the selected Model. 

 

But I get always an error code: 

oModel.createObjOcc(intSymbolNumber, oCreatedObject, resultX, resultY, true, true);  -->

 

 

I don´t get this errorcode, when the model is closed... 

Can someone help me? 

 

Thanks!!

 


Creating model with script and update it via REST API

$
0
0

Hi all!

I need help with the following task:

I want to create model with script(because it's not possible with Aris repository) and than to update the model with REST API calls(PUT method). The update is for creating model objects and connections. 

In between I suppose I need to use token creating for connecting to the repository.

Can someone please help me with the whole script? How do I make connection with the Aris script to call methods in the Aris repository?

Thank you in advance

 

Controlling the size of graphics in custom reports

$
0
0

Hi,

I'm building a report that will run on models. The report will simply show the model diagram (graphic). The problem is that if the diagram's size is big, the report automatically reduces the size to fit into the page. The behavior that I want is to keep the original diagram's size and instead to increase the size of the page. Similar to the behavior of the built-in report (Export to PDF).

Any help is highly appreciated.

Recovering scripts/reports in a local database

$
0
0

Hello,

due to an installer failure while updating the license, I had to reinstall ARIS 9.6.

To recover my local database, I moved the folder work_postgres_local from my former installation to the new installation: it worked successfully.

Unfortunately, I cannot find my customized Evaluations/Reports in the Administration tab of ARIS Architect anymore.

What I can do to make them visible again?

Thanks in advance!

Change the selection in a Combobox in a report

$
0
0

Hello dear Community,

in my report I have a combo box where I can select a zoom factor for the graphics. It works well in this direction.
Now I would like to set the combo box to one of the options depending on another input. And that doesn't work.
According to the help in ARIS, the following function should do exactly what I want:

Report class Dialog
void setDlgSelection (String sDlgItem, int nSelectedIndex) - Sets selection for lists, combo boxes and tables.

Alternatively I found the following function:

Report class SingleSelectElement
boolean setSelection (int nSelectedIndex) - sets the selected index (single selection)

 

Unfortunately, however, both functions do not deliver the desired result. Either the report runs without errors, but without the desired result, or I get an error message.

The command lines between the two "///" are the variants I tried and the comment behind them is the result. However, only one variant was activated at a time. The others were commented out.

The error messages are listed under the source code.

 

Can anyone tell me why this doesn't work for me and what mistake I made? How can I set the combo box correctly? I can't imagine that shouldn't work with combo boxes. This works for all other input objects.

 

Many thanks to all of you who take care of this and support me.

---

And here the addressed source code:

var aGrSize = new Array();  // Table of zoom factors

function DIA_configSubDialog()
{
    ...
    aGrSize = ["automatisch", "individuell", "100%", " 70%", " 30%"];
    this.getPages = function()
    {
        ...
        oOptions.CheckBox(30, 90, 280, 15, "Change size", "GrSize");
        oOptions.ComboBox(100, 110, 110, 20*aGrSize.length, aGrSize, "GrSelW");
        ...
        return [oOptions];
    }

    this.OptCod_changed = function(sNewSel)
    {
        var aPages = new Array();

        aPages[0]  = this.dialog.getPage(0);
        ...
        aPages[0].getDialogElement("GrSize").setChecked(lPrGrSiz);
        ...
        aPages[0].getDialogElement("GrSelW").setEnabled(true); // That works

        ///

        aPages[0].getDialogElement("GrSelW").setSelection(nSelection);               // Gives no error, but no reaction at the dialog window
        this.dialog.getPage(0).getDialogElement("GrSelW").setSelection(nSelection);  // Gives also no error, but does not work
        aPages[0].setDlgSelection("GrSelW", nSelection);                             // Gives an error (1)
        this.dialog.setDlgSelection("GrSelW", nSelection);                           // Gives an error (2)
        Dialogs.setDlgSelection("GrSelW", nSelection);                               // Gives an error (3)
        oOptions.setDlgSelection("GrSelW", nSelection);                              // Gives an error (4)

        ///

        ...
    }

}

(1) Dialog function call failed:org.mozilla.javascript.EcmaError: TypeError: Cannot find function setDlgSelection in object DialogPag.
(2) Dialog function call failed:org.mozilla.javascript.EcmaError: TypeError: Cannot find function setDlgSelection in object UserDialo.
(3) Dialog function call failed:org.mozilla.javascript.EcmaError: TypeError: Cannot find function setDlgSelection in object Dialogs.
(4) Dialog function call failed:org.mozilla.javascript.EcmaError: TypeError: Cannot find function setDlgSelection in object com.aris.modeling.server.bl.logic.webreprot.dialog.AServerDialogBuilde.

 

ARIS Report script with dialog box

$
0
0

Hi all,

Please if anyone can help.

I have to do report with dialog box where the user can select groups, objects and models. 

The idea is from the root group to have tree with parent and child groups, models and objects .Probably this can be shown in ListBox.

The thing is that next to every group, model object there has to be checkbox for the user to select or not for the item.

Can anyone help me how to do this with script?

Thank you.

Show objects and models in dialog

$
0
0

Hi all, 

Hopefuly someone can help me with this!

How can I show tree of objects and models from a certain database in a dialog box with script?

Every one of them to have option to be selected by the user, with possibility of multiple selections

Thank you!

Report script methods for CHANGING custom attributes' value list

$
0
0

Dear all,

Summary: I need to import a list of possible attribute values from an external system through a report script. How can I do this?

Explanation:

A customer wants to identify weak points (OT_RISK/ST_WEAK_POINT) in his business processes. He requested that each weak point shall be categorized, using two custom attributes with value lists.

He also requested that the possible values for these attributes should be imported and continually synchronized with an external system, which I planned to implement as a report script.

However, I can not find any report script methods that would allow me to change the Aris Metamodel in use. Note that I'm not trying to add or change attribute types on the fly, only the list of possible attribute values.

Can this be done through a report script? Or a macro? It certainly is possible through ARIS Architect's Administration interface, so, as far as I can see, there's no conceptual conflict....

Any help?

 


How to create or export the names of all activities of an EPC to an Excel file in ARIS Express?

$
0
0

Hi everyone!

Hi everyone!

Anybody knows how I can export or create an script, in ARIS Express to export the names of all activities of an EPC in ARIS Express to Excel?

 

Regards,

Marcelo Celebroni

Forum: 

Report die man auf der Suche nach Objekten startet/ Report that starts in searching of objects

$
0
0

Hallo Leute,

könntet ihr mir bitte helfen? ich möchte ein Report schreiben, die man auf der Suche nach Objekten (role) startet und eine Übersicht in excel erzeugt wird welche Rollen welche prozessschritte in welchen Prozessen durchführen.

Hallo,

can you help me please i am new to Aris

I would like to write a Report that starts in searching of objects and generate an Overview in excel,  which roles which process steps in which processes run.

sorry for my English

Regards

Bouba

 

 

ComboBox - initial setting, display and value doesn't match

$
0
0

Hi Community,

there's a little problem that's annoying me right now while developing a report for ARIS 9.8.
I have a dialog window, where I among others want to select a text from a ComboBox and save this into an array. And this several times in a row without leaving the dialog.
Let's assume I have the following list:
aMod[0] = "A"
aMod[1] = "B"
aMod[2] = "C"
aMod[3] = "D"

The first time I call the selection everything is fine. I see on the ComboBox the first entry "A". If I select another (e.g. "C"), the other text will be saved into the resulting array aTxt. If I don't change the selection the first entry will be saved.
The next time I call the selection I expect to see the first entry "A" again. But instead I see the former selected entry "C". I can select another (e.g. "B") and the other will be saved.
The worst case is when I call the selection once again and do not change it. The former selection is displayed "B". But the first entry "A" will be saved into aTxt. It seems as if the selection index set with setSelection() in the ComboBox does not match the displayed selection index.

I also tried to use the getValue() function instead of the getSelection(). But the behavior is the same.
The setValue() function instead of the setSelection does not work. Obviously there is no setValue() function for this type of objects.

The procedure is like this:
I press the button BNew, make my selection in the ComboBox and confirm it with the button BApply. Then the selected text is saved into a new record in aTxt.
Before pressing the BNew-button and after pressing the BApply-button the ComboBox is not enabled and not visible. It's not sure that the items of the selection list aMod are the same every time. Therefore aMod is reloaded every time the selection is activated.

function DIA_configSubDialog()
{

    var aTemplate = new Array();

    this.getPages = function()
    {
        var aMod = getMod();

        aTemplate[0] = Dialogs.createNewDialogTemplate(1170, 600, "Dialog");

        ...

        aTemplate[0].ComboBox(900, 330, 20, 20*aMod.length, aMod, "CBMod");

        ...
    }

    this.BNew_pressed = function()
    {
        var aPages = new Array();
        var aMod   = getMod();

        aPages[0].getDialogElement("CBMod").setEnabled(true);
        aPages[0].getDialogElement("CBMod").setVisible(true);

        aPages[0]  = this.dialog.getPage(0);
        aPages[0].getDialogElement("CBMod").setItems(aMod);
        aPages[0].getDialogElement("CBMod").setSelection(0);

        ...
    }

    this.BApply_pressed = function()
    {
        var aPages = new Array();
        
        aPages[0]  = this.dialog.getPage(0);

        aTxt       = createRec(aTxt, aPages);

        ...
    }

function createRec(aTxt, aPages)
{
    var aMod;
    var sMod;
    var nMod;
    var nIdx;

    aMod = aPages[0].getDialogElement("CBMod").getItems();
    nMod = aPages[0].getDialogElement("CBMod").getSelection();
    sMod = aMod[nMod];

    nIdx          = aTxt.length;
    aTxt[nIdx]    = new Array();
    aTxt[nIdx][0] = sMod;

    ...

    aPages[0].getDialogElement("CBMod").setEnabled(false);
    aPages[0].getDialogElement("CBMod").setVisible(false);

    return aTxt;
}

Can anyone help me tell me what I've done wrong?
What I want is that every time I call the selection the first item is displayed in the ComboBox and that I get the item that's selected. Completely independent of how often the selection was called and whether the selection was changed or not.

Many thanks in advance for your effort.
Greetings Holger

How to create a report with attributes from different object types

$
0
0

Dear Community,

We use ARIS Architect 10. I'm trying to create a new report for BPMN models.

The report should include 3 columns:

1. column: object "role", attribute "name"

2. column: object "function", attribute "name"

3. column: object "function", attribute "description/definition"

The table should be sorted by process flow.

 

As role and function are different object types, I don't know how to combine the attributes into one table.

Could you please support. I'd be happy to get a template.

 

Thank you.

 

Print XML file from ARIS Script

$
0
0

Hi everyone,

I couldn't find answers to this question on the forum, so I will post it as new one.

I am working on a script in ARIS and I have a structure in a string variable that I want to print in file.

I want to be .xml file that will contain the structure that is stored in the variable.

How can I do this?

Many thanks

Prochandbook - skip function that has no objects

Second level in Table of contents does noet work correctly in ARIS 10.0.7

$
0
0

We created a report with a two-level TOC in ARIS 9.8. After importing in ARIS 10.0.7 the TOC is not correct.

9.8 shows

1. Section 1 ...........................................1

1.1 Section 1.a........................................2

1.2.Section 1.b........................................3

 

10.0.7 shows

1. Section 1 . ........................................1

2 ..........................................................2

2.1 Section 1.a ......................................3

2.2 Section 1.b ......................................4

 

How can we solve this problem?


How to Trigger a query from a report

[SOLVED]XML Export -> can´t create XML output file

$
0
0

Hello,

I use a macro to start a report which create a XML file with some values. The report use the values and create a simple xml file. 
 

When I start the debug mode on the report, then everything works. It creates a xml file on following path:

C:\Users\****\Documents\ARIS 9.8

 

But when I start the report over the macro with "Report.execute(...)" -> then i can´t find any xml file. 

But  "xmlOutput.WriteReport()" return true, so the document has been successfully loaded...

 

 

Thanks!

__________________________________

//Macro code: 

selection = Context.getSelectedDatabases();  

(...)

var reportInfo = Report.createExecInfo("dc912610-b53f-11dd-59b4-b1c29b9461d4", selection, Context.getSelectedLanguage());
        reportInfo.setProperty("OBJEKT_NAME", oName);
        reportInfo.setProperty("OBJEKT_TYPE",oObjectType);
        var result = Report.execute(reportInfo, Context.getShowResult());

 

//Report Code:

var oObjName = Context.getProperty("OBJEKT_NAME");  
var oObjType = Context.getProperty("OBJEKT_TYPE"); 
var documentName = oObjName +".xml"

var xmlOutput = Context.createXMLOutputObject(documentName, "Root");
var xmlItem = xmlOutput.addElement(xmlOutput.getRootElement(), "ObjDef");
xmlItem.setAttribute("Name", oObjName);
xmlItem.setAttribute("TypeNum", oObjType);

xmlOutput.WriteReport();

 

 

 

Aris Script - Constants variables, values and meaning

$
0
0

Hi all,

I´m trying to implement a new report using scripting. However i need to know how can i found the list of Aris Constants their meaning, and value.

For example i´m trying to found an list with variables like :

  • Constants.C_BLACK
  • Constants.C_TRANSPARENT
  • onstants.FMT_BOLD 
  • Constants.AT_NAME
  • Constants.SORT_NONE
  • Constants.SORT_NONE,
  • etc..

Thanks for all,

Pedro Madureira

Report in ARIS Publisher 10.0.6.x

$
0
0

Good afternoon,

I developed a report in Designer (not in code), to extract the value chain from Process level (n) as the goal of reading the 2 levels below: subprocess (n + 1) and activity (n + 2) .
In Designer the report works perfectly and has the expected output, but in Publisher NOT. Note: Before I imported the script into Publisher, I made sure I updated the information, and then I updated the publication.

 

The output that the report generates in Publisher (10.0.6.1261136) is not correct:

Question1: The report has a problem with the word seating, how can I prevent this?

The text that appears in the report output (for example): "Este documento só é válido na versão electrónica na Intranet. Caso esteja a lê-lo em papel, assegure-se que a versão que dispÃμe corresponde à disponÃ-vel na Intranet."

The text of the image should be as follows: "Este documento só é válido na versão electrónica na Intranet. Caso esteja a lê-lo em papel, assegure-se que a versão que dispõe corresponde à disponível na Intranet."

 

Question 2: In the publisher there is a connection (several times) between two objects, which does not exist in the Designer, and that is generating the big problem for this report. 

My goal was to export the process model (example: PS.03) associated with the subprocesses (SPS.03.01, SPS.03.02 ...), and after that, enter the activities level.

image

In the report, to select the subprocess (n + 1),I "called" the objects connected to the process by the output connection "is process oriented superioment", and did the same to the level below (n + 2).

The problem:
In the publisher, appears that PS.03 (n) is superior to itself (is wrong), and in the output of the report appear = all subprocesses (n 1) + PS.03. (n). I just wanted to see only the subprocesses related to PS.03, but JUST the subprocesses. The same happens with the activities.

If we want to represent in Designer with the error that only appears in Publisher, it would be something like this:

imageimage

I have already validated all the connections that the objects have in the Designer, and the relation that appears in Publisher (n is greater than an, and n + 1 is greater than n + 1, and n + 2 is greater than n + 2), DOES NOT EXIST IN DESIGNER.

The report though well done, and working in the designer, but in Publisher does not have the expected result.

So the wrong connection only exists in Publisher, and I do not understand why?

Best regards,
Ana Rita Lopes

search Objects in a macro

$
0
0

Hello,

i want to create a small dialog in a macro, where the user can search for objects like the original search function from ARIS.

The problem of the function searchObjects ( Group p_StartGroup, String p_sName, int p_iOptions ) is, that the function only search in the parameter group, but not in the childs of the group. 

The function has to search in all lower levels of the start group.

 

Is there a way to search in all lower levels of the start group? or to use the original search function from ARIS in a macro?

 

Thanks!

 

 

 

 

Viewing all 257 articles
Browse latest View live