TheOpenCloudEngine / uEngine5-base

uEngine5 BPMS that totally re-written in Microservices architecture. uEngine5 can act as not only a conventional Workflow or BPMS but also as a REST api orchestrator or a BPaaS (Business process as a service) of members of OCE's MSA components.
MIT License
10 stars 13 forks source link

조건 편집기 #51

Open jinyoung opened 6 years ago

jinyoung commented 6 years ago

https://www.facebook.com/1401720840/videos/10211674802371213/

참고

소스코드: https://github.com/TheOpenCloudEngine/uEngine5-base/commit/d9fa75cbf07d4f932dc30b669a8ef6164ec2aa88

jinyoung commented 6 years ago

이 동영상을 먼저 보기 바람: https://www.facebook.com/1401720840/videos/vb.1401720840/10211726952634937/?type=2&theater&notif_t=video_processed&notif_id=1513658134313716

jinyoung commented 6 years ago

작업 내용

  1. Or 를 상속하여 (mixins 사용), org-uengine-kernel-And Vue component 를 구현 (Or 의 기능과 template 이 상속되어야 함)
  2. Evaluate (org-uengine-kernel-Evaluate vue component) 를 완성
  3. 설정한 대로 Condition 이 먹히는 지 확인
jinyoung commented 6 years ago

this.$parent._vnode
VNode {tag: "div", data: undefined, children: Array(3), text: undefined, elm: div…}
this.$parent._vnode.tag
"div"
this.$parent.$vnode.tag
"vue-component-132-org-uengine-kernel-Or"
var conditionEditor
undefined
var parent
undefined
parent = this.$parent
VueComponent {_uid: 875, _isVue: true, $options: Object, _renderProxy: Proxy, _self: VueComponent…}
while(parent.$vnode.tag.indexOf('bpmn-relation') >= 0) parent = parent.$parent;
undefined
parent
VueComponent {_uid: 875, _isVue: true, $options: Object, _renderProxy: Proxy, _self: VueComponent…}
parent.$vnode.tag
"vue-component-132-org-uengine-kernel-Or"
while(parent.$vnode.tag.indexOf('bpmn-relation') == -1) parent = parent.$parent;
VueComponent {_uid: 537, _isVue: true, $options: Object, _renderProxy: Proxy, _self: VueComponent…}
parent.$vnode.tag
"vue-component-131-bpmn-relation"
parent.$vnode.tag.definition
undefined
parent.definition
jinyoung commented 6 years ago

https://github.com/TheOpenCloudEngine/uEngine5-base/commit/969ea458388784eff8681f2ac056ff317a64d42e

jinyoung commented 6 years ago

Parent 데이터에 대한 바인딩 문제 해결 방법: https://github.com/TheOpenCloudEngine/uEngine5-base/commit/63cd01b8cc1a4ed7845c5570eea117364b1561e0

jinyoung commented 6 years ago

중요한것:

https://alligator.io/vuejs/add-v-model-support/https://stackoverflow.com/questions/42629509/you-are-binding-v-model-directly-to-a-v-for-iteration-alias