span8
span4
span8
span4
Hi,
Probably overlooking something.
这种情况:
I have a workflow that moves x amount pdf’s to a new location with as goal mailing all the files created by a sub workflow, when starting this workflow asynchronous via REST with the data download service all files are zipped and mailed to the given e-mail address via a subscription and topic connected to this flow.
Using the following format with a GET via rest.
/ fmedatadownload / / / ? = X&opt_servicemode =同步和opt_requesteremail =
And the following mail format
你的ID为{ID}作业finishedDownload您的文件在这里:{} downloadUrl
Returning a mail with:
Your job with id 1 is finishedDownload your file here:
问题:
I’m trying to get the job ID included in the REST return json but this does not work for data download.When using the POST to
{ "id": 1}
The workflow makes the pdf’s but the file copy writer (logically) does not generate the ZIP files that are made with the data download service.The mail is send like this:
Your job with id 1 is finishedDownload your file here: _undefined_
问题
Is there a way to (preferably):
Get the jobID within the data download REST return?
or
Make and send the ziplink like the datadownload (zip name needs to be random) in the mail without using a extra transformer in the workflow.
Thanks for the reply@jlutherthomas, due to vacation i was not able to react sooner.
I tried the workflow with transact/transactdata/submit but all with an unsatisfying result.Some extra info about what i did.
What does the workflow do:
The main flow that I trigger starts a pdf page generating workflow (FMEServerJobSubmitter_2) for each page based on a dynamically generated table.The pdf's are saved to the server with a FeatureWriter transformer within this flow.The feature holder waits till all (sub)workflows are finished and i then use the filecopier to copy all the created pfd's to a new location.While using REST in combination with the DataDownload service the result is that the pfd's are zipped (with a not traceable name) and due to my topic and subscription an mail is send with the following format:
Hi, Your job with id 1 is finished Download your file here: htttps://linktofmeserverresult.zip
The disadvantage is that the JobID is not returned when starting the workflow.
When using this workflow and the transact, transactdata or submit via REST the downloadlink is absent in the topic monitoring.Both with async and sync requests.Seeing the Topic Monitoring and the REST return it does not contain this information.
Could my writer be the problem or do i overlook a option/parameter/variable where i can choose to zip the end result (with random name generation like the DataDownload Service)
Hi@JeroenR
我注意到,您使用的REST调用“提交”这是异步的,因此所有你能得到的是一个作业ID返回 - 因为它不能给你任何东西(如下载地址),因为它不 wait for the job to finish first.
你提到的第一个例子是调用一个工作区,这是FME Server的REST API调用如何工作空间不同的URL直接的方法。在该URL的参数,如果添加opt_showresult =真应该给你的回应作业ID。
如果你想坚持REST API通过直接URL,你有没有尝试过使用POST /变换/ transactdata /
这些线程也可能是有关你想要做什么:
https://knowledge.亚搏在线safe.com/questions/77309/rest-api-run-jobworkspace-with-notification-by-fme.html
https://knowledge.亚搏在线safe.com/questions/65306/fme-server-direct-url-result-page.html
© 2020 Safe Software Inc |Legal