frontend: wf instances model
This commit is contained in:
parent
0782c2f536
commit
34f6e2977b
|
@ -10,7 +10,7 @@ import { DsmSearchComponent, DsmResultsComponent, DsmApiComponent } from './dsm/
|
||||||
import { MdstoreInspectorComponent, MdstoresComponent } from './mdstores/mdstores.component';
|
import { MdstoreInspectorComponent, MdstoresComponent } from './mdstores/mdstores.component';
|
||||||
import { CleanerTesterComponent } from './cleaner-tester/cleaner-tester.component';
|
import { CleanerTesterComponent } from './cleaner-tester/cleaner-tester.component';
|
||||||
import { EmailsComponent } from './emails/emails.component';
|
import { EmailsComponent } from './emails/emails.component';
|
||||||
import { WfsComponent } from './wfs/wfs.component';
|
import { WfInstancesComponent } from './wf-instances/wf-instances.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{ path: "", redirectTo: 'info', pathMatch: 'full' },
|
{ path: "", redirectTo: 'info', pathMatch: 'full' },
|
||||||
|
@ -20,7 +20,7 @@ const routes: Routes = [
|
||||||
{ path: "adv_resources/vocabulary", component: VocabulariesComponent },
|
{ path: "adv_resources/vocabulary", component: VocabulariesComponent },
|
||||||
{ path: "adv_resources/protocol", component: ProtocolsComponent },
|
{ path: "adv_resources/protocol", component: ProtocolsComponent },
|
||||||
{ path: "adv_resources/email", component: EmailsComponent },
|
{ path: "adv_resources/email", component: EmailsComponent },
|
||||||
{ path: "wfs", component: WfsComponent },
|
{ path: "wfs", component: WfInstancesComponent },
|
||||||
{ path: "wf_history", component: WfHistoryComponent },
|
{ path: "wf_history", component: WfHistoryComponent },
|
||||||
{ path: "ctx_viewer", component: ContextViewerComponent },
|
{ path: "ctx_viewer", component: ContextViewerComponent },
|
||||||
{ path: "voc_editor", component: VocabularyEditorComponent },
|
{ path: "voc_editor", component: VocabularyEditorComponent },
|
||||||
|
|
|
@ -37,7 +37,7 @@ import { SpinnerHttpInterceptor } from './common/spinner.service';
|
||||||
import { MdstoresComponent, MdstoreInspectorComponent, MDStoreVersionsDialog, AddMDStoreDialog } from './mdstores/mdstores.component';
|
import { MdstoresComponent, MdstoreInspectorComponent, MDStoreVersionsDialog, AddMDStoreDialog } from './mdstores/mdstores.component';
|
||||||
import { CleanerTesterComponent } from './cleaner-tester/cleaner-tester.component';
|
import { CleanerTesterComponent } from './cleaner-tester/cleaner-tester.component';
|
||||||
import { EmailDialog, EmailsComponent } from './emails/emails.component';
|
import { EmailDialog, EmailsComponent } from './emails/emails.component';
|
||||||
import { WfsComponent } from './wfs/wfs.component';
|
import { WfInstancesComponent } from './wf-instances/wf-instances.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -71,7 +71,7 @@ import { WfsComponent } from './wfs/wfs.component';
|
||||||
CleanerTesterComponent,
|
CleanerTesterComponent,
|
||||||
EmailsComponent,
|
EmailsComponent,
|
||||||
EmailDialog,
|
EmailDialog,
|
||||||
WfsComponent
|
WfInstancesComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
|
|
@ -206,3 +206,22 @@ export interface EmailTemplate {
|
||||||
subject: string,
|
subject: string,
|
||||||
message: 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>
|
||||||
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
||||||
|
}
|
|
@ -1,10 +0,0 @@
|
||||||
import { Component } from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'app-wfs',
|
|
||||||
templateUrl: './wfs.component.html',
|
|
||||||
styleUrls: ['./wfs.component.css']
|
|
||||||
})
|
|
||||||
export class WfsComponent {
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue