Get Chore Name that Process is Executing In?

Post Reply
PlanningDev
Community Contributor
Posts: 349
Joined: Tue Aug 17, 2010 6:31 am
OLAP Product: Planning Analytics
Version: 2.0.5
Excel Version: 2016

Get Chore Name that Process is Executing In?

Post by PlanningDev »

Is there a way to pick up the name of the chore a process is executing in? I was hoping to provide the name of the chore when outputting to e mail the error code if any of the processes fail
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Get Chore Name that Process is Executing In?

Post by Alan Kirk »

PlanningDev wrote:Is there a way to pick up the name of the chore a process is executing in? I was hoping to provide the name of the chore when outputting to e mail the error code if any of the processes fail
Not directly.

If a process is shared between chores, we typically call them from a single parent process via ExecuteProcess. The Chore name is defined as a constant in the parent process, and a parameter in the child processes. The parent process then passes the constant via the parameter, so that whenever the child process needs to output something it has the chore name available.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
PlanningDev
Community Contributor
Posts: 349
Joined: Tue Aug 17, 2010 6:31 am
OLAP Product: Planning Analytics
Version: 2.0.5
Excel Version: 2016

Re: Get Chore Name that Process is Executing In?

Post by PlanningDev »

Thanks for the reply!

I also found out that the TM1User() function will output the chore name when run in a scheduled chore. Unfortunately we have to trigger the chores due to an unknown data warehouse update time.

Thanks
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Get Chore Name that Process is Executing In?

Post by Alan Kirk »

PlanningDev wrote: I also found out that the TM1User() function will output the chore name when run in a scheduled chore.
Good point; I should have mentioned that.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Post Reply