init method
Implementation
@override
void init() {
ComponentRegistry().init(
AssignmentViewComponentConstructorDefault(),
AssignmentViewComponentEditorConstructor(),
);
// wizards
Apis.apis().getWizardApi().register(AssignmentDashboardDialogWizard());
// initialise repository
AbstractRepositorySingleton.singleton = RepositorySingleton();
// Register action handler for the workflow action
eliud_router.Router.register(WorkflowActionHandler());
// Register a mapper for an extra action: the mapper for the WorkflowAction
ActionModelRegistry.registry()!
.addMapper(WorkflowActionEntity.label, WorkflowActionMapper());
// Register a task
TaskModelRegistry.registry()!.addTask(
identifier: ExampleTaskModel1.label,
definition: ExampleTaskModel1.definition,
editor: (app, model) =>
ExampleTaskModel1EditorWidget(app: app, model: model),
createNewInstance: () => ExampleTaskModel1(
identifier: ExampleTaskModel1.label,
description: 'new example task model 1',
executeInstantly: true),
mapper: ExampleTaskModel1Mapper());
}