Search in sources :

Example 1 with MessageEventPayload

use of org.activiti.api.process.model.payloads.MessageEventPayload in project Activiti by Activiti.

the class BPMNMessageConverter method convertToBPMNMessage.

@SuppressWarnings("unchecked")
public BPMNMessageImpl convertToBPMNMessage(ActivitiMessageEvent internalEvent) {
    BPMNMessageImpl bpmnMessage = new BPMNMessageImpl(internalEvent.getActivityId());
    bpmnMessage.setProcessDefinitionId(internalEvent.getProcessDefinitionId());
    bpmnMessage.setProcessInstanceId(internalEvent.getProcessInstanceId());
    bpmnMessage.setMessagePayload(new MessageEventPayload(internalEvent.getMessageName(), internalEvent.getMessageCorrelationKey(), internalEvent.getMessageBusinessKey(), (Map<String, Object>) internalEvent.getMessageData()));
    return bpmnMessage;
}
Also used : MessageEventPayload(org.activiti.api.process.model.payloads.MessageEventPayload) BPMNMessageImpl(org.activiti.api.runtime.model.impl.BPMNMessageImpl) Map(java.util.Map)

Aggregations

Map (java.util.Map)1 MessageEventPayload (org.activiti.api.process.model.payloads.MessageEventPayload)1 BPMNMessageImpl (org.activiti.api.runtime.model.impl.BPMNMessageImpl)1