mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ActionTrackingService work
Initial cancel support, and some duplicate instance work (mostly updating tests to handle it coming along). Duplicate id assignment work still remains git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21340 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -106,6 +106,16 @@ public class ActionImpl extends ParameterizedItemImpl implements Action
|
||||
*/
|
||||
private List<ActionCondition> actionConditions = new ArrayList<ActionCondition>();
|
||||
|
||||
/**
|
||||
* When there is more than one instance of the
|
||||
* action executing, both with the same ID,
|
||||
* which one is this?
|
||||
* This crops up most often with persisted
|
||||
* actions, with two copies running, one on
|
||||
* each of two different target nodes.
|
||||
*/
|
||||
private int executionInstance = -1;
|
||||
|
||||
/**
|
||||
* When the action started executing,
|
||||
* or null if it hasn't yet.
|
||||
@@ -466,6 +476,27 @@ public class ActionImpl extends ParameterizedItemImpl implements Action
|
||||
getParameterValues().putAll(values);
|
||||
}
|
||||
|
||||
/**
|
||||
* When there is more than one instance of the
|
||||
* action executing, both with the same ID,
|
||||
* which one is this?
|
||||
* This crops up most often with persisted
|
||||
* actions, with two copies running, one on
|
||||
* each of two different target nodes.
|
||||
*/
|
||||
public int getExecutionInstance()
|
||||
{
|
||||
return executionInstance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Called by the ActionService when the action
|
||||
* begins running.
|
||||
*/
|
||||
public void setExecutionInstance(int instance) {
|
||||
executionInstance = instance;
|
||||
}
|
||||
|
||||
public Date getExecutionStartDate() {
|
||||
return executionStartDate;
|
||||
}
|
||||
|
Reference in New Issue
Block a user