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

CallActivity #17

Open jinyoung opened 7 years ago

jinyoung commented 7 years ago

Create CallActivity variable for Task

jinyoung commented 7 years ago

https://github.com/TheOpenCloudEngine/process-codi-mw4/commit/8a8ae314dab43764070212c7ce376a637006ff91

SeungpilPark commented 7 years ago
2017-09-28 6 34 04

데피니션 생성단계에서 처음부터 존재하지 않는 key 에 대한 prop mute 를 방지하기 위해, Activity 를 제작할떄, createNew 를 computed 에 다음과 같은 형식으로 복붙하되 필요한 값을 넣을것.

CallActivity 에서는 definitionId,variableBindings,roleBindings 세가지를 추가하였음.

    computed: {
      .
      .
      createNew(newTracingTag, x, y, width, height){
        return {
          _type: this.className(),
          name: {
            text: ''
          },
          tracingTag: newTracingTag,
          definitionId: null,  ==> null 이라도 등록은 해놔야 한다.
          variableBindings: [],
          roleBindings: [],
          elementView: {
            '_type': 'org.uengine.kernel.view.DefaultActivityView',
            'id': newTracingTag,
            'x': x,
            'y': y,
            'width': width,
            'height': height,
            'style': JSON.stringify({})
          }
        }
      }
    },
jinyoung commented 6 years ago

남은 작업:

  1. Definition 찾기 버튼이 기존 하드코딩 되어 있음. 이를 프로세스 정의 목록 및 트리 혹은 검색창을 열어서 엮어주어야 함