Maximo

 View Only
  • 1.  ArcGISDataSync Crontask on demand

    Posted Thu May 04, 2023 10:58 AM

    Hello,

    I would like to invoke *the functionality of* an instance of the ArcGISDataSync Cron Task on demand with ad hoc values for the parameters. I can autoscript the creation, execution, and delete of a cron task instance, but that seems clunky. Have you already done something like this, and are you able to share what you did? Or is there API documentation (JavaDocs) for Spatial, to help me figure this out?

    I will appreciate any help.



    ------------------------------
    Blessings,
    Jason Uppenborn
    Sr. Technical Maximo Consultant
    Cohesive
    ------------------------------

    #MaximoSpatial
    #Maximo


  • 2.  RE: ArcGISDataSync Crontask on demand

    Posted Fri May 05, 2023 07:55 AM

    The sync logic is contained in the ArcGISDataSyncProcessor class that is part of the com.ibm.tivoli.maximo.fdmbo.arcgis package. We declare it and then act on it like:

    ArcGISDataSyncProcessor dataSyncProcessor = new ArcGISDataSyncProcessor();

    long recordCount = dataSyncProcessor.process(url, null, getParamAsString("EXTERNALSYSTEM"),getParamAsString("ENTERPRISESERVICENAME"), getParamAsString("SPLITTAG"), getParamAsString("GISOBJECTNAME"), processedFlagMap, recordKeys, getRunasUserInfo());

    The url, processedFlagMap, and recordKeys are managed inside the cronAction. Without creating a new cron task instance, you'd have to recreate that logic. 

    If you're OK spinning up a cron task instance, set the autoremoval flag to 1 and it will remove it automatically when it's done. That might be an easier path to ensure any new logic that gets added to the cron task is applied to your scenario. 



    ------------------------------
    Steven Shull
    ------------------------------



  • 3.  RE: ArcGISDataSync Crontask on demand

    Posted Fri May 05, 2023 01:49 PM

    Thank you, Steven, for that synopsis. It is very much appreciated.



    ------------------------------
    Blessings,
    Jason Uppenborn
    Sr. Technical Maximo Consultant
    Cohesive
    ------------------------------