Search in sources :

Example 16 with NotificationValue

use of org.kie.workbench.common.stunner.bpmn.definition.property.notification.NotificationValue in project kie-wb-common by kiegroup.

the class NotificationRow method toNotificationValue.

public NotificationValue toNotificationValue() {
    NotificationValue value = new NotificationValue();
    value.setType(getType().getAlias());
    value.setExpiresAt(getExpiresAt());
    value.setGroups(new ArrayList<>(getGroups()));
    value.setUsers(new ArrayList<>(getUsers()));
    value.setEmails(getEmails());
    value.setBody(getBody());
    value.setSubject(getSubject());
    value.setFrom(getFrom());
    value.setReplyTo(getReplyTo());
    return value;
}
Also used : NotificationValue(org.kie.workbench.common.stunner.bpmn.definition.property.notification.NotificationValue) ValidNotificationValue(org.kie.workbench.common.stunner.bpmn.client.forms.fields.notificationsEditor.validation.ValidNotificationValue)

Aggregations

NotificationValue (org.kie.workbench.common.stunner.bpmn.definition.property.notification.NotificationValue)16 Test (org.junit.Test)10 ArrayList (java.util.ArrayList)3 HTMLInputElement (elemental2.dom.HTMLInputElement)1 ValidNotificationValue (org.kie.workbench.common.stunner.bpmn.client.forms.fields.notificationsEditor.validation.ValidNotificationValue)1 ReflectionUtilsTest (org.kie.workbench.common.stunner.bpmn.client.forms.util.ReflectionUtilsTest)1 UserTask (org.kie.workbench.common.stunner.bpmn.definition.UserTask)1 NotificationTypeListValue (org.kie.workbench.common.stunner.bpmn.definition.property.notification.NotificationTypeListValue)1 NotificationsInfo (org.kie.workbench.common.stunner.bpmn.definition.property.notification.NotificationsInfo)1 Metadata (org.kie.workbench.common.stunner.core.diagram.Metadata)1 Graph (org.kie.workbench.common.stunner.core.graph.Graph)1