v7.3.0

DependencyStore

A store representing a collection of dependencies between events in the EventStore.

This store only accepts a model class inheriting from DependencyModel.

A DependencyStore is usually connected to a project, which binds it to other related stores (EventStore, AssignmentStore and ResourceStore). The project also handles references (fromEvent, toEvent) to related records for the records in the store.

Resolving the references happens async, records are not guaranteed to have up to date references until calculations are finished. To be certain that references are resolved, call await project.commitAsync() after store actions. Or use one of the xxAsync functions, such as loadDataAsync().

Using commitAsync():

dependencyStore.data = [{ from, to }, ...];

// references (fromEvent, toEvent) not resolved yet

await dependencyStore.project.commitAsync();

// now they are

Using loadDataAsync():

await dependencyStore.loadDataAsync([{ from, to }, ...]);

// references (fromEvent, toEvent) are resolved

See also

No results

Properties

Properties are getters/setters or publicly accessible variables on this class