We have a workflow with steps that get renamed using formdata
In LAPI we could get the form and populate it, then start the workflow, it would automatically then use the form data to rename steps and itself.
I'm trying to do this with the webservices and having trouble- it's starting the workflow with the incomplete form.
pseudo code....
Processdefinition pdef = wsclient.getProcessDefinition...
ApplicationData[] appdata = pdef.ApplicationData
FormData thisFormData.Forms = ...find the one that's type is FormData...
FormInstance[] formInstanceArray = thisFormData.Forms
formInstanceArray is null...
It's null so I can't populate it with data to submit with the workflow.
If I wait until I have a ProcessInstance it's too late, even if it has formData and a formInstanceArray, the workflow is already created with bad form data.
ProcessInstance procInst = wsclient.CreateProcess(otAuth,pDef,name....
If I try to create a new FormDataInstance and add it to the ApplicationData it complains about not finding the form when trying to use createProcess.
Is there a way to do this that I'm missing or possibly another method to get this done with webservices like i did with LAPI?
We're using 9.7.1.
Thanks.