Workflow api could not submit successfully

Confluence User - 04 Mar, 2016

Hi,

I am facing problems in using the api  for workflow"/web/json/workflow/process/start/simpleApproval:1:workOrderProcess". 

I had designed a form lets say with fields named as "name", "class" and "date" in it. While posting to the api above my json strings are as below:

{

"var_name": "Deric",

"var_class": "A1",

"var_date": "31/1/2016"

}

However it returns me

{
"activityId": "",
"processId": ""
}

. May I know what mistakes have I done according to these steps? I seems could not get the form.

forms;api;datalists;workflow

2


08 Mar, 2016
confluenceUser
1
confluenceUser

Hi,

According to the api documentation JSON API#web/json/workflow/process/start/(*:processDefId), the variables should be passed as request parameters so instead of passing JSON data you should use var_name=Deric&var_class=A1

 

 

09 Mar, 2016
confluenceUser
confluenceUser

I dont understand why they uses HTTP Post but still putting datas on request parameters. Which totally did not make use of the HTTP Post purpose. Btw, thanks for the answer. It solves the problem.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print