Planning Analytics

Planning Analytics

Get AI-infused integrated business planning

 View Only
  • 1.  TI processes to read / include library files

    Posted Fri April 23, 2021 09:09 AM
    Thought I would post this to see if there is interest before posting the Idea.

    I have many TI processes that leverage the same lines of code e.g. Emailing error logs, moving files etc. etc.
    If I find better ways of doing some of these things, I need to edit probably 30+ TIs on this one new model alone.

    Ideally I would have liked to have these common lines of code in a separate file and use something like:
    <--Include Mail.lib -->

    Not really sure how it would work technically but ideally you would want TM1 to fetch the contents of the library at runtime and not convert or simply insert static lines of code a la copy/paste.

    Anyone else have many processes that have repeated sections of code and could benefit from something like this?

    ------------------------------
    George Tonkin
    ------------------------------

    #PlanningAnalyticswithWatson


  • 2.  RE: TI processes to read / include library files

    Posted Fri April 23, 2021 09:53 AM
    Hi George,

    What about creating TIs to do the repeated code and calling them from the main TIs instead?

    Rgds

    James

    ------------------------------
    James McCarthy
    ------------------------------



  • 3.  RE: TI processes to read / include library files

    Posted Fri April 23, 2021 10:02 AM
    Hi James,

    Thanks for the feedback.

    I am doing that already with some processes - using child processes as a function - also raised the idea previously of having functions which can pass variables back and forth without using Global variables.

    For one of my use cases e.g. emailing the ProcessError log to a set of recipients, I would need to use Global variables to pass the filename and calling process (no function to get this from the stack).
    In another example where I move files, chaining on another process will increase what is being processed and the source file may be locked when I want to move. Would need to add more delays etc.

    So yes, I could do it but it is far from elegant.

    ------------------------------
    George Tonkin
    ------------------------------



  • 4.  RE: TI processes to read / include library files

    Posted Fri April 23, 2021 10:54 AM
    Hi,

    I wonder if the new scripting tool that has been muted will deal with things like this?

    Does anyone know more about that? All I know is something was in development but have not heard anything much about it since.

    regards,

    Mark

    ------------------------------
    Mark Wragg
    ------------------------------