@Component public class RuleActions extends Renderable
| Modifier and Type | Class and Description |
|---|---|
static class |
RuleActions.Actions
Action values.
|
renderableParent, webDriver| Constructor and Description |
|---|
RuleActions() |
| Modifier and Type | Method and Description |
|---|---|
RuleActions |
clickOnAdd()
Click add action button.
|
void |
clickOnCancel()
Click cancel button.
|
void |
clickOnCreate()
Click create button.
|
RuleActions |
clickOnRemove()
Click remove action button.
|
RuleActions |
deselectCreateRecordPath()
Deselect the "Create record path" checkbox.
|
long |
getActionRulesCount()
Count the number of currently existing rules.
|
void |
removeRuleByIndex(int index)
Remove rule selected by index.
|
<T extends Renderable> |
render()
Render method
|
RuleActions |
selectAction(RuleActions.Actions action)
Select action by action value.
|
RuleActions |
selectActionByText(String name)
Select action by text.
|
RuleActions |
selectCreateRecordPath()
Select the "Create record path" checkbox.
|
RuleActions |
setRecordFolderPath(String path)
Set the "Path to Record Folder" text box value.
|
RuleActions |
withEmailParameters(List<String> recipients,
String subject,
String body)
Set E-mail parameters for "Send email" action.
|
RuleActions |
withEventName(String eventName)
Set event name for "Complete event" action.
|
RuleActions |
withRejectReason(String reason,
Renderable parent)
Reject record with "reason".
|
RuleActions |
withRequestInformationParameters(List<String> usersAndGroups,
String requestText,
Renderable parent)
Set text for request information action.
|
RuleActions |
withRulePropertyByNameWithValue(String propertyName,
String value)
Select property by name for "Set property value" action.
|
as, getAllFields, getLastRendered, renderChildrenpublic RuleActions selectAction(RuleActions.Actions action)
action - Action to select.public RuleActions selectActionByText(String name)
name - Action text.public void removeRuleByIndex(int index)
throws IndexOutOfBoundsException
index - Zero based index of rule to be removed.IndexOutOfBoundsException - if index < 0 or index > number of rules.public long getActionRulesCount()
By default at least one (possibly empty) rule will exist.
public RuleActions clickOnAdd()
public RuleActions clickOnRemove()
public RuleActions setRecordFolderPath(String path)
path - Path.public RuleActions selectCreateRecordPath()
public RuleActions deselectCreateRecordPath()
public RuleActions withRejectReason(String reason, Renderable parent)
reason - Reason for rejection.parent - Renderable parent to return to.public RuleActions withRequestInformationParameters(List<String> usersAndGroups, String requestText, Renderable parent)
usersAndGroups - List of users and groups to send this request to.request - Text Request information text.parent - Renderable parent to return to.public RuleActions withEventName(String eventName)
eventName - public RuleActions withEmailParameters(List<String> recipients, String subject, String body)
recipients - List of recipients' Alfresco usernames.subject - Subject line.body - Message body.public RuleActions withRulePropertyByNameWithValue(String propertyName, String value)
propertyName. - public void clickOnCreate()
public void clickOnCancel()
public <T extends Renderable> T render()
Renderablerender in class RenderableCopyright © 2005–2016 Alfresco Software. All rights reserved.