e8e2c780522571fa4b0d5ba1263b06740d9baa54
[sdc/sdc-workflow-designer.git] /
1 /*******************************************************************************
2  * Copyright (c) 2017 ZTE Corporation.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * and the Apache License 2.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     ZTE - initial API and implementation and/or initial documentation
11  *******************************************************************************/
12 import { AfterViewInit, Component, Input } from '@angular/core';
13 import { Subscription } from 'rxjs/Subscription';
14
15 import {IntermediateCatchEvent} from '../../../model/workflow/intermediate-catch-event';
16
17 @Component({
18     selector: 'b4t-intermediate-catch-event',
19     templateUrl: 'intermediate-catch-event.component.html',
20 })
21 export class IntermediateCatchEventComponent {
22     @Input() public node: IntermediateCatchEvent;
23
24     public timerTypeChange(type: string) {
25         const timer = this.node.timerEventDefinition;
26         timer.type = type;
27         timer.timeCycle = '';
28         timer.timeDate = '';
29         timer.timeDuration = '';
30     }
31 }