Most import components in jBEAM allow you to define whether a channel/signal should be loaded completely, on standby or not at all. This can be set via the LoadStatus in the BasicChannelInfos of the channels, even before the import runs for the first time.
In this example script (Groovy/Java) we create a new DeweSoft file importer, set the LoadStatus of two channels to complete and all other channel were set to be ignored.
The script uses the most general importer class so that you can easily adapt it to other importer types. e.g. jC.newComponent(jbComponentIF.MDF_FILE, false);
import com.AMS.jBEAM.AbstractDataFileImporter.BasicChannelInfoIF; import com.AMS.jBEAM.AbstractDataFileImporter.LoadStatus; AbstractDataFileImporter importer = (AbstractDataFileImporter) jC.newComponent(jbComponentIF.DEWESOFT_FILE, false); importer.setImportFile(new File("path.to.file.dxd")); List<String> namesOfChannelsToLoad = Arrays.asList("W-C", "I-B"); BasicChannelInfoIF[] allHeaders = importer.getBasicChannelInfos(); for(BasicChannelInfoIF channelHeader: allHeaders) { LoadStatus status = LoadStatus.Ignore; if(namesOfChannelsToLoad.contains(channelHeader.getResultItemName())) { status = LoadStatus.Complete; } channelHeader.setLoadStatus(status, true); } //jC.validateFramework(true); //will actually run the import - this line is normally not needed
Opening the resulting import window shows that only the two named channels are loaded, the rest is set to ignored state.