[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
We saw that the ponctual method to create exploitation days requires to
call manually the rp
command for each day to create.
Fortunately, there is a way to automatically create exploitation days.
You just have to set the `Auto Planned' property of the referential to
true, by calling the rsa
. Every day at midnight, a new exploitation
day will be created from each referentiel whose `Auto Planned' property
is set to true. The start time of every created day is fixed to the next day
at midnight.
In this example, we'll create two identical referentials et we'll activate the `auto planned' property for one of them. Then, we'll start the day creation process and we'll see that an exploitation day was created from the referential whose `auto planned' property is true.
First, we create the referential (ra
command), we add two tasks
`t1' and `t2' (rta
command), and we add an operation to
the task `t1' to select it every days (rtoa
command).
We create a referential `r2' by copying `r1'
(rd
command) :
$ dio87c ra r1 $ dio87c rta r1 t1 $ dio87c rtoa r1 t1 add always $ dio87c rta r1 t2 $ dio87c rd r1 r2 $ |
We change the `auto planned' property of the referential `r2'
(rsa
command) :
$ dio87c rsa r2 true true $ |
The second argument is the value of the `auto planned' property and the third argument is the value of the `auto purged' property (not used here).
We call the xdi
command to print the value of the `auto planned'
property for each referentials :
$ dio87c ri r1 Referential Name: r1 Locked: false Auto Planned: false Auto Purged: false $ $ dio87c ri r2 Referential Name: r2 Locked: false Auto Planned: true Auto Purged: true $ |
You can check that the `auto planned' property of `r2' is set to true.
When the `auto planned' property of a referential is set to true, every day at midnight, a new day is created from this referential. The start time of the new day is fixed to the next day at midnight.
In our example, we would not wait until midnight to check that an exploitation
day is created. We'll start the day creation process of the `auto planned'
referentials, by simply calling the rp
command without arguments :
$dio87c rp * Prepare New day : r2_20050118 Start time : 2005-01-18 00:00:00 [...] Termination |
You can notice that the referential `r1' was not selected to create a day, because its `auto planned' property is set to false. An exploitation day was created from the `r2' referential, its name is `r2_20050118'. Its start time is fixed to the next time at midnight.
The task state is `uninitialized', because the exploitation day waits midnight to start :
$ dio87c -- xtl -s r2_20050118 t1 uninitialize |
The task `t2' was not copied from the referential to the exploitation day, because it doesn't have an operation to select it for this day.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |