diff options
author | Lvbo163 <lv.bo163@zte.com.cn> | 2017-09-11 15:01:53 +0800 |
---|---|---|
committer | Lvbo163 <lv.bo163@zte.com.cn> | 2017-09-11 15:01:53 +0800 |
commit | c5f5d9b03e04ee1dfea490ecabc5c4b54760d062 (patch) | |
tree | 6197cccbc4dc4a3b5267407d07334f35f3f83ba7 /sdc-workflow-designer-ui/src/app/services | |
parent | d65b413cc3d03d4ce042a116c1b348a76de3a9ab (diff) |
support script task
support create bpmn script task
Issue-ID: SDC-305
Change-Id: Ied1df14a64c96d4d5277fa50bf10c75fc11952f3
Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/services')
-rw-r--r-- | sdc-workflow-designer-ui/src/app/services/workflow-process.service.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sdc-workflow-designer-ui/src/app/services/workflow-process.service.ts b/sdc-workflow-designer-ui/src/app/services/workflow-process.service.ts index 7f56c4af..04417726 100644 --- a/sdc-workflow-designer-ui/src/app/services/workflow-process.service.ts +++ b/sdc-workflow-designer-ui/src/app/services/workflow-process.service.ts @@ -23,6 +23,7 @@ import { WorkflowConfigService } from "./workflow-config.service"; import { Swagger, SwaggerModelSimple, SwaggerReferenceObject } from "../model/swagger";
import { WorkflowService } from "./workflow.service";
import { IntermediateCatchEvent } from "../model/workflow/intermediate-catch-event";
+import { ScriptTask } from "../model/workflow/script-task";
/**
* WorkflowService
@@ -51,6 +52,9 @@ export class WorkflowProcessService { case NodeType[NodeType.intermediateCatchEvent]:
node = new IntermediateCatchEvent(this.createId(), name, type, new Position(top, left), []);
break;
+ case NodeType[NodeType.scriptTask]:
+ node = new ScriptTask(this.createId(), name, type, new Position(top, left), []);
+ break;
default:
node = new WorkflowNode(this.createId(), name, type, new Position(top, left), []);
break;
|