FJ

Hi everybody,

I have been working on a script based report that selects a specific type of models within a group and then generates a pdf report for each model using the model name as file name. It works like a charm.

My problem is this: I want to replicate the group structure in my output, creating a folder with the group containing the reports and put the outputs inside that. Right now I get a list of pdf reports inside the selected report output folder, like this:

Subprocess 1 report.pdf

Subprocess 2 report.pdf

Subprocess 3 report.pdf

.....etc.

 

I want this:

process 1 (folder)

  -subprocess 1 report.pdf

  -subprocess 2 report.pdf

process 2 (folder)

  -subprocess 3 report.pdf

  -subprocess 4 report.pdf

...etc.

Any suggestions? I feel that all I need is a line that creates a folder. It's a report by the way, not a macro.

 

Thanks in advance. 

 

by Ilya Seletkov
Posted on Thu, 04/21/2016 - 10:29

Hello!

I didn't test in 9.x, but my solution in 7.2 is:

1. Then the report finishes all content of "output" folder on server with subfolder structure is copied to client in "selected path" folder.

2. There is no function in 7.2 to get path and name of output folder on server.

3. Way around is 1) to create base file with unique name (with date and time) and save it to output folder.

2) use shell command to find this file in file structure.

3) Create needed file structure inside output folder by using java methods such as java.io.File.

Hope this helps.

BR, Ilya.

1
by fox jedah Author
Posted on Thu, 04/21/2016 - 13:50

In reply to by iseletkov

Thanks for your time Ilya,

I´m working on ARIS Business architect 7.1, so I will continue to look for a workaround.

Maybe I will create some batch file or something to create those folders.  

 

Thanks again for your time, have a nice day!

1
by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Thu, 04/21/2016 - 14:28

Hm, you could also use a batch file and the scriptrunner around this...

But then you would not be able to start the report directly from ARIS, only from this batch file...

1
by Francois Du Toit
Posted on Fri, 04/29/2016 - 14:29

Hi,

Idea:

Run a macro in ARIS where it would presumably be possible to get access to the user's file system to create the folders, then run the script from the macro to create the outputs per folder.

Have not done this, but seems feasible :)

Rgs,

Francois

1

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • CR
  • BH
  • Profile picture for user Ivan.Ivanov.softwareag.com
  • Profile picture for user mscheid
  • MS
  • PacMan

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