--- a/src/main/java/net/timbusproject/extractors/modules/tavernaextractor/utils/ArchiUtils.java
+++ b/src/main/java/net/timbusproject/extractors/modules/tavernaextractor/utils/ArchiUtils.java
@@ -2,6 +2,7 @@
import com.google.common.collect.Iterators;
import com.google.common.collect.UnmodifiableIterator;
+
import net.sf.taverna.t2.activities.stringconstant.StringConstantActivity;
import net.sf.taverna.t2.workflowmodel.Processor;
import net.sf.taverna.t2.workflowmodel.processor.activity.Activity;
@@ -14,7 +15,7 @@
/**
* Group {@link IArchimateElement}s which have a relation of type {@link IAccessRelationship} between a source and a
* target element
- *
+ *
* @param processors
* @param relationsList
* @return map containing source and target element (as keys) and a list of {@link IArchimateElement} between those
@@ -54,7 +55,7 @@
/**
* Return all {@link IArchimateElement}s which have a relation of type {@link IAccessRelationship} between a source
* and a target element
- *
+ *
* @param source
* @param target
* @param relationsList
@@ -317,6 +318,13 @@
elements.add(relation.getSource());
}
return elements;
- }
+ }
+
+ public static IProperty createProperty(String key, String value) {
+ IProperty property = IArchimateFactory.eINSTANCE.createProperty();
+ property.setKey(key);
+ property.setValue(value);
+ return property;
+ }
}