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;
}
Aggregations