08-21-2014 08:43 AM
public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception {
String source = xtr.getAttributeValue(null, ATTRIBUTE_IOPARAMETER_SOURCE);
String sourceExpression = xtr.getAttributeValue(null, ATTRIBUTE_IOPARAMETER_SOURCE_EXPRESSION);
String target = xtr.getAttributeValue(null, ATTRIBUTE_IOPARAMETER_TARGET);
if((StringUtils.isNotEmpty(source) || StringUtils.isNotEmpty(sourceExpression)) && StringUtils.isNotEmpty(target)) {
IOParameter parameter = new IOParameter();
if(StringUtils.isNotEmpty(sourceExpression)) {
parameter.setSourceExpression(sourceExpression);
} else {
parameter.setSource(source);
}
parameter.setTarget(target);
((CallActivity) parentElement).getInParameters().add(parameter);
}
}
if (element instanceof Activity && element instanceof UserTask == false) {
List<ActivitiListener> resultListenerList = new ArrayList<ActivitiListener>();
for (ActivitiListener listener : ((Activity ) element)
.getExecutionListeners()) {
resultListenerList.add(clone(listener));
}
((Activity) cloneElement)
.setExecutionListeners(resultListenerList);
cloneElement = clone((Activity) element, diagram);
08-30-2014 12:53 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.