aboutsummaryrefslogtreecommitdiffstats
path: root/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts
diff options
context:
space:
mode:
authorvempo <vitaliy.emporopulo@amdocs.com>2018-10-22 11:33:19 +0300
committervempo <vitaliy.emporopulo@amdocs.com>2018-10-22 11:33:19 +0300
commit032929d287cbafefe8367e0fcee18dec4b1bf9f7 (patch)
tree6e4f28cd5303d810c24cd110fb69c6d95b875e98 /deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts
parenta224f54637da8de90570beee979aef9069f467d5 (diff)
Deleted deprecated workflow project
Change-Id: I2ad75adab7d47d8df5b3996a315a9b173fa4bbfe Issue-ID: SDC-1855 Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
Diffstat (limited to 'deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts')
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts68
1 files changed, 0 insertions, 68 deletions
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts
deleted file mode 100644
index 0f721242..00000000
--- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/components/property/start-event/start-event.component.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * and the Apache License 2.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- *******************************************************************************/
-import { Component, Input, OnInit } from '@angular/core';
-import { Subscription } from 'rxjs/Subscription';
-
-import { ValueSource } from '../../../model/value-source.enum';
-import { Parameter } from '../../../model/workflow/parameter';
-import { StartEvent } from '../../../model/workflow/start-event';
-import { BroadcastService } from '../../../services/broadcast.service';
-import { WorkflowUtil } from '../../../util/workflow-util';
-import { TranslateService } from '@ngx-translate/core';
-
-@Component({
- selector: 'wfm-start-event',
- styleUrls: ['./start-event.component.css'],
- templateUrl: 'start-event.component.html',
-})
-export class StartEventComponent implements OnInit {
- @Input() public node: StartEvent;
- public sources: ValueSource[] = [ValueSource.string];
-
- constructor(private translate: TranslateService) { }
-
- ngOnInit() { }
-
- public create(): void {
- let parameter = new Parameter('', '', ValueSource[ValueSource.string]);
- this.node.parameters.push(parameter);
- }
-
- public delete(index: number): void {
- this.node.parameters.splice(index, 1);
- }
-
- public checkKey(newName: string, index: number): void {
- this.node.parameters[index].name = newName;
- this.node.parameters.forEach(parameter => {
- parameter.errorMsg = '';
- });
- if (!newName) {
- this.translate.get('WORKFLOW.MSG.VARIABLE_EMPTY').subscribe((res: string) => {
- this.node.parameters[index].errorMsg = res;
- });
- }
- this.node.parameters.forEach((parameter, i) => {
- if (i + 1 < this.node.parameters.length) {
- for (let j = i + 1; j < this.node.parameters.length; j++) {
- let element = this.node.parameters[j];
- if (element.name && parameter.name === element.name) {
- this.translate.get('WORKFLOW.MSG.VARIABLE_SAME').subscribe((res: string) => {
- parameter.errorMsg = res;
- element.errorMsg = res;
- });
- }
- }
- }
- });
- }
-}