// Register node execution start, execute and register finish
ScheduleExecutionResult scheduleExecutionResult =
executionManagementService.startExecutionResult(node.getId());
ScheduleAction scheduleAction = scheduleExecution.getAction();
// Execute action
boolean succeed = false;
byte[] data = null;
try {
ActionAgentResult actionAgentResult = actionAgent.executeAction(scheduleExecution.getId(),
scheduleAction.getIdentifier(), scheduleAction.getDefinition(), node.getAddress());
succeed = actionAgentResult.isSucceed();
data = actionAgentResult.getData();
} finally {
scheduleExecutionResult = executionManagementService.finishExecutionResult(
scheduleExecutionResult.getId(), succeed, data);