Upgrading to 2.2¶
This release provides a clear schedule activation button for a scheduled limetype. It is possible to assume status of the schedule by looking at the button's label. Deactivating a schedule by this button, removes the possibility of running it. The activate toggler button is also removed. Technical requirements can be found in the technical section.
In Lime Admin:
- Change the scheduledtodo views:
- Remove the
inactive
property from the object card. - Add the
lwc-limepkg-scheduled-limeobject-schedule-change-status
web component to the object card.
- Remove the
Upgrading to 2.1¶
This release adds the option to create of history notes with a summary of created limeobjects. Technical requirements can be found in the technical section.
In LISA:
- Add a relation from the schedule lime type to the history lime type.
In Lime Admin:
- Configure the new options for the add-on.
Upgrading to 2.0¶
This release contains several breaking changes. Complete the steps below to upgrade from 1.x to 2.0
If you have installed this package as a part of Lime Work Order, use the upgrade steps in that package's documentation instead.
Limetype updates
The limetype for schedules now requires three more properties to always be present:
Starttime
Endtime
Numberofdays
The package no longer uses this property:
Startdateplusduration
The details for these can be found is in the technical section.
Note: As version 1.0 was just a preview, there is not any migration of data. This is the responsibility of the project manager.
Scheduled Task
There is now a scheduled task included in the package which is set to run every hour, this task runs as user task@scheduledlimeobject
. If this user doesn't exist, it won't be able to run.
- In LISA, create the
task@scheduledlimeobject
user with the following settings:- Password: Type a really long nonsense password. Do not store it anywhere (it is not needed).
- Active: No
- Type: Integration
- Login: LIME PRO Authentication (default in Cloud)
- Since the previous release relied on a scheduled task being setup in the customer solution that one needs to be removed now:
- Open the file
<solution-mycustomer>/<solution_mycustomer>/tasks/__init__.py
- In the
register_scheduled_tasks():
method remove the scheduled task that executestask=run_scheduled_limeobjects
- Open the file
New required configuration
The package now supports and recommends that the webclient is used for setting up schedules.
In Lime Admin,
- Configure the views for the scheduledtodo limetype.
- Add the web-component
lwc-limepkg-scheduled-limeobject-schedule-editor-button
to the object card. - Add the web-component
lwc-limepkg-scheduled-limeobject-schedule-run-now-button
to the object card. - The following properties must be present and editable on the object card:
active
- The following properties should not be present and must not be editable on the object card:
startdate
,until
,starttime
,endtime
,numberofdays
- The following properties should be present but not editable on the object card:
rruledescription
,lastcreated
- Add the web-component
- Configure the views for the scheduledtodoparameterset limetype.
- Configure the templating language for the add-on.
Actionpad
The LBS application scheduled_limeobject_scheduleeditor
has been updated to a new version. Install and publish it using the normal means.