use of org.eclipse.bpmn2.Event in project kie-wb-common by kiegroup.
the class IntermediateThrowEventConverter method compensationEvent.
protected PropertyWriter compensationEvent(Node<View<IntermediateCompensationEventThrowing>, ?> n) {
IntermediateThrowEvent event = bpmn2.createIntermediateThrowEvent();
event.setId(n.getUUID());
ThrowEventPropertyWriter p = propertyWriterFactory.of(event);
IntermediateCompensationEventThrowing definition = n.getContent().getDefinition();
p.setAbsoluteBounds(n);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
p.setMetaData(definition.getAdvancedData().getMetaDataAttributes());
p.setAssignmentsInfo(definition.getDataIOSet().getAssignmentsinfo());
p.addCompensation();
return p;
}
use of org.eclipse.bpmn2.Event in project kie-wb-common by kiegroup.
the class IntermediateThrowEventConverter method escalationEvent.
protected PropertyWriter escalationEvent(Node<View<IntermediateEscalationEventThrowing>, ?> n) {
IntermediateThrowEvent event = bpmn2.createIntermediateThrowEvent();
event.setId(n.getUUID());
ThrowEventPropertyWriter p = propertyWriterFactory.of(event);
IntermediateEscalationEventThrowing definition = n.getContent().getDefinition();
p.setAbsoluteBounds(n);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
p.setMetaData(definition.getAdvancedData().getMetaDataAttributes());
p.setAssignmentsInfo(definition.getDataIOSet().getAssignmentsinfo());
EscalationEventExecutionSet executionSet = definition.getExecutionSet();
p.addEscalation(executionSet.getEscalationRef());
return p;
}
use of org.eclipse.bpmn2.Event in project kie-wb-common by kiegroup.
the class IntermediateThrowEventConverter method linkEvent.
protected PropertyWriter linkEvent(Node<View<IntermediateLinkEventThrowing>, ?> n) {
IntermediateThrowEvent event = bpmn2.createIntermediateThrowEvent();
event.setId(n.getUUID());
ThrowEventPropertyWriter p = propertyWriterFactory.of(event);
IntermediateLinkEventThrowing definition = n.getContent().getDefinition();
p.setAbsoluteBounds(n);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
p.setMetaData(definition.getAdvancedData().getMetaDataAttributes());
p.setAssignmentsInfo(definition.getDataIOSet().getAssignmentsinfo());
LinkEventExecutionSet executionSet = definition.getExecutionSet();
p.addLink(executionSet.getLinkRef());
return p;
}
use of org.eclipse.bpmn2.Event in project kie-wb-common by kiegroup.
the class AbstractThrowEventCompensationEventPostConverter method linkActivityRef.
protected void linkActivityRef(Process process, ThrowEvent throwEvent, String activityRef) {
if (!isEmpty(activityRef)) {
final CompensateEventDefinition compensateEvent = (CompensateEventDefinition) throwEvent.getEventDefinitions().get(0);
final Activity activity = findActivity(process, activityRef);
if (activity != null) {
compensateEvent.setActivityRef(activity);
} else {
LOG.warn("Referred activity: " + activityRef + " was not found for event: id: " + throwEvent.getId() + ", name: " + throwEvent.getName());
}
}
}
use of org.eclipse.bpmn2.Event in project kie-wb-common by kiegroup.
the class EndEventConverter method escalationEvent.
private PropertyWriter escalationEvent(Node<View<EndEscalationEvent>, ?> n) {
EndEvent event = bpmn2.createEndEvent();
event.setId(n.getUUID());
EndEscalationEvent definition = n.getContent().getDefinition();
ThrowEventPropertyWriter p = propertyWriterFactory.of(event);
BPMNGeneralSet general = definition.getGeneral();
p.setName(general.getName().getValue());
p.setDocumentation(general.getDocumentation().getValue());
p.setMetaData(definition.getAdvancedData().getMetaDataAttributes());
p.setAssignmentsInfo(definition.getDataIOSet().getAssignmentsinfo());
EscalationEventExecutionSet executionSet = definition.getExecutionSet();
p.addEscalation(executionSet.getEscalationRef());
p.setAbsoluteBounds(n);
return p;
}
Aggregations