summaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts
diff options
context:
space:
mode:
authorLvbo163 <lv.bo163@zte.com.cn>2017-09-07 10:02:49 +0800
committerLvbo163 <lv.bo163@zte.com.cn>2017-09-07 10:02:49 +0800
commit7f4d1836df509a1a06e4b7635a84a71b79084d6e (patch)
treef747bd97341d2714bc0ce4753de4cbc280aa1d8d /sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts
parentb8932e8304ed077912949890c3ec47a087be7ddd (diff)
support quote output of rest task
rest task's parameters can quote output parameter of previous rest tasks. Issue-ID: SDC-121 Change-Id: I94f2058f7b8b2ad600ffb99c8838b37da5bb5b9d Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts')
-rw-r--r--sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts b/sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts
index ffd00c6a..543b09f3 100644
--- a/sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts
+++ b/sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts
@@ -12,7 +12,7 @@
import { Injectable } from '@angular/core';
import * as jsp from 'jsplumb';
-import { WorkflowService } from "./workflow.service";
+import { WorkflowProcessService } from "./workflow-process.service";
/**
* JsPlumbService
@@ -22,7 +22,7 @@ import { WorkflowService } from "./workflow.service";
export class JsPlumbService {
public jsplumbInstance;
- constructor(private workflowService: WorkflowService) {
+ constructor(private processService: WorkflowProcessService) {
this.initJsPlumbInstance();
}
@@ -58,11 +58,11 @@ export class JsPlumbService {
// add connection to model data while a new connection is build
this.jsplumbInstance.bind('connection', info => {
- this.workflowService.addSequenceFlow(info.connection.sourceId, info.connection.targetId);
+ this.processService.addSequenceFlow(info.connection.sourceId, info.connection.targetId);
info.connection.bind('click', connection => {
this.jsplumbInstance.select({ connections: [connection] }).delete();
- this.workflowService.deleteSequenceFlow(connection.sourceId, connection.targetId);
+ this.processService.deleteSequenceFlow(connection.sourceId, connection.targetId);
});
});
@@ -117,7 +117,7 @@ export class JsPlumbService {
const left = event.e.clientX - 220 - (event.e.offsetX / 2);
const top = event.e.clientY - 70 - (event.e.offsetY / 2);
- this.workflowService.addNode(type, type, top, left);
+ this.processService.addNode(type, type, top, left);
},
});
}