|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Action
The rule action interface
Method Summary | |
---|---|
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(java.util.Map values)
Adds a Map of parameter values to the Action |
ActionCondition |
getActionCondition(int index)
Get the action condition at a given index |
java.util.List |
getActionConditions()
Gets a list of the action conditions for this action |
java.lang.String |
getActionDefinitionName()
Get the name of the action definition that relates to this action |
Action |
getCompensatingAction()
Get the compensating action. |
java.util.Date |
getCreatedDate()
Get the date the action was created |
java.lang.String |
getCreator()
Get the name of the user that created the action |
java.lang.String |
getDescription()
Get the description of the action |
boolean |
getExecuteAsychronously()
Gets a value indicating whether the action should be executed asychronously or not. |
java.util.Date |
getExecutionEndDate()
Gets the date that the action (last) finished execution at. |
java.lang.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. |
java.util.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. |
java.util.Date |
getModifiedDate()
Get the date that the action was last modified |
java.lang.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. |
java.lang.String |
getTitle()
Get the title of the action |
java.lang.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(java.lang.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(java.lang.String title)
Set the title of the action |
void |
setTrackStatus(java.lang.Boolean trackStatus)
Set whether the action should be tracked or not. |
Methods inherited from interface org.alfresco.service.cmr.action.ParameterizedItem |
---|
getId, getParameterValue, getParameterValues, setParameterValue, setParameterValues |
Method Detail |
---|
org.alfresco.service.cmr.repository.NodeRef getNodeRef()
java.lang.String getActionDefinitionName()
java.lang.String getTitle()
void setTitle(java.lang.String title)
title
- the title of the actionjava.lang.String getDescription()
void setDescription(java.lang.String description)
description
- the description of the actionjava.lang.Boolean getTrackStatus()
ActionTrackingService
, false if it must NOT be
tracked or null to use the action definition's default.void setTrackStatus(java.lang.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 actionjava.util.Date getCreatedDate()
java.lang.String getCreator()
java.util.Date getModifiedDate()
java.lang.String getModifier()
boolean hasActionConditions()
int indexOfActionCondition(ActionCondition actionCondition)
actionCondition
- the action condition
java.util.List getActionConditions()
ActionCondition getActionCondition(int index)
index
- the index
void 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(java.util.Map values)
Map
of parameter values to the Action
values
- A map of values to be addedjava.util.Date getExecutionStartDate()
java.util.Date getExecutionEndDate()
ActionStatus getExecutionStatus()
java.lang.String getExecutionFailureMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |