toQuery.setValue(lhsData.xpathExpr.evaluate());
to.setQuery(toQuery);
to.setVariable(lhsData.variable);
From from = BPELFactory.eINSTANCE.createFrom();
Expression expr = BPELFactory.eINSTANCE.createExpression();
expr.setBody(rhsData.xpathLiteralExpr.evaluate());
from.setExpression(expr);
//from.setLiteral(rhsData.xpathLiteralExpr.evaluate());
from.setVariable(rhsData.variable);
Copy copy = BPELFactory.eINSTANCE.createCopy();
copy.setTo(to);
copy.setFrom(from);
assign.getCopy().add(copy);
assignmentData.activity = assign;
} else if (rhsData.variable != null && rhsData.xpathExpr != null){
Assign assign = BPELFactory.eINSTANCE.createAssign();
assignmentData.activity = assign;
To to = BPELFactory.eINSTANCE.createTo();
Query toQuery = BPELFactory.eINSTANCE.createQuery();
toQuery.setQueryLanguage(XPATH_NAMESPACE);
toQuery.setValue(lhsData.xpathExpr.evaluate());
to.setQuery(toQuery);
to.setVariable(lhsData.variable);
From from = BPELFactory.eINSTANCE.createFrom();
if (rhsData.variable != null){
from.setVariable(rhsData.variable);
Query fromQuery = BPELFactory.eINSTANCE.createQuery();
fromQuery.setQueryLanguage(XPATH_NAMESPACE);
fromQuery.setValue(rhsData.xpathExpr.evaluate());
from.setQuery(fromQuery);
} else {
Expression expr = BPELFactory.eINSTANCE.createExpression();
expr.setBody(rhsData.xpathExpr.evaluate());
from.setExpression(expr);
}
//from.setLiteral(rhsData.xpathExpr.evaluate());
Copy copy = BPELFactory.eINSTANCE.createCopy();