You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@dolphinscheduler.apache.org by "lgcareer2019@outlook.com" <lg...@outlook.com> on 2020/03/02 07:13:29 UTC

Re: How can I develop based on the DS RESTFul API

Need to pay attention to the follow two parameters when you plan to create process definition with api.
1.`locations`:  Describes the location information of each task node. 
2.`connects`: Describe the relationship of task nodes.

The two parameters are used to draw a process definition when you visit the process definition with web ui.

If you need not visit hte process definiton with web ui,you only give `locations` any string and give `connects` "[]".

You can see the method named testCreateProcessDefinition of ProcessDeifnitionControleerTest file.





DolphinScheduler(Incubator) PPMC
Gang Li 李岗

lgcareer2019@outlook.com<ma...@outlook.com>
 
From: 孔雀
Date: 2020-02-29 15:38
To: dev
Subject: How can I develop based on the DS RESTFul API
We dont wanna use the web ui. We need to control the dag/flow/schedule by
code. I found the api document on
http://106.75.43.194:8888/dolphinscheduler/doc.html, and at the page of
create a process (save api), the document said:
 
      locations
   process definition node locations info (json format)
query
true
string
 
       name
   process definition name
query
true
string
 
       processDefinitionJson
   process definition detail info (json format)
ok, what's the detail json format of the arguments? where can i find them?
Sean Zhang
--------------------------------------
Blog: http://butfly.spaces.live.com/
GTalk: zbutfly@gmail.com
WLM: gossoon@hotmail.com
QQ: 14278797
--------------------------------------