Question
Muhammad Waseem · Oct 10, 2021

Production is not auto starting while using container

Hi,

Production is not auto starting even by adding  <Production Name="myProd.Production" AutoStart="1"/> in installer.cls file:

Thanks

Product version: IRIS 2021.1
0
0 172
Discussion (4)1
Log in or sign up to continue

Hi,

That should work (as advertised) but if you want a workaround .... call a method instead, that implements the same thing:

...
    <Invoke Class="App.Installer" Method="SetAutoStartProduction" CheckStatus="true" >
      <
Arg Value="${MyNamespace}" />
      <Arg Value="myProd.Production" />
    </Invoke>
....

- assuming 'MyNamespace' contains the namespace name you are setting up, as a variable (or hard code it).

Then include the method:

ClassMethod SetAutoStartProduction(myNamespace, prodClass) As %Status

   quit ##class(%EnsembleMgr).SetAutoStart(myNamespaceprodClass)
}

Steve

Might as well invoke the method directly:

<Invoke Class="%Library.EnsembleMgr" Method="SetAutoStart" CheckStatus="true" >
  <Arg Value="${MyNamespace}" />
  <Arg Value="myProd.Production" />
</Invoke>

Or is there a reason to use a proxy method?

No reason at all. Just suggesting also that any custom methods can be invoked for all sorts of custom functionality - however sure, if that's all that is required... Go direct.