diff options
author | YuanHu <yuan.hu1@zte.com.cn> | 2018-03-27 17:58:42 +0800 |
---|---|---|
committer | YuanHu <yuan.hu1@zte.com.cn> | 2018-03-27 17:58:42 +0800 |
commit | 59884c775c9d06e2195401a09e08650a5cf37b20 (patch) | |
tree | 80a2db253939f7a3aeb6e7be45c517c87d748511 /sdc-workflow-designer-ui/src/app/services/broadcast.service.ts | |
parent | 8261a4ea8091c27b61ac581a852e2e18283b3cdd (diff) |
Display Extend Activities on WF Designer UI.
Display Extend Activities on WF Designer UI.
Use Extend Activities to Design Workflow and Save
Issue-ID: SDC-1130,SDC-1131
Change-Id: Iea62eb0edafb2270deaac89b458015e78d961cd0
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/services/broadcast.service.ts')
-rw-r--r-- | sdc-workflow-designer-ui/src/app/services/broadcast.service.ts | 52 |
1 files changed, 17 insertions, 35 deletions
diff --git a/sdc-workflow-designer-ui/src/app/services/broadcast.service.ts b/sdc-workflow-designer-ui/src/app/services/broadcast.service.ts index 6d80e91e..410ae9b0 100644 --- a/sdc-workflow-designer-ui/src/app/services/broadcast.service.ts +++ b/sdc-workflow-designer-ui/src/app/services/broadcast.service.ts @@ -26,56 +26,38 @@ import { WorkflowElement } from '../model/workflow/workflow-element'; */ @Injectable() export class BroadcastService { + public openRight = new Subject<boolean>(); + public openRight$ = this.openRight.asObservable(); - public showProperty = new Subject<WorkflowElement>(); - public showProperty$ = this.showProperty.asObservable(); + public saveRight = new Subject<boolean>(); + public saveRight$ = this.saveRight.asObservable(); - public workflows = new Subject<Map<string, any>>(); - public workflows$ = this.workflows.asObservable(); + public initModel = new Subject<PlanModel>(); + public initModel$ = this.initModel.asObservable(); - public planId = new Subject<string>(); - public planId$ = this.planId.asObservable(); + public showProperty = new Subject<WorkflowElement>(); + public showProperty$ = this.showProperty.asObservable(); public planModel = new Subject<PlanModel>(); public planModel$ = this.planModel.asObservable(); + public updateModelToscaConfig = new Subject<any[]>(); + public updateModelToscaConfig$ = this.updateModelToscaConfig.asObservable(); + public updateModelRestConfig = new Subject<RestConfig[]>(); public updateModelRestConfig$ = this.updateModelRestConfig.asObservable(); - public saveEvent = new Subject<any>(); + public updateNodeTypeConfig = new Subject<any[]>(); + public updateNodeTypeConfig$ = this.updateNodeTypeConfig.asObservable(); + + public saveEvent = new Subject<PlanModel>(); public saveEvent$ = this.saveEvent.asObservable(); public selectedElement = new Subject<WorkflowElement[]>(); public selectedElement$ = this.selectedElement.asObservable(); - // public elementClick = new Subject<WorkflowElement>(); - // public elementClick$ = this.elementClick.asObservable(); - /** - * this should be used while the source of rest interfaces changed. - * @type {Subject<>} - */ - public backendServiceReady = new Subject<any>(); - public backendServiceReady$ = this.backendServiceReady.asObservable(); - - - public nodeProperty = new Subject<WorkflowNode>(); - public nodeProperty$ = this.nodeProperty.asObservable(); - - public nodeTaskChange = new Subject<WorkflowNode>(); - public nodeTaskChange$ = this.nodeTaskChange.asObservable(); - - public showSequenceFlow = new Subject<boolean>(); - public showSequenceFlow$ = this.showSequenceFlow.asObservable(); - - public sequenceFlow = new Subject<SequenceFlow>(); - public sequenceFlow$ = this.sequenceFlow.asObservable(); - - public currentSequenceFlow = new Subject<SequenceFlow>(); - public currentSequenceFlow$ = this.currentSequenceFlow.asObservable(); - public currentWorkflowNode = new Subject<WorkflowNode>(); - public currentWorkflowNode$ = this.currentWorkflowNode.asObservable(); - public currentType = new Subject<string>(); - public currentType$ = this.currentType.asObservable(); + public swagger = new Subject<any>(); + public swagger$ = this.swagger.asObservable(); /** * broadcast datas |