Author Topic: Generating daily HTML report of entire repository  (Read 16226 times)

MBrandt

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Generating daily HTML report of entire reposit
« Reply #15 on: April 12, 2013, 09:41:09 pm »
Hello Stoppy,

Dit you get this to work already? I am having the same problem. When I have the "Run only when user is logged on" flag turned on in the Windows (2008) scheduler everything works fine. When I turn this off the application seem to get stuck. No output, nothing and the task doesn't end either.

Regards,
MBrandt


Quote
Hi Simon,

Thanks for the reply.

It is definately not item number 2.

I am not a techie, but if you could supply some reference documents/sites or further details for item 1 this would be appreciated.

Regards,

Stoppy

smendonc

  • EA User
  • **
  • Posts: 148
  • Karma: +5/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Generating daily HTML report of entire reposit
« Reply #16 on: August 07, 2013, 06:24:27 am »
I finally had a need to review my old stuff.  To get a custom header into the html published from the api with RunHTMLReport the registry key "HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\options\WEBDIRHEADERIMAGE" needs to be set to the path of the image file.  The path should be exactly as typed in when generating manually.

I built a wrapper for RunHTMLReport callable from a batch file with the image header as a parameter.  The function to update the registry is below (v10.0.1008).

        private void SetHeaderImage(EA.Repository repository, InputParameters parms)
        {
            RegistryKey headerImageKey = Registry.CurrentUser.OpenSubKey("Software\\Sparx Systems\\EA400\\EA\\options", true);
            headerImageKey.SetValue("WEBDIRHEADERIMAGE", parms.HeaderImage);
        }


Stan.

Andreas1975

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Generating daily HTML report of entire reposit
« Reply #17 on: August 13, 2013, 11:54:57 pm »
Quote
Hello Stoppy,

Dit you get this to work already? I am having the same problem. When I have the "Run only when user is logged on" flag turned on in the Windows (2008) scheduler everything works fine. When I turn this off the application seem to get stuck. No output, nothing and the task doesn't end either.

Regards,
MBrandt


Quote
Hi Simon,

Thanks for the reply.

It is definately not item number 2.

I am not a techie, but if you could supply some reference documents/sites or further details for item 1 this would be appreciated.

Regards,

Stoppy

Not sure I can help, but maybe point out in right direction.

Have the exact same problem, and me and my colleague spent weeks in this issue. Everything from modifying user rights, to COM launching rights, etc, etc.

First it just "stopped" was because a user not logged in couldnt find the license file properly. It just stopped, since EA expects user inputs in prompting location of the license file.
Now it just stops of some other reason, and I'm pretty sure it requires some other user input, that I dont understand.

We simply gave this up by now, and living with the fact that the automation server needs a logged in user, until someone else figures it out...;-)

So - My best guess is that EA in the automation requires some user input, since I know for sure that for my case it results in "just stopping"...

If you guys finds it ... please let me know..

regards
Andreas

JdBAlten

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Generating daily HTML report of entire reposit
« Reply #18 on: December 12, 2013, 08:58:48 pm »
The suggestion above will generate either a fixed package identified by it's guid or a complete model.

For my solution, I used a tagged value to determine which package to take as a root. The app will scan the complete repository and only report the package(s) where rhrExport is defined to be 'true'.
Tagged values could also be used to determine other parameters used for RunHTMLReport like the path or template to use.

Stoppy

  • EA User
  • **
  • Posts: 115
  • Karma: +0/-0
    • View Profile
Re: Generating daily HTML report of entire reposit
« Reply #19 on: December 13, 2013, 10:04:41 am »
Hi MBrandt,

Sorry about the late reply.

Posted by: Andreas1975            Posted on: Aug 13th, 2013, 2:54pm
Quote
We simply gave this up by now, and living with the fact that the automation server needs a logged in user, until someone else figures it out...

This was my end game too.

The only issue I have now is when the Server Admins restart my box due to MS Updates or virtual machine shuffling and don't log my dedicated user back on to the server.

Regards,

Stoppy  :D
Skills: Business Process | Business Analysts | Product Configuration Manager | Business Intelligence