Search in sources :

Example 6 with AbstractDataAssociation

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);
    }
}
Also used : AbstractDataAssociation(org.activiti.engine.impl.bpmn.data.AbstractDataAssociation) AbstractDataAssociation(org.activiti.engine.impl.bpmn.data.AbstractDataAssociation) DataAssociation(org.activiti.bpmn.model.DataAssociation)

Example 7 with AbstractDataAssociation

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;
    }
}
Also used : MessageImplicitDataOutputAssociation(org.activiti.engine.impl.bpmn.webservice.MessageImplicitDataOutputAssociation) ExpressionManager(org.activiti.engine.impl.el.ExpressionManager) TransformationDataOutputAssociation(org.activiti.engine.impl.bpmn.data.TransformationDataOutputAssociation) AbstractDataAssociation(org.activiti.engine.impl.bpmn.data.AbstractDataAssociation) Expression(org.activiti.engine.delegate.Expression)

Example 8 with AbstractDataAssociation

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);
    }
}
Also used : AbstractDataAssociation(org.activiti.engine.impl.bpmn.data.AbstractDataAssociation) AbstractDataAssociation(org.activiti.engine.impl.bpmn.data.AbstractDataAssociation) DataAssociation(org.activiti.bpmn.model.DataAssociation)

Aggregations

AbstractDataAssociation (org.activiti.engine.impl.bpmn.data.AbstractDataAssociation)8 DataAssociation (org.activiti.bpmn.model.DataAssociation)4 Expression (org.activiti.engine.delegate.Expression)2 WebServiceActivityBehavior (org.activiti.engine.impl.bpmn.behavior.WebServiceActivityBehavior)2 IOSpecification (org.activiti.engine.impl.bpmn.data.IOSpecification)2 TransformationDataOutputAssociation (org.activiti.engine.impl.bpmn.data.TransformationDataOutputAssociation)2 MessageImplicitDataOutputAssociation (org.activiti.engine.impl.bpmn.webservice.MessageImplicitDataOutputAssociation)2 ActivityImpl (org.activiti.engine.impl.pvm.process.ActivityImpl)2 Map (java.util.Map)1 ActivitiException (org.activiti.engine.ActivitiException)1 Operation (org.activiti.engine.impl.bpmn.webservice.Operation)1 ExpressionManager (org.activiti.engine.impl.el.ExpressionManager)1 DeploymentManager (org.activiti.engine.impl.persistence.deploy.DeploymentManager)1 ProcessDefinitionEntity (org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntity)1 PvmProcessInstance (org.activiti.engine.impl.pvm.PvmProcessInstance)1