public static class WorkflowDTO.WatcherStepDTO extends WorkflowDTO.StepDTO
emailAttachment, 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()
Returns the reason text
|
String |
getUserGroupWatcher()
Gets user group name in case of group watcher (or null otherwise)
|
String |
getUserWatcher()
Return the current watcher (or null if none set or if group watcher)
|
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
#withUserWatcher(String) , #withUserGroupWatcher(String) ,
#withEmailListWatcher(String...) wins |
WorkflowDTO.WatcherStepDTO |
withUserGroupWatcher(String userGroupUniqueName)
Specify a user group as recipient
Last invoked of
#withUserWatcher(String) , #withUserGroupWatcher(String) ,
#withEmailListWatcher(String...) wins |
WorkflowDTO.WatcherStepDTO |
withUserWatcher(String userLoginName)
Specify a user as recipient
Last invoked of
#withUserWatcher(String) , #withUserGroupWatcher(String) ,
#withEmailListWatcher(String...) wins |
equals, getEmailAttachment, getProperties, getUniqueName, hashCode, withEmailAttachment, withEmailAttachment
public WatcherStepDTO(WorkflowDTO workflow, String userLoginName)
public WorkflowDTO.WatcherStepDTO withUserWatcher(String userLoginName)
#withUserWatcher(String)
, #withUserGroupWatcher(String)
,
#withEmailListWatcher(String...)
winspublic WorkflowDTO.WatcherStepDTO withUserGroupWatcher(String userGroupUniqueName)
#withUserWatcher(String)
, #withUserGroupWatcher(String)
,
#withEmailListWatcher(String...)
winspublic WorkflowDTO.WatcherStepDTO withEmailListWatcher(String... emails)
#withUserWatcher(String)
, #withUserGroupWatcher(String)
,
#withEmailListWatcher(String...)
winspublic WorkflowDTO.WatcherStepDTO addProperty(String name, Object value)
public WorkflowDTO.WatcherStepDTO setReason(String reason)
public String getUserWatcher()
public String getReason()
public String getUserGroupWatcher()
public String[] getEmailListWatcher()
public Map<String,Object> toMap()
toMap
in class WorkflowDTO.StepDTO
public void fromMap(Map<String,Object> values)
fromMap
in class WorkflowDTO.StepDTO
Copyright © 2016. All rights reserved.