Add extended state variables for web sample rest api

This commit is contained in:
Janne Valkealahti
2015-08-07 17:49:49 +01:00
parent ba16830151
commit 7572a9ced3

View File

@@ -142,6 +142,7 @@ public class StateMachineController {
HashMap<Object, Object> map = new HashMap<Object, Object>();
map.put("hasStateMachineError", stateMachine.hasStateMachineError());
map.put("isComplete", stateMachine.isComplete());
map.put("extendedStateVariables", stateMachine.getExtendedState().getVariables());
return map;
}