diff options
author | 2017-08-31 14:29:07 +0800 | |
---|---|---|
committer | 2017-08-31 14:29:07 +0800 | |
commit | 626d74e4c51aa47da5d5d643b5b7a04188b5552a (patch) | |
tree | 8d074a6928b71950cfbe69261bfa156ceaea3d07 /sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts | |
parent | 97e19323bd1e9ee44a02173a5ba05d13219c4082 (diff) |
support set parameter for workflow
support set input and output params for start event
Issue-ID: SDC-120
Change-Id: Ib5a87692e06817b2676b3f2f2223e1ced117b5c9
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.ts | 3 |
1 files changed, 3 insertions, 0 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 d192a82d..8d3d6552 100644 --- a/sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts +++ b/sdc-workflow-designer-ui/src/app/services/jsplumb.service.ts @@ -58,8 +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);
+
info.connection.bind('click', connection => {
this.jsplumbInstance.select({ connections: [connection] }).delete();
+ this.workflowService.deleteSequenceFlow(connection.sourceId, connection.targetId);
});
});
|