Web API that connects to process model -I need to pass input parameter different and get a different output parameter can anyone help me out?

Hi Appian team,

Web API that connects to process model -I need to pass input parameter different and get a different output parameter can anyone help me out with this , now whatever am passing as input parameter to processparameter same am getting as output parameter as process info.Please edit below code accordingly

below is the currently used web API code snippet:

a!startProcess(
processModel: cons!xxxxxxxxx
processParameters: {
xxxxxxxxxx : a!fromJson(
http!request.body
)
},
onSuccess: a!httpResponse(
statusCode: 200 ,
headers: {
a!httpHeader(name: "Content-Type", value: "application/json")
},
body: a!toJson(
fv!processInfo
)
),
onError: a!httpResponse(
statusCode: 500,
headers: {
a!httpHeader(name: "Content-Type", value: "application/json")
},
body: a!toJson(
{
error: "There was an error starting the process"
}
)
)
)

  Discussion posts and replies are publicly visible

Parents Reply
  • Hi Peter Lewis,

    Thank you for the reply, I understood what happening  behind the API and process model. My input is the data table and input parameters are corresponding  table columns and what process model does is inserting this value to a database, that is using the write to datastore function. 

    I have the following doubts:

    Can I bring the output parameters from the different tables or views which is added as process variable-I hope it is possible?

    Can I pass alias values as table input parameter like table column name is Purchase Order-but parameter name in the the JSON TEXT should be Order_Del_Number.Both are same but i need to have the names changed how can i link them together. What are the different ways available in Appian.

    Thanks

    Sunu Sam

Children
No Data