Package net.pricefx.common.dto
Class WorkflowDTO.WatcherStepDTO
- Enclosing class:
WorkflowDTO
public static class WorkflowDTO.WatcherStepDTO
extends WorkflowDTO.StepDTO<WorkflowDTO.WatcherStepDTO>
-
Field Summary
Fields inherited from class WorkflowDTO.StepDTO
alreadySatisfiedComment, emailAttachment, emailAttachmentTemplateName, properties, uniqueName, workflow
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddProperty
(String name, Object value) void
String[]
Gets the list of email addresses if specified as recipient for this nodeDeprecated.Returns the reason textDeprecated.Gets user group name in case of group watcher (or null otherwise)Gets user group names in case of group watchers (or null otherwise)Deprecated.Return the current watcher (or null if none set or if group watcher)Return the current watchers (or null if none set or if group watchers)toMap()
withEmailListWatcher
(String... emails) Instead of specifying a user name or a user group, arbitrary email addresses can be used here Last invoked of#withUserWatchers(String...)
,#withUserGroupWatchers(String...)
,#withEmailListWatcher(String...)
winswithReasons
(String... reasons) Sets explanations for the watcher step.withUserGroupWatcher
(String userGroupUniqueName) Deprecated.Specify user group as recipient Last invoked of#withUserWatcher(String)
,#withUserGroupWatcher(String)
,#withEmailListWatcher(String...)
winswithUserGroupWatchers
(String... userGroupUniqueNames) Specify user groups as recipient Last invoked of#withUserWatchers(String...)
,#withUserGroupWatchers(String...)
,#withEmailListWatchers(String...)
winswithUserWatcher
(String userLoginName) Deprecated.Specify a user as recipient Last invoked of#withUserWatcher(String)
,#withUserGroupWatcher(String)
,#withEmailListWatcher(String...)
winswithUserWatchers
(String... userLoginNames) Specify users as recipients Last invoked of#withUserWatchers(String...)
,#withUserGroupWatchers(String...)
,#withEmailListWatcher(String...)
winsMethods inherited from class WorkflowDTO.StepDTO
equals, getAlreadySatisfiedComment, getEmailAttachment, getEmailAttachmentTemplateName, getProperties, getUniqueName, hashCode, readSingleValue, withAlreadySatisfied, withAlreadySatisfied, withEmailAttachment, withEmailAttachment, withEmailAttachmentTemplateName
-
Constructor Details
-
WatcherStepDTO
-
-
Method Details
-
withUserWatcher
Deprecated.Specify a user as recipient Last invoked of#withUserWatcher(String)
,#withUserGroupWatcher(String)
,#withEmailListWatcher(String...)
wins -
withUserWatchers
Specify users as recipients Last invoked of#withUserWatchers(String...)
,#withUserGroupWatchers(String...)
,#withEmailListWatcher(String...)
wins -
withUserGroupWatcher
Deprecated.Specify user group as recipient Last invoked of#withUserWatcher(String)
,#withUserGroupWatcher(String)
,#withEmailListWatcher(String...)
wins -
withUserGroupWatchers
Specify user groups as recipient Last invoked of#withUserWatchers(String...)
,#withUserGroupWatchers(String...)
,#withEmailListWatchers(String...)
wins -
withEmailListWatcher
Instead of specifying a user name or a user group, arbitrary email addresses can be used here Last invoked of#withUserWatchers(String...)
,#withUserGroupWatchers(String...)
,#withEmailListWatcher(String...)
wins -
addProperty
-
setReason
-
setReason
-
withReasons
Sets explanations for the watcher step.- Parameters:
reasons
- The reasons why each watcher is notified. The reasons match watchers. E.g. if you have 3 watchers (w1, w2, w3), you can specify up to 3 reasons (r1, r2, r3) and then r1 corresponds to w1, r2 to w2 etc. If you want to put multiple reasons to a single watcher, you need to join the strings and return a single combined reason in the code.- Returns:
-
getUserWatcher
Deprecated.Return the current watcher (or null if none set or if group watcher)- Returns:
- The user name
-
getUserWatchers
Return the current watchers (or null if none set or if group watchers)- Returns:
- The user names
-
getReason
Deprecated.Returns the reason text- Returns:
- The reason
-
getReasons
Returns the reason text- Returns:
- The reason
-
getUserGroupWatcher
Deprecated.Gets user group name in case of group watcher (or null otherwise)- Returns:
-
getUserGroupWatchers
Gets user group names in case of group watchers (or null otherwise)- Returns:
-
getEmailListWatcher
Gets the list of email addresses if specified as recipient for this node- Returns:
-
toMap
- Overrides:
toMap
in classWorkflowDTO.StepDTO<WorkflowDTO.WatcherStepDTO>
-
fromMap
- Overrides:
fromMap
in classWorkflowDTO.StepDTO<WorkflowDTO.WatcherStepDTO>
-