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 李岗

[email protected]<mailto:[email protected]>
 
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: [email protected]
WLM: [email protected]
QQ: 14278797
--------------------------------------

Reply via email to