MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now Learn More
//LAUNCH JOB
SearchPathSingleObject searchPathSingle = new SearchPathSingleObject("/content/folder[@name='XXX']/folder[@name='XXX']/jobDefinition[@name='JOB_XX']");
Option[] runOptions = new Option[0];
ParameterValue[] parameterValues = new ParameterValue[0];
AsynchReply asynchReplyRes = test.connectionSrc.getJobService().run(searchPathSingle, parameterValues, runOptions);
//GET EVENT ID
AsynchDetailEventID eventID = (AsynchDetailEventID) asynchReplyRes.getDetails()[0];
//Relaunch on Error
SearchPathSingleObject relaunchPath= new SearchPathSingleObject("/content/folder[@name='XXX']/folder[@name='XXX']/jobDefinition[@name='JOB_XX']/history[@eventID='"+eventID+"']");
AsynchOptionSearchPathSingleObject relaunchOption = new AsynchOptionSearchPathSingleObject(AsynchOptionEnum.restartHistoryLocation,relaunchPath);
// add restartHistoryLocation to Option
Option[] runOptionsRelaunch = new AsynchOption[]{relaunchOption };
AsynchReply asynchReplyResRelaunch = test.connectionSrc.getMonitorService().run(searchPathSingle,parameterValues,runOptionsRelaunch);
com.cognos.monitor.tse.TSEException: java.lang.NullPointerException
Quote from: bergsorensen on 02 Oct 2024 02:52:51 AMFirst :)
We have all our excisting models in Framework Manager, and atm. no ressourcer to move this to a datamodules setup.
Though the navigation paths functionality in datamodules is very interesting.
Is there a similar functionlality in FM?
Thanks
Kasper
Quote from: MFGF on 01 Oct 2024 09:26:23 AMjoin('',
grep('System Admin',CSVIdentityNameList())
)
#
MF.
# join(','; grep('System Admin'; split('||';CSVIdentityNameList('||')) ) ) #
Quote from: MrKlar on 01 Oct 2024 08:31:43 AMHi there,
CSVIdentityNameList() gives me back comma separated values. How do you convert that into a macro to be able to make use of grep() function to be able to search for a certain value?
Thank you very much.
BSP Software Documentation |
MetaManager Documentation and Knowledgebase |
Version Control Documentation and Knowledgebase |
BSP Software | Resources | About Us | ||
MetaManager | BSP Software Training | BSP Software | ||
Integrated Control Suite | YouTube Channel | Micro Strategies Inc | ||
Security Migration | IBM Cognos | |||
Integrated Management Suite | ||||