public void acknowledgeError(String containerId, List<String> errorIds) { logger.debug("About to acknowledge execution error with id {}", errorIds); String[] errors = errorIds.toArray(new String[errorIds.size()]); processInstanceAdminService.acknowledgeError(errors); logger.debug("Error {} successfully acknowledged", errorIds); }
public void cancelNodeInstance(String containerId, Number processInstanceId, Number nodeInstanceId) { logger.debug("About to cancel node instance {} in process instance {}", nodeInstanceId, processInstanceId); processInstanceAdminService.cancelNodeInstance(processInstanceId.longValue(), nodeInstanceId.longValue()); logger.debug("Node instance {} canceled successfully", nodeInstanceId); }
public void retriggerNodeInstance(String containerId, Number processInstanceId, Number nodeInstanceId) { logger.debug("About to retrigger node instance {} in process instance {}", nodeInstanceId, processInstanceId); processInstanceAdminService.retriggerNodeInstance(processInstanceId.longValue(), nodeInstanceId.longValue()); logger.debug("Node instance {} retriggered successfully", nodeInstanceId); }
public void triggerNode(String containerId, Number processInstanceId, Number nodeId) { logger.debug("About to trigger (create) node {} in process instance {}", nodeId, processInstanceId); processInstanceAdminService.triggerNode(processInstanceId.longValue(), nodeId.longValue()); logger.debug("Node {} triggered successfully", nodeId); }
public ExecutionErrorInstance getError(String containerId, String errorId) { logger.debug("About to get execution error for {}", errorId); ExecutionError error = processInstanceAdminService.getError(errorId); logger.debug("Found error {} for error id {}", error, errorId); return convertToErrorInstance(error); }
public ProcessNodeList getProcessNodes(String containerId, Number processInstanceId) { logger.debug("About to get process nodes for process instance {} in container {}", processInstanceId, containerId); Collection<ProcessNode> processNodes = processInstanceAdminService.getProcessNodes(processInstanceId.longValue()); logger.debug("Found process nodes {} for process instance {}", processNodes, processInstanceId); ProcessNodeList processNodeList = convertProcessNodes(processNodes); return processNodeList; }
public NodeInstanceList getActiveNodeInstances(String containerId, Number processInstanceId) { logger.debug("About to get active node instance for process instance {} in container {}", processInstanceId, containerId); Collection<NodeInstanceDesc> activeNodeInstances = processInstanceAdminService.getActiveNodeInstances(processInstanceId.longValue()); logger.debug("Found active node instance {} in process instance {}", activeNodeInstances, processInstanceId); return ConvertUtils.convertToNodeInstanceList(activeNodeInstances); }
public TimerInstanceList getTimerInstances(String containerId, Number processInstanceId) { logger.debug("About to get timers for process instance {} in container {}", processInstanceId, containerId); Collection<TimerInstance> timerInstances = processInstanceAdminService.getTimerInstances(processInstanceId.longValue()); logger.debug("Found timers {} in process instance {}", timerInstances, processInstanceId); TimerInstanceList timerInstanceList = convertTimerInstances(timerInstances); return timerInstanceList; }
public ExecutionErrorInstanceList getExecutionErrorsByProcessInstance(String containerId, Number processInstanceId, String nodeName, boolean includeAcknowledged, Integer page, Integer pageSize, String sort, boolean sortOrder) { logger.debug("About to get execution errors for process instance id {} and node {}", processInstanceId, nodeName); List<ExecutionError> errors = null; if (nodeName == null || nodeName.isEmpty()) { errors = processInstanceAdminService.getErrorsByProcessInstanceId(processInstanceId.longValue(), includeAcknowledged, buildQueryContext(page, pageSize, sort, sortOrder));; } else { errors = processInstanceAdminService.getErrorsByProcessInstanceId(processInstanceId.longValue(), nodeName, includeAcknowledged, buildQueryContext(page, pageSize, sort, sortOrder)); } logger.debug("Found errors {}", errors); ExecutionErrorInstanceList errorInstanceList = convertToErrorInstanceList(errors); return errorInstanceList; }
public ExecutionErrorInstanceList getExecutionErrors(String containerId, boolean includeAcknowledged, Integer page, Integer pageSize, String sort, boolean sortOrder) { logger.debug("About to get execution errors"); List<ExecutionError> errors = processInstanceAdminService.getErrorsByDeploymentId(containerId, includeAcknowledged, buildQueryContext(page, pageSize, sort, sortOrder)); logger.debug("Found errors {}", errors); ExecutionErrorInstanceList errorInstanceList = convertToErrorInstanceList(errors); return errorInstanceList; }