init method
dynamic
init(
- ComponentConstructor assignmentViewComponentConstructorDefault,
- ComponentEditorConstructor assignmentViewComponentEditorConstructor
Implementation
init(
ComponentConstructor assignmentViewComponentConstructorDefault,
ComponentEditorConstructor assignmentViewComponentEditorConstructor,
) {
Apis.apis()
.getRegistryApi()
.addInternalComponents('eliud_pkg_workflow_model', [
"assignments",
"assignmentViews",
"workflows",
]);
Apis.apis().getRegistryApi().addDropDownSupporter(
"assignmentViews", DropdownButtonComponentFactory());
Apis.apis().getRegistryApi().register(
componentName: "assignmentViews",
componentConstructor: assignmentViewComponentConstructorDefault);
Apis.apis()
.getRegistryApi()
.addComponentSpec('eliud_pkg_workflow_model', 'workflow', [
ComponentSpec(
'assignmentViews',
assignmentViewComponentConstructorDefault,
AssignmentViewComponentSelector(),
assignmentViewComponentEditorConstructor,
({String? appId}) => assignmentViewRepository(appId: appId)!),
]);
Apis.apis().getRegistryApi().registerRetrieveRepository(
'eliud_pkg_workflow_model',
'assignments',
({String? appId}) => assignmentRepository(appId: appId)!);
Apis.apis().getRegistryApi().registerRetrieveRepository(
'eliud_pkg_workflow_model',
'assignmentViews',
({String? appId}) => assignmentViewRepository(appId: appId)!);
Apis.apis().getRegistryApi().registerRetrieveRepository(
'eliud_pkg_workflow_model',
'workflows',
({String? appId}) => workflowRepository(appId: appId)!);
}