Page 1 of 1

Get Chore Name that Process is Executing In?

Posted: Thu Dec 08, 2011 1:07 am
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

Re: Get Chore Name that Process is Executing In?

Posted: Thu Dec 08, 2011 1:40 am
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.

Re: Get Chore Name that Process is Executing In?

Posted: Thu Dec 08, 2011 1:55 am
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

Re: Get Chore Name that Process is Executing In?

Posted: Thu Dec 08, 2011 2:24 am
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.