frontend: wf instances model

This commit is contained in:
Michele Artini 2023-03-10 12:15:54 +01:00
parent 0782c2f536
commit 34f6e2977b
8 changed files with 33 additions and 14 deletions

View File

@ -10,7 +10,7 @@ import { DsmSearchComponent, DsmResultsComponent, DsmApiComponent } from './dsm/
import { MdstoreInspectorComponent, MdstoresComponent } from './mdstores/mdstores.component';
import { CleanerTesterComponent } from './cleaner-tester/cleaner-tester.component';
import { EmailsComponent } from './emails/emails.component';
import { WfsComponent } from './wfs/wfs.component';
import { WfInstancesComponent } from './wf-instances/wf-instances.component';
const routes: Routes = [
{ path: "", redirectTo: 'info', pathMatch: 'full' },
@ -20,7 +20,7 @@ const routes: Routes = [
{ path: "adv_resources/vocabulary", component: VocabulariesComponent },
{ path: "adv_resources/protocol", component: ProtocolsComponent },
{ path: "adv_resources/email", component: EmailsComponent },
{ path: "wfs", component: WfsComponent },
{ path: "wfs", component: WfInstancesComponent },
{ path: "wf_history", component: WfHistoryComponent },
{ path: "ctx_viewer", component: ContextViewerComponent },
{ path: "voc_editor", component: VocabularyEditorComponent },

View File

@ -37,7 +37,7 @@ import { SpinnerHttpInterceptor } from './common/spinner.service';
import { MdstoresComponent, MdstoreInspectorComponent, MDStoreVersionsDialog, AddMDStoreDialog } from './mdstores/mdstores.component';
import { CleanerTesterComponent } from './cleaner-tester/cleaner-tester.component';
import { EmailDialog, EmailsComponent } from './emails/emails.component';
import { WfsComponent } from './wfs/wfs.component';
import { WfInstancesComponent } from './wf-instances/wf-instances.component';
@NgModule({
declarations: [
@ -71,7 +71,7 @@ import { WfsComponent } from './wfs/wfs.component';
CleanerTesterComponent,
EmailsComponent,
EmailDialog,
WfsComponent
WfInstancesComponent
],
imports: [
BrowserModule,

View File

@ -206,3 +206,22 @@ export interface EmailTemplate {
subject: string,
message: string
}
export interface WfInstance {
id: string,
details: Map<string, string>,
priority: number,
dsId?: string,
dsName?: string,
apiId?: string,
enabled: boolean,
configured: boolean,
schedulingEnabled: boolean,
cronExpression?: string,
cronMinInterval?: number,
workflow: string,
destroyWf?: string,
systemParams: Map<string, string>,
userParams: Map<string, string>
}

View File

@ -0,0 +1,10 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-wf-instances',
templateUrl: './wf-instances.component.html',
styleUrls: ['./wf-instances.component.css']
})
export class WfInstancesComponent {
}

View File

@ -1,10 +0,0 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-wfs',
templateUrl: './wfs.component.html',
styleUrls: ['./wfs.component.css']
})
export class WfsComponent {
}