The Ontology primitives for dynamic scheduling are comprised of one schedule object and one or more resource objects. Begin by creating your objects in the Ontology Manager. At a minimum, the Workshop widget requires two object types: a schedule object and a resource object.
Object Type | Description |
---|---|
Schedule object | A schedule object represents the task or activity of interest and should include a start and end time of when that event is occurring and/or the expected duration. |
Resource object | A resource object represents any entity (such as a person, location, project, etc.) that the schedule object is being assigned to or scheduled against. |
The example below demonstrates the process of scheduling maintenance tasks for aircraft.
The two-object-type configuration, the minimum requirement for the Dynamic Scheduling Workshop widget, is illustrated below.
The dynamic scheduling data supports a variety of additional configurations beyond the two-object-type model, allowing application builders to create complex, advanced workflows.
Building on the two-object-type model above, in addition to scheduling when maintenance tasks will occur on an assigned aircraft, users can also determine who will carry out the maintenance task by assigning the task to a specific mechanic. In this new Ontology, as pictured below, the mechanic object acts as a second resource object type, which can be unlimited in number.
Your Ontology must be defined as a scheduling primitive. To help quickly classify your Ontology objects, use the Ontology Manager Wizard. Before the setup tool can be used, your schedule object must meet the property and link requirements outlined below.
Object property | Type |
---|---|
Start time | timestamp |
End time | timestamp |
Duration | long (milliseconds) |
Foreign key to resources | string |
The schedule object type should be linked to each resource object type in a many-to-one relationship. For instance, in the example above, many tasks can be assigned to one aircraft.
To help you quickly and easily classify your Ontology objects as scheduling primitives, the Ontology Manager Wizard applies a series of required type classes to properties on your schedule object (and, if selected in the optional configuration section, the wizard creates a schedule save action).
Before using the wizard, ensure you have created the required objects and links as described in the model configuration.
To classify your Ontology objects using the Ontology Manager Wizard, follow the steps below:
From here, the wizard will guide you through start time and end time properties for the selected schedule objects, links to the relevant resource object types, and advanced configuration options. You will need to modify the type class on your schedule object type's primary key property when the wizard completes its work:
The wizard creates a save handler action for you. Navigate to it and copy the action RID, which will look like this:
ri.actions.main.action-type.9853f3fd-ad15-4015-8865-081d537e19e6
Navigate to your schedule object type's primary key property and select the Interaction tab.
Set the schedulable-save-handler
type class to the copied action RID and save the Ontology.