Probelm statement:: We have a webservice which uses the Appian API to make

Probelm statement::
We have a webservice which uses the Appian API to make a call to the process model using the Appian API like below:

NamedTypedValue namedTypeValue = new NamedTypedValue(JaxbConverter.toTypedValue(po, bulkAddParameterTypeId, ts),"BulkAddProcessObject");
                              ProcessVariableInstance myBulkUpload = new ProcessVariableInstance(namedTypeValue);
                              ProcessStartConfig con = new ProcessStartConfig();
                              con.setProcessParameters(new ProcessVariable[]{myBulkUpload});
                              processID          =          pds.initiateProcess(pmId, con);

Data is not gettig passed from webservice to the process model.

Findings:
------------
when the below code is invoked - Typed conversion takes place
JaxbConverter.toTypedValue(po, bulkAddParameterTypeId, ts)
po= process object with values
bulkAddParameterTypeId=processobjectid
ts = tyep service
Result of above execution:
NamedTypedValue[name=BulkAddProcessObject,it=980,v={<null>,<null>,,<null>}]
The data is...

OriginalPostID-35728

OriginalPostID-35728

  Discussion posts and replies are publicly visible

Parents
  • The problem is that your NamedTypedValue is receiving a name different from your process variable (parameter). Your process parameter (pv) is called "BulkaddProcessObject_PV", however you the object you are creating (NamedTypedValue) is has the name "BulkAddProcessObject"; this will result in the following error in the Appian logs:

    WARN .a.p.PROCESS.i "Ignoring these unrecognized process parameters: ,`BulkAddProcessObject"

    which makes sense because your process model DOES NOT have a process variable with this name; the right name is BulkaddProcessObject_PV
Reply
  • The problem is that your NamedTypedValue is receiving a name different from your process variable (parameter). Your process parameter (pv) is called "BulkaddProcessObject_PV", however you the object you are creating (NamedTypedValue) is has the name "BulkAddProcessObject"; this will result in the following error in the Appian logs:

    WARN .a.p.PROCESS.i "Ignoring these unrecognized process parameters: ,`BulkAddProcessObject"

    which makes sense because your process model DOES NOT have a process variable with this name; the right name is BulkaddProcessObject_PV
Children
No Data