Posted Wed, 23 Jan 2019 23:09:06 GMT by BONNEAU Stephane CEO

Hello all,

Do somenone know how to confirm a decision of a task of a workflow withREST Call only ( I do not developp in c# or .net) ?

I try to use this URI Rest Call : /DocuWare/Platform/Workflows/{workflowId}/Instances/{instanceId}/Tasks/{taskId}/Decisions/{decisionId}/Confirm

with right WorkflowID / InstanceID / TaskID / DecisionID...

But i get this message in response :

<s:Message>There is an error in XML document (0, 0).</s:Message>
    <s:Exception>InvalidOperationException: There is an error in XML document (0, 0).</s:Exception>

So do someone know what is the structure of the Json Body (named ConfirmedData) ,ideally with a simple model ?

Thanks a lot,

stephane

Posted Fri, 01 Feb 2019 11:16:55 GMT by Chema Lopez Developer

Hi.

I am having the same problem. I have created some classes to recreate the structure but I do not know what information I must give.

public class ConfirmedData {
  public ConfirmedField[] ConfirmedFields;
}

public class ConfirmedField {
  WFFormFieldValue Value;
}

public class WFFormFieldValue {
  public Object Item;
  public int ItemElementName;
}

If I call the REST method without information I get the response: 500 INTERNAL_SERVER_ERROR.

I hope someone could help.

 

Posted Fri, 01 Feb 2019 11:55:07 GMT by Chema Lopez Developer

Hi.

I have been able to solve this by using an empty structure.

    ConfirmedData data = new ConfirmedData();
    HttpEntity<ConfirmedData> entity = new HttpEntity<>(data, headers);
    ResponseEntity<String> resp = rest.postForEntity(
        url + "/Workflows/" + wf + "/Instances/" + instance + "/Tasks/" + task + "/Decisions/" + decision + "/Confirm",
        entity, String.class);

Spring makes the JSON conversion process so I do not worry about the inner format.

I hope this can help.

 

 

Posted Fri, 01 Feb 2019 15:10:52 GMT by BONNEAU Stephane CEO

Hello and thank you for your contribution...

I found a solution by onvokngthis method  :

/DocuWare/Platform/ControllerWorkflows/{workflowId}/Instances/{instanceId}/Tasks/{taskId}/Decisions/{decisionId}/Confirm

regards

You must be signed in to post in this forum.