//Output: multi-part message -> DataObject // Step 1: get the BOFactory BOFactory factory = (BOFactory)ServiceManager.INSTANCE.locateService("com/ibm/websphere/bo/BOFactory"); // Step 2: get the type of the variable 'aMyBusinessObject' using the utility method Type type = getVariableType("Output"); // Step 3: create the business object using the BOFactory and assign it to the process variable Output = factory.createByType(type); //Create parts, that are of complex types DataObject myBusinessObject = Output.createDataObject("processBusinessObject"); //create nested DataObject DataObject nested = myBusinessObject.createDataObject("aBO"); //MyBO xsd-type (complex type) MyBO = factory.create("http://JavaSnippets/bpc/samples","BO");