Element outputElement = new Element(OUTPUT_PORT_TAG, XScufl.XScuflNS); outputElement.setText(outputPort.getName()); outputElement.setAttribute(SYNTACTIC_TYPE_ATTRIBUTE, outputPort .getSyntacticType(), XScufl.XScuflNS);
Element outputElement = new Element("beanshelloutput", XScuflNS); outputElement.setText(outputs[i].getName()); if (outputs[i].getSyntacticType() != null) outputElement.setAttribute("syntactictype", outputs[i]
for (int i = 0; i < outputs.length; i++) { Element outputElement = new Element("bsfoutput", XScufl.XScuflNS); outputElement.setText(outputs[i].getName()); if (outputs[i].getSyntacticType() != null) outputElement.setAttribute("syntactictype", outputs[i].getSyntacticType(), XScufl.XScuflNS);
TypeDescriptor desc = (TypeDescriptor) it.next(); if (desc.getName().equalsIgnoreCase( portToSplit.getName())) { typeDescriptor = desc; break; TypeDescriptor desc = (TypeDescriptor) iterator .next(); if (desc.getName().equals(portToSplit.getName())) { typeDescriptor = desc; if (typeDescriptor instanceof ArrayTypeDescriptor && !((ArrayTypeDescriptor)typeDescriptor).isWrapped()) {
for (int x = 0; x < proc.getBoundOutputPorts().length; x++) { OutputPort outPort = proc.getBoundOutputPorts()[x]; String outputPortName = outPort.getName(); String[] invocations = XMLUtilities.getSingleInvokationsFromMultipleInvokations(inputXML); ArrayList<String> names = new ArrayList<String>(); for (int x = 0; x < proc.getBoundOutputPorts().length; x++) { OutputPort outPort = proc.getBoundOutputPorts()[x]; String outputPortName = outPort.getName(); String[] invocations = XMLUtilities.getSingleInvokationsFromMultipleInvokations(inputXML); ArrayList<String> names = new ArrayList<String>();
String[] outputPortNames = new String[boundOutputs.length]; for (int i = 0; i < outputPortNames.length; i++) { outputPortNames[i] = boundOutputs[i].getName(); logger.debug("Adding output : " + outputPortNames[i]);
JMenuItem item = new JMenuItem(originalPorts[i].getName(), TavernaIcons.outputPortIcon); final Port originalPort = originalPorts[i]; item.addActionListener(new ActionListener() {
private void populatePortSymanticTypeDetails(Processor processor, RshellActivityConfigurationBean bean) throws ActivityTranslationException { List<RShellPortSymanticTypeBean> inputDefinitions = new ArrayList<RShellPortSymanticTypeBean>(); List<RShellPortSymanticTypeBean> outputDefinitions = new ArrayList<RShellPortSymanticTypeBean>(); for (InputPort inputPort : processor.getInputPorts()) { RShellPortSymanticTypeBean symanticTypeBean = new RShellPortSymanticTypeBean(); symanticTypeBean.setName(inputPort.getName()); symanticTypeBean.setSymanticType(getSymanticType(inputPort)); inputDefinitions.add(symanticTypeBean); } for (OutputPort outPort : processor.getOutputPorts()) { RShellPortSymanticTypeBean symanticTypeBean = new RShellPortSymanticTypeBean(); symanticTypeBean.setName(outPort.getName()); symanticTypeBean.setSymanticType(getSymanticType(outPort)); outputDefinitions.add(symanticTypeBean); } bean.setInputSymanticTypes(inputDefinitions); bean.setOutputSymanticTypes(outputDefinitions); }
private void populatePortSymanticTypeDetails(Processor processor, RshellActivityConfigurationBean bean) throws ActivityTranslationException { List<RShellPortSymanticTypeBean> inputDefinitions = new ArrayList<RShellPortSymanticTypeBean>(); List<RShellPortSymanticTypeBean> outputDefinitions = new ArrayList<RShellPortSymanticTypeBean>(); for (InputPort inputPort : processor.getInputPorts()) { RShellPortSymanticTypeBean symanticTypeBean = new RShellPortSymanticTypeBean(); symanticTypeBean.setName(inputPort.getName()); symanticTypeBean.setSymanticType(getSymanticType(inputPort)); inputDefinitions.add(symanticTypeBean); } for (OutputPort outPort : processor.getOutputPorts()) { RShellPortSymanticTypeBean symanticTypeBean = new RShellPortSymanticTypeBean(); symanticTypeBean.setName(outPort.getName()); symanticTypeBean.setSymanticType(getSymanticType(outPort)); outputDefinitions.add(symanticTypeBean); } bean.setInputSymanticTypes(inputDefinitions); bean.setOutputSymanticTypes(outputDefinitions); }
name = outputPort.getName() + "XML";
bean.setName(outPort.getName()); bean.setDepth(determineDepthFromSyntacticType(outPort .getSyntacticType()));
@Before public void setUp() throws Exception { System.setProperty("raven.eclipse", "true"); setUpRavenRepository(); ScuflModel model = loadScufl("biomart-workflow-t1.xml"); Processor[] processors = model.getProcessors(); assertEquals(1, processors.length); assertTrue(processors[0] instanceof BiomartProcessor); biomartProcessor = (BiomartProcessor) processors[0]; inputPortNames = new HashSet<String>(); for (org.embl.ebi.escience.scufl.InputPort port : biomartProcessor.getInputPorts()) { inputPortNames.add(port.getName()); } outputPortNames = new HashSet<String>(); for (org.embl.ebi.escience.scufl.OutputPort port : biomartProcessor.getOutputPorts()) { outputPortNames.add(port.getName()); } translator = new BiomartActivityTranslator(); }
@Before public void setUp() throws Exception { System.setProperty("raven.eclipse", "true"); setUpRavenRepository(); ScuflModel model = loadScufl("biomart-workflow-t1.xml"); Processor[] processors = model.getProcessors(); assertEquals(1, processors.length); assertTrue(processors[0] instanceof BiomartProcessor); biomartProcessor = (BiomartProcessor) processors[0]; inputPortNames = new HashSet<String>(); for (org.embl.ebi.escience.scufl.InputPort port : biomartProcessor.getInputPorts()) { inputPortNames.add(port.getName()); } outputPortNames = new HashSet<String>(); for (org.embl.ebi.escience.scufl.OutputPort port : biomartProcessor.getOutputPorts()) { outputPortNames.add(port.getName()); } translator = new BiomartActivityTranslator(); }
@Before public void setUp() throws Exception { System.setProperty("raven.eclipse", "true"); setUpRavenRepository(); ScuflModel model = loadScufl("biomart-workflow-t1.xml"); Processor[] processors = model.getProcessors(); assertEquals(1, processors.length); assertTrue(processors[0] instanceof BiomartProcessor); biomartProcessor = (BiomartProcessor) processors[0]; inputPortNames = new HashSet<String>(); for (org.embl.ebi.escience.scufl.InputPort port : biomartProcessor.getInputPorts()) { inputPortNames.add(port.getName()); } outputPortNames = new HashSet<String>(); for (org.embl.ebi.escience.scufl.OutputPort port : biomartProcessor.getOutputPorts()) { outputPortNames.add(port.getName()); } translator = new BiomartActivityTranslator(); }
@Before public void setUp() throws Exception { System.setProperty("raven.eclipse", "true"); setUpRavenRepository(); ScuflModel model = loadScufl("soaplab-workflow-t1.xml"); Processor[] processors = model.getProcessors(); assertEquals(1, processors.length); assertTrue(processors[0] instanceof SoaplabProcessor); soaplabProcessor = (SoaplabProcessor) processors[0]; inputPortNames = new HashSet<String>(); for (org.embl.ebi.escience.scufl.InputPort port : soaplabProcessor .getInputPorts()) { inputPortNames.add(port.getName()); } outputPortNames = new HashSet<String>(); for (org.embl.ebi.escience.scufl.OutputPort port : soaplabProcessor .getOutputPorts()) { outputPortNames.add(port.getName()); } translator = new SoaplabActivityTranslator(); }
@Ignore("Integration test") @Before public void setUp() throws Exception { System.setProperty("raven.eclipse", "true"); setUpRavenRepository(); ScuflModel model = loadScufl("soaplab-workflow-t1.xml"); Processor[] processors = model.getProcessors(); assertEquals(1, processors.length); assertTrue(processors[0] instanceof SoaplabProcessor); soaplabProcessor = (SoaplabProcessor) processors[0]; inputPortNames = new HashSet<String>(); for (org.embl.ebi.escience.scufl.InputPort port : soaplabProcessor .getInputPorts()) { inputPortNames.add(port.getName()); } outputPortNames = new HashSet<String>(); for (org.embl.ebi.escience.scufl.OutputPort port : soaplabProcessor .getOutputPorts()) { outputPortNames.add(port.getName()); } translator = new SoaplabActivityTranslator(); }
String portName = op[i].getName(); InputPort port = new InputPort(m.getWorkflowSinkProcessor(), portName); m.getWorkflowSinkProcessor().addPort(port);
public void testDefaultValues() { assertEquals("", processor.getScript()); assertEquals("", processor.getHostname()); assertEquals("", processor.getPort(), 0); assertEquals("", processor.getPassword()); assertEquals("", processor.getUsername()); OutputPort[] outports = processor.getOutputPorts(); System.out.println(outports); assertEquals(1, outports.length); assertEquals("value", outports[0].getName()); assertEquals("l('text/plain')", outports[0].getSyntacticType()); }