public static class WorkflowDTO.WatcherStepDTO extends WorkflowDTO.StepDTO<WorkflowDTO.WatcherStepDTO>
alreadySatisfiedComment, emailAttachment, emailAttachmentTemplateName, properties, uniqueName, workflow
Constructor and Description |
---|
WatcherStepDTO(WorkflowDTO workflow,
String userLoginName) |
Modifier and Type | Method and Description |
---|---|
WorkflowDTO.WatcherStepDTO |
addProperty(String name,
Object value) |
void |
fromMap(Map<String,Object> values) |
String[] |
getEmailListWatcher()
Gets the list of email addresses if specified as recipient for this node
|
String |
getReason()
Deprecated.
|
List<String> |
getReasons()
Returns the reason text
|
String |
getUserGroupWatcher()
Deprecated.
Gets user group name in case of group watcher (or null otherwise)
|
List<String> |
getUserGroupWatchers()
Gets user group names in case of group watchers (or null otherwise)
|
String |
getUserWatcher()
Deprecated.
Return the current watcher (or null if none set or if group watcher)
|
List<String> |
getUserWatchers()
Return the current watchers (or null if none set or if group watchers)
|
WorkflowDTO.WatcherStepDTO |
setReason(List<String> reasons) |
WorkflowDTO.WatcherStepDTO |
setReason(String reason) |
Map<String,Object> |
toMap() |
WorkflowDTO.WatcherStepDTO |
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...) wins |
WorkflowDTO.WatcherStepDTO |
withReasons(String... reasons)
Sets explanations for the watcher step.
|
WorkflowDTO.WatcherStepDTO |
withUserGroupWatcher(String userGroupUniqueName)
Deprecated.
Specify user group as recipient
Last invoked of
#withUserWatcher(String) , #withUserGroupWatcher(String) ,
#withEmailListWatcher(String...) wins |
WorkflowDTO.WatcherStepDTO |
withUserGroupWatchers(String... userGroupUniqueNames)
Specify user groups as recipient
Last invoked of
#withUserWatchers(String...) , #withUserGroupWatchers(String...) ,
#withEmailListWatchers(String...) wins |
WorkflowDTO.WatcherStepDTO |
withUserWatcher(String userLoginName)
Deprecated.
Specify a user as recipient
Last invoked of
#withUserWatcher(String) , #withUserGroupWatcher(String) ,
#withEmailListWatcher(String...) wins |
WorkflowDTO.WatcherStepDTO |
withUserWatchers(String... userLoginNames)
Specify users as recipients
Last invoked of
#withUserWatchers(String...) , #withUserGroupWatchers(String...) ,
#withEmailListWatcher(String...) wins |
equals, getAlreadySatisfiedComment, getEmailAttachment, getEmailAttachmentTemplateName, getProperties, getUniqueName, hashCode, readSingleValue, withAlreadySatisfied, withAlreadySatisfied, withEmailAttachment, withEmailAttachment, withEmailAttachmentTemplateName
public WatcherStepDTO(WorkflowDTO workflow, String userLoginName)
@Deprecated public WorkflowDTO.WatcherStepDTO withUserWatcher(String userLoginName)
#withUserWatcher(String)
, #withUserGroupWatcher(String)
,
#withEmailListWatcher(String...)
winspublic WorkflowDTO.WatcherStepDTO withUserWatchers(String... userLoginNames)
#withUserWatchers(String...)
, #withUserGroupWatchers(String...)
,
#withEmailListWatcher(String...)
wins@Deprecated public WorkflowDTO.WatcherStepDTO withUserGroupWatcher(String userGroupUniqueName)
#withUserWatcher(String)
, #withUserGroupWatcher(String)
,
#withEmailListWatcher(String...)
winspublic WorkflowDTO.WatcherStepDTO withUserGroupWatchers(String... userGroupUniqueNames)
#withUserWatchers(String...)
, #withUserGroupWatchers(String...)
,
#withEmailListWatchers(String...)
winspublic WorkflowDTO.WatcherStepDTO withEmailListWatcher(String... emails)
#withUserWatchers(String...)
, #withUserGroupWatchers(String...)
,
#withEmailListWatcher(String...)
winspublic WorkflowDTO.WatcherStepDTO addProperty(String name, Object value)
public WorkflowDTO.WatcherStepDTO setReason(String reason)
public WorkflowDTO.WatcherStepDTO setReason(List<String> reasons)
public WorkflowDTO.WatcherStepDTO withReasons(String... reasons)
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.public String getUserWatcher()
public List<String> getUserWatchers()
@Deprecated public String getReason()
public String getUserGroupWatcher()
public List<String> getUserGroupWatchers()
public String[] getEmailListWatcher()
public Map<String,Object> toMap()
toMap
in class WorkflowDTO.StepDTO<WorkflowDTO.WatcherStepDTO>
public void fromMap(Map<String,Object> values)
fromMap
in class WorkflowDTO.StepDTO<WorkflowDTO.WatcherStepDTO>
Copyright © 2019. All rights reserved.