//
// We leave the BO ID and Module ID values not set. If they
// are not set the Workflow Engine will set them based on
// the type of records contained in the record list as part
// of the return value processing.
WFStepInfoImpl wfStepInfo = new WFStepInfoImpl();
wfStepInfo.setRecordList(resultRecordIds);
wfStepInfo.setResultCount(new Long(resultRecordIds.size()));
wfStepInfo.setSuccess(Boolean.TRUE);
wfStepInfo.setStatus("Custom");
// Create a WFVariable that contains it.
WFVariable returnParam1 = new WFVariable(RETURN_VALUE_NAME, wfStepInfo);
// Create the CustomParamTaskResult to return.
CustomParamTaskResultImpl taskResult = new CustomParamTaskResultImpl();
// Create the return parameters map.