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
  • This is an example that I just created to test this; I hope this helps:

    Student studentPOJO = new Student();
    studentPOJO.setFirstName("Eduardo");
    studentPOJO.setLastName("Fuentes");

    String namespace = "xxxxxxxxxx:8002/.../";
    String typeName = "Student";
    TypedValue typedValue = JaxbConverter.toTypedValue(studentPOJO, ts.getTypeByQualifiedName(new QName(namespace,typeName)).getId(), ts);
    NamedTypedValue namedTypeValue = new NamedTypedValue(typedValue,"myStudent");
    ProcessVariableInstance myStudent = new ProcessVariableInstance(namedTypeValue);

    ProcessStartConfig config = new ProcessStartConfig();
    config.setProcessParameters(new ProcessVariable[]{myStudent});
    pds.initiateProcess(pmID, config);
Reply
  • This is an example that I just created to test this; I hope this helps:

    Student studentPOJO = new Student();
    studentPOJO.setFirstName("Eduardo");
    studentPOJO.setLastName("Fuentes");

    String namespace = "xxxxxxxxxx:8002/.../";
    String typeName = "Student";
    TypedValue typedValue = JaxbConverter.toTypedValue(studentPOJO, ts.getTypeByQualifiedName(new QName(namespace,typeName)).getId(), ts);
    NamedTypedValue namedTypeValue = new NamedTypedValue(typedValue,"myStudent");
    ProcessVariableInstance myStudent = new ProcessVariableInstance(namedTypeValue);

    ProcessStartConfig config = new ProcessStartConfig();
    config.setProcessParameters(new ProcessVariable[]{myStudent});
    pds.initiateProcess(pmID, config);
Children
No Data