public void onNodeInstanceCancel(final NodeInstanceSummary node) { processService.call((Void) -> { notification.fire(new NotificationEvent(constants.NodeInstanceCancelled(node.getLabel()), NotificationEvent.NotificationType.SUCCESS)); refreshDetails(); }).cancelProcessInstanceNode(processInstance.getProcessInstanceKey(), node.getId()); }
public void onNodeInstanceReTrigger(final NodeInstanceSummary node) { processService.call((Void) -> { notification.fire(new NotificationEvent(constants.NodeInstanceReTriggered(node.getLabel()), NotificationEvent.NotificationType.SUCCESS)); refreshDetails(); }).reTriggerProcessInstanceNode(processInstance.getProcessInstanceKey(), node.getId()); }
assertThat(viewNodeInstances).hasSameSizeAs(nodeInstances); assertThat(viewNodeInstances.get(0).getLabel()).isEqualTo("End-4"); assertThat(viewNodeInstances.get(0).getName()).isEqualTo("End"); assertThat(viewNodeInstances.get(0).getType()).isEqualTo("End"); assertThat(viewNodeInstances.get(0).getCallbacks()).isNullOrEmpty(); assertThat(viewNodeInstances.get(1).getLabel()).isEqualTo("name-1-1"); assertThat(viewNodeInstances.get(1).getName()).isEqualTo("name-1"); assertThat(viewNodeInstances.get(1).getType()).isEqualTo("HumanTask"); assertThat(viewNodeInstances.get(1).getCallbacks()).hasSize(2); assertThat(viewNodeInstances.get(2).getLabel()).isEqualTo("name-3-3"); assertThat(viewNodeInstances.get(2).getName()).isEqualTo("name-3"); assertThat(viewNodeInstances.get(2).getType()).isEqualTo("HumanTask"); assertThat(viewNodeInstances.get(2).getCallbacks()).isNullOrEmpty(); assertThat(viewNodeInstances.get(3).getLabel()).isEqualTo("Split-2"); assertThat(viewNodeInstances.get(3).getName()).isEqualTo("Split"); assertThat(viewNodeInstances.get(3).getType()).isEqualTo("Split");