blob: 37828ea27611ea30010785620fc29f8bdf95eb60 [file] [log] [blame]
{
"classLoaderSharing" : "workflow",
"script" : "int targetLengthInt = 7;\nif (targetlength != void) {\n\ttargetLengthInt = Integer.parseInt(targetlength);\n}\nint currentLength = input.length();\nwhile (input.length() < targetLengthInt) {\n\tinput = \"0\" + input;\n}\npadded = input;",
"localworkerName" : "org.embl.ebi.escience.scuflworkers.java.PadNumber",
"inputPorts" : [ {
"name" : "input",
"depth" : 0,
"type" : "String"
}, {
"name" : "targetlength",
"depth" : 0,
"type" : "String"
} ],
"outputPorts" : [ {
"name" : "padded",
"depth" : 0,
"granularDepth" : 0
} ],
"isAltered" : false
}