Hi,
I have an array of cdt as below and i am using saveInto: a!startProcess( processModel: cons!Part_Updates_Const, processParameters: ri!partInfo, onSuccess: a!httpResponse(body:{"Well done"})),style: "NORMAL")}
in a button to kick a process model.
Question 1: How can i send an array instead of just the dictionary as parameter? I am currently getting error: Could not cast from myType?list to Dictionary. Details: CastInvalid.
Question 2: Can the process model be started at click of the button ? Currently i have an input task that notifies me of the task and then i log in to select rows from the editable grid and click the button to start my process model which in turn kicks off other sub-processes that write to the database.
Array of cdt:
local!var:{type!{urn:com:appian:types:TYPES}myType(Id:1,StatusId: 23,ParteId: 21,partNumber: 3500,partTypeId: PMAC560, folderId:20, createdBy: index(local!partInfo.data,"createdBy",{}), createdDate:index(local!partInfo.data,"createdDate",{}), modifiedBy: loggedInUser(), modifiedDate: now() ),
type!{urn:com:appian:types:TYPES}myType(Id:1,StatusId: 23,ParteId: 21,partNumber: 3500,partTypeId: PMAC560,folderId:20,createdBy: index(local!partInfo.data,"createdBy",{}),createdDate:index(local!partInfo.data,"createdDate",{}),modifiedBy: loggedInUser(),modifiedDate: now()
),
type!{urn:com:appian:types:TYPES}myType(Id:1,StatusId: 24,ParteId: 23,partNumber: 3900,partTypeId: PMAC560,folderId:22,createdBy: index(local!partInfo.data,"createdBy",{}),createdDate:index(local!partInfo.data,"createdDate",{}),modifiedBy: loggedInUser(),modifiedDate: now()
)
}
Discussion posts and replies are publicly visible
Hi Parveen,
Can try with the below format?
a!startProcess( processModel: cons!Part_Updates_Const, processParameters: { processParamterVariableNameInProcessModel: ri!partInfo})
Please check the below link[version 18.2] for more details on passing input to processParameters:
docs.appian.com/.../Start_Process_Smart_Service.html