summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/entity/agent
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2014-05-16 10:38:32 +0200
committerAndrew Branson <andrew.branson@cern.ch>2014-05-16 10:38:32 +0200
commit62c7a46967e949304e6b242854526463aae7ee17 (patch)
tree50548ae1c30d8355091f77365214c4378870ddac /src/main/java/com/c2kernel/entity/agent
parent8e8185210f5bd87cb5dcda3a458fe059f811aafc (diff)
item.request returns the final outcome, which may be modified during the
execution (e.g. in the case of Predefined Steps). Fixes #136
Diffstat (limited to 'src/main/java/com/c2kernel/entity/agent')
-rw-r--r--src/main/java/com/c2kernel/entity/agent/ActiveEntity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/c2kernel/entity/agent/ActiveEntity.java b/src/main/java/com/c2kernel/entity/agent/ActiveEntity.java
index c59b0fe..a799b62 100644
--- a/src/main/java/com/c2kernel/entity/agent/ActiveEntity.java
+++ b/src/main/java/com/c2kernel/entity/agent/ActiveEntity.java
@@ -120,14 +120,14 @@ public class ActiveEntity extends AgentPOA
}
@Override
- public void requestAction(int agentID, String stepPath, int transitionID,
+ public String requestAction(int agentID, String stepPath, int transitionID,
String requestData) throws AccessRightsException,
InvalidTransitionException, ObjectNotFoundException,
InvalidDataException, PersistencyException,
ObjectAlreadyExistsException {
synchronized (this) {
- mAgentImpl.requestAction(agentID, stepPath, transitionID, requestData);
+ return mAgentImpl.requestAction(agentID, stepPath, transitionID, requestData);
}
}