Page 1 of 1

Automatic Chore Disabling

Posted: Tue Oct 28, 2008 3:59 pm
by armas
Is there a way through TI code to disable/enable a chore??

Thanks

Re: Automatic Chore Disabling

Posted: Tue Oct 28, 2008 4:54 pm
by Renaud MARTIAL
Hello,

There's no TI instruction to enable or disable a Chore.
However, you can simulate this function by:
- adding a Numeric Attribute 'disabled' to the '}chores' dimension
- creating a process (with a parameter giving the chore name) that checks if the attribute 'disabled' is = 1 for this chore
If the answer is Yes, call the 'choreQuit()' instruction.
- Add this process as the first one to be executed by your chores.

You can then control the execution of chores by setting a value of 1 as 'disables' attribute.


Hope it helps,

Renaud.

Re: Automatic Chore Disabling

Posted: Wed Oct 29, 2008 8:38 am
by Steve Vincent
its already being talked about as an enhancement request in here