Submit an XML file as a PEcAn workflow. Hits the POST /api/workflows/ API endpoint

submit.workflow.xml(server, xmlFile)

Arguments

server

Server object obtained using the connect() function

xmlFile

XML file containing the workflow configurations

Value

Response obtained from the POST /api/workflow/ endpoint

Author

Tezan Sahu

Examples

server <- connect(url="http://pecan.localhost:80", username="carya", password="illinois")
res <- submit.workflow.xml(server, "api.sipnet.xml")
#> Error in path_to_connection(x): api.sipnet.xml does not exist in current working directory
#> (/private/var/folders/h1/8hndypj13nsbj5pn4xsnv1tm0000gn/T/Rtmpl4JfKW/file143a498562e6/reference).