blob: 6c287b632b46e25c575e95dbd13d8be8fedb3b76 [file] [log] [blame]
{
"classLoaderSharing" : "workflow",
"script" : "import javax.swing.JOptionPane;\n\nif ((valueList == void) || (valueList == null) || (valueList.isEmpty())) {\n throw new RuntimeException(\"valueList must be specified and non-empty\");\n}\n\nanswer = (String) JOptionPane.showInputDialog(null, (message == void ? null : message), (title == void ? null : title), JOptionPane.QUESTION_MESSAGE, null, valueList.toArray(), valueList.get(0));\n",
"localworkerName" : "net.sourceforge.taverna.scuflworkers.ui.SelectWorker",
"inputPorts" : [ {
"name" : "valueList",
"depth" : 1,
"type" : "String"
}, {
"name" : "message",
"depth" : 0,
"type" : "String"
}, {
"name" : "title",
"depth" : 0,
"type" : "String"
} ],
"outputPorts" : [ {
"name" : "answer",
"depth" : 0,
"granularDepth" : 0
} ],
"isAltered" : false
}