Github user haouech commented on a diff in the pull request:
https://github.com/apache/incubator-taverna-language/pull/41#discussion_r208392499
--- Diff:
taverna-scufl2-api/src/main/java/org/apache/taverna/scufl2/api/common/Scufl2Tools.java
---
@@ -764,6 +764,12 @@ public Configuration
createNestedRelationship(Processor processor, Workflow chil
if(nestedWorkflowForProcessor(processor, profile) != null) {
throw new IllegalStateException("Processor " +
processor + " already has a nested workflow");
}
+ try {
--- End diff --
I found a better way to test if a processor already has a bound activity.
You were right about the exception catching logic. Thanks
---