Hi.
I finally found the solution. Here it is in case someone comes here by search.
You have to make a POST call:
https://{HOST}/DocuWare/Platform/FileCabinets/{filecabinet_id}/Task/Transfer?storeDialogId={store_dialog_id}
Be sure to add Content-Type header:
Content-Type: application/vnd.docuware.platform.documentstransferinfo+json
HTTP request body:
{"SourceFileCabinetId":"<basket_id>","Documents": [{"Id":<doc_id>,"Fields":null}],"KeepSource":false,"FillIntellix":false,"UseDefaultDialog":false}
If you set UseDefaultDialog to true you do not have to use storeDialogId param.
https://CLIENT.docuware.cloud/DocuWare/Platform/ControllerWorkflows/{WF_ID}/Tasksreturns a list of tasks.
https://CLIENT.docuware.cloud/DocuWare/Platform/ControllerWorkflows/{WF_ID}/Instances/{INSTANCE_ID}/Tasks/{TASK_ID}returns the same WF_Task_User_Name in all tasks.
Thank you Simon.
Since I use the REST API not the .NET library the equivalent call would be:
https://CLIENT.docuware.cloud/DocuWare/Platform/ControllerWorkflows
Still, there are several workflows that are not shown even though the logged user is controller for those.
For example, I see one workflow with one active instance in Workflow Designer but if I get workflow info through REST API it shows TaskCount=0 but there is one task.
<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="/DocuWare/Platform/Content/standard.xslt"?> <WorkflowTasks xmlns:s="http://dev.docuware.com/schema/public/services" Count="0" TimeStamp="2020-02-25T09:56:07.841371Z" xmlns="http://dev.docuware.com/schema/public/services/platform/workflow"> <s:Links> <s:Link rel="first" href="/DocuWare/Platform/ControllerWorkflows/xxx/Tasks?count=50" /> <s:Link rel="self" href="/DocuWare/Platform/ControllerWorkflows/xxx/Tasks?start=0&count=50" /> </s:Links> <Task Id="Id" InstanceId="InstanceId" IsRead="false" AllowDecisionStamp="true" ActivityDescription="" DocId="DocId" ActivityType="GeneralTask" NodeId="NodeId" WorkflowVersionId="WorkflowVersionId"> <TaskOperations> <BaseTaskOperations> <s:Links> ... </s:Links> </BaseTaskOperations> </TaskOperations> <ColumnValues> ... </ColumnValues> <DefaultDecisionId p4:nil="true" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance" /> </Task> </WorkflowTasks>
{{ServerUrl}}/{{Platform}}/FileCabinets/{{FileCabinetId}}/Documents/{{DocumentId}}/FileDownload?targetFileType=zip&keepAnnotations=false
Thank you Joe.
I am using Java and Spring to integrate some applications with DocuWare. I finally was able to do it the way you say.
I finally was able to replace the document using another REST function.
I have not been able to do so with a HTTP POST:
/DocuWare/Platform/FileCabinets/{cabinet}/Documents/{document}
Instead, I have had to use the Section URL:
/DocuWare/Platform/FileCabinets/{cabinet}/Sections/{section}/Data
Hi.
I am trying to replace a document using REST API but I have not been successful.
These are the steps:
1. Download an existing document of the FileCabinet.
2. Make some changes to the downloaded file, i.e. sign it with a certificate.
3. Upload the changed document and replace the original one.
I use the POST call with the multipart/form-data option to do the third step but with no success.
I hope someone can help.
Thanks.