Example of code:
String field1 = getParameterValue(parameterMap, "field1");
String field2 = getParameterValue(parameterMap, "field2");
String field3 = getParameterValue(parameterMap, "field3");
UserDataType userData = CommerceFoundationFactory.eINSTANCE.createUserDataType();
userData.getUserDataField().put("field1", field1);
userData.getUserDataField().put("field2", field2);
userData.getUserDataField().put("field3", field3);
itemNoun.setUserData(userData);
and output of this Noun looks as below:
Noun output
String field1 = getParameterValue(parameterMap, "field1");
String field2 = getParameterValue(parameterMap, "field2");
String field3 = getParameterValue(parameterMap, "field3");
UserDataType userData = CommerceFoundationFactory.eINSTANCE.createUserDataType();
userData.getUserDataField().put("field1", field1);
userData.getUserDataField().put("field2", field2);
userData.getUserDataField().put("field3", field3);
itemNoun.setUserData(userData);
and output of this Noun looks as below:
Noun output
No comments:
Post a Comment