@AlfrescoPublicApi public interface Action extends ParameterizedItem
Modifier and Type | Method and Description |
---|---|
void |
addActionCondition(ActionCondition actionCondition)
Add an action condition to the action
|
void |
addActionCondition(int index,
ActionCondition actionCondition)
Add an action condition at the given index
|
void |
addParameterValues(Map<String,Serializable> values)
|
ActionCondition |
getActionCondition(int index)
Get the action condition at a given index
|
List<ActionCondition> |
getActionConditions()
Gets a list of the action conditions for this action
|
String |
getActionDefinitionName()
Get the name of the action definition that relates to this action
|
Action |
getCompensatingAction()
Get the compensating action.
|
Date |
getCreatedDate()
Get the date the action was created
|
String |
getCreator()
Get the name of the user that created the action
|
String |
getDescription()
Get the description of the action
|
boolean |
getExecuteAsychronously()
A guide for the ActionService; Should the action be executed asychronously or not?
It is not a general purpose flag to indicate the action is running asychronously.
|
Date |
getExecutionEndDate()
Gets the date that the action (last) finished
execution at.
|
String |
getExecutionFailureMessage()
Gets the message of the exception which caused the
Action execution failure, or null if the Action
hasn't failed / has been retried.
|
Date |
getExecutionStartDate()
Gets the date that the action (last) began executing at.
|
ActionStatus |
getExecutionStatus()
Gets the current execution status of the action,
such as Running or Completed.
|
Date |
getModifiedDate()
Get the date that the action was last modified
|
String |
getModifier()
Get the name of the user that last modified the action
|
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef()
Gets the node ref that represents the saved action node.
|
String |
getTitle()
Get the title of the action
|
Boolean |
getTrackStatus() |
boolean |
hasActionConditions()
Indicates whether the action has any conditions specified
|
int |
indexOfActionCondition(ActionCondition actionCondition)
Gets the index of an action condition
|
void |
removeActionCondition(ActionCondition actionCondition)
Removes an action condition
|
void |
removeAllActionConditions()
Removes all action conditions
|
void |
setActionCondition(int index,
ActionCondition actionCondition)
Replaces the current action condition at the given index with the
action condition provided.
|
void |
setCompensatingAction(Action action)
Set the compensating action.
|
void |
setDescription(String description)
Set the description of the action
|
void |
setExecuteAsynchronously(boolean executeAsynchronously)
Set the value that indicates whether the action should be executed asychronously or not.
|
void |
setTitle(String title)
Set the title of the action
|
void |
setTrackStatus(Boolean trackStatus)
Set whether the action should be tracked or not.
|
getId, getParameterValue, getParameterValues, setParameterValue, setParameterValues
org.alfresco.service.cmr.repository.NodeRef getNodeRef()
String getActionDefinitionName()
String getTitle()
void setTitle(String title)
title
- the title of the actionString getDescription()
void setDescription(String description)
description
- the description of the actionBoolean getTrackStatus()
ActionTrackingService
, false if it must NOT be
tracked or null to use the action definition's default.void setTrackStatus(Boolean trackStatus)
trackStatus
- true if the action must be tracked by the
ActionTrackingService
, false if it must NOT be
tracked or null to use the action definition's default.boolean getExecuteAsychronously()
The default is to execute the action synchronously.
void setExecuteAsynchronously(boolean executeAsynchronously)
executeAsynchronously
- true if the action is to be executed asychronously, false otherwise.Action getCompensatingAction()
This action is executed if the failure behaviour is to compensate and the action being executed fails.
void setCompensatingAction(Action action)
action
- the compensating actionDate getCreatedDate()
String getCreator()
Date getModifiedDate()
String getModifier()
boolean hasActionConditions()
int indexOfActionCondition(ActionCondition actionCondition)
actionCondition
- the action conditionList<ActionCondition> getActionConditions()
ActionCondition getActionCondition(int index)
index
- the indexvoid addActionCondition(ActionCondition actionCondition)
actionCondition
- an action conditionvoid addActionCondition(int index, ActionCondition actionCondition)
index
- the indexactionCondition
- the action conditionvoid setActionCondition(int index, ActionCondition actionCondition)
index
- the indexactionCondition
- the action conditionvoid removeActionCondition(ActionCondition actionCondition)
actionCondition
- an action conditionvoid removeAllActionConditions()
void addParameterValues(Map<String,Serializable> values)
values
- A map of values to be addedDate getExecutionStartDate()
Date getExecutionEndDate()
ActionStatus getExecutionStatus()
String getExecutionFailureMessage()
Copyright © 2005–2017 Alfresco Software. All rights reserved.