use of org.activiti.engine.impl.bpmn.data.AbstractDataAssociation in project Activiti by Activiti.
the class WebServiceActivityBehavior method fillMessage.
protected void fillMessage(List<DataAssociation> dataInputAssociations, DelegateExecution execution) {
for (DataAssociation dataAssociationElement : dataInputAssociations) {
AbstractDataAssociation dataAssociation = createDataInputAssociation(dataAssociationElement);
dataAssociation.evaluate(execution);
}
}
use of org.activiti.engine.impl.bpmn.data.AbstractDataAssociation in project Activiti by Activiti.
the class WebServiceActivityBehavior method createDataOutputAssociation.
protected AbstractDataAssociation createDataOutputAssociation(DataAssociation dataAssociationElement) {
if (StringUtils.isNotEmpty(dataAssociationElement.getSourceRef())) {
return new MessageImplicitDataOutputAssociation(dataAssociationElement.getTargetRef(), dataAssociationElement.getSourceRef());
} else {
ExpressionManager expressionManager = Context.getProcessEngineConfiguration().getExpressionManager();
Expression transformation = expressionManager.createExpression(dataAssociationElement.getTransformation());
AbstractDataAssociation dataOutputAssociation = new TransformationDataOutputAssociation(null, dataAssociationElement.getTargetRef(), transformation);
return dataOutputAssociation;
}
}
use of org.activiti.engine.impl.bpmn.data.AbstractDataAssociation in project Activiti by Activiti.
the class WebServiceActivityBehavior method returnMessage.
protected void returnMessage(List<DataAssociation> dataOutputAssociations, DelegateExecution execution) {
for (DataAssociation dataAssociationElement : dataOutputAssociations) {
AbstractDataAssociation dataAssociation = createDataOutputAssociation(dataAssociationElement);
dataAssociation.evaluate(execution);
}
}
Aggregations