mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +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)) {
|
} else if ("taskset".equals(eName)) {
|
||||||
taskSet = new TaskSet(reader.getAttributeValue(0));
|
taskSet = new TaskSet(reader.getAttributeValue(0));
|
||||||
} else if ("flowstep".equals(eName)) {
|
} else if ("flowstep".equals(eName)) {
|
||||||
flowStep = new FlowStep(reader.getAttributeValue(0),
|
int count = reader.getAttributeCount();
|
||||||
reader.getAttributeValue(1));
|
String queue = (count == 2) ?
|
||||||
|
reader.getAttributeValue(1) : null;
|
||||||
|
flowStep = new FlowStep(reader.getAttributeValue(0), queue);
|
||||||
} else if ("task".equals(eName)) {
|
} else if ("task".equals(eName)) {
|
||||||
task = new Task(reader.getAttributeValue(0));
|
task = new Task(reader.getAttributeValue(0));
|
||||||
} else if ("workflow".equals(eName)) {
|
} else if ("workflow".equals(eName)) {
|
||||||
|
Reference in New Issue
Block a user