Package io.jmix.bpm.notification.impl
Class BpmNotificationExtractorImpl
java.lang.Object
io.jmix.bpm.notification.impl.BpmNotificationExtractorImpl
- All Implemented Interfaces:
BpmNotificationExtractor
@Component("bpm_BpmNotificationExtractor")
public class BpmNotificationExtractorImpl
extends Object
implements BpmNotificationExtractor
Default
BpmNotificationExtractor implementation that reads the notification definitions from the
<jmix:notification> extension elements of a flow element.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable StringemptyToNull(@Nullable String value) extractNotifications(org.flowable.bpmn.model.FlowElement flowElement) Extracts notification definitions declared on the given flow element.protected @Nullable StringgetChildText(org.flowable.bpmn.model.ExtensionElement element, String childName) parseChannels(@Nullable String value) protected NotificationDefinitiontoDefinition(org.flowable.bpmn.model.ExtensionElement element)
-
Field Details
-
NOTIFICATION_ELEMENT
- See Also:
-
SUBJECT_ELEMENT
- See Also:
-
BODY_ELEMENT
- See Also:
-
EVENT_ATTR
- See Also:
-
RECIPIENT_TYPE_ATTR
- See Also:
-
RECIPIENT_EXPRESSION_ATTR
- See Also:
-
CHANNELS_ATTR
- See Also:
-
TYPE_ATTR
- See Also:
-
CONTENT_TYPE_ATTR
- See Also:
-
TEMPLATE_CODE_ATTR
- See Also:
-
-
Constructor Details
-
BpmNotificationExtractorImpl
public BpmNotificationExtractorImpl()
-
-
Method Details
-
extractNotifications
public List<NotificationDefinition> extractNotifications(org.flowable.bpmn.model.FlowElement flowElement) Description copied from interface:BpmNotificationExtractorExtracts notification definitions declared on the given flow element.- Specified by:
extractNotificationsin interfaceBpmNotificationExtractor- Parameters:
flowElement- BPMN element (user task or service task)- Returns:
- list of definitions in document order; empty if none are declared
-
toDefinition
-
parseChannels
-
getChildText
-
emptyToNull
-