mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 14:03:17 +00:00
test for optional attribute
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5701 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -285,8 +285,10 @@ public class WorkflowCurator {
|
||||
} else if ("taskset".equals(eName)) {
|
||||
taskSet = new TaskSet(reader.getAttributeValue(0));
|
||||
} else if ("flowstep".equals(eName)) {
|
||||
flowStep = new FlowStep(reader.getAttributeValue(0),
|
||||
reader.getAttributeValue(1));
|
||||
int count = reader.getAttributeCount();
|
||||
String queue = (count == 2) ?
|
||||
reader.getAttributeValue(1) : null;
|
||||
flowStep = new FlowStep(reader.getAttributeValue(0), queue);
|
||||
} else if ("task".equals(eName)) {
|
||||
task = new Task(reader.getAttributeValue(0));
|
||||
} else if ("workflow".equals(eName)) {
|
||||
|
Reference in New Issue
Block a user