private void buttonCompleteTaskl_Click(object sender, System.Windows.RoutedEventArgs e) { try { Tasklist.Camunda.HumanTaskService().Complete(Task.id, NewVariables); } catch (Exception ex) { MessageBox.Show("There was an error completing the task: " + ex.Message + "\nPlease investigate and try again.", "Could not complete task", MessageBoxButton.OK, MessageBoxImage.Error); } Tasklist.hideDetails(); Tasklist.reloadTasks(); }
private void buttonStartProcessInstance_Click(object sender, RoutedEventArgs e) { try { Tasklist.Camunda.BpmnWorkflowService().StartProcessInstance(ProcessDefinition.key, Variables); Tasklist.hideDetails(); Tasklist.reloadTasks(); } catch (Exception ex) { MessageBox.Show("There was an error starting the process instance: " + ex.Message + "\nPlease investigate and try again.", "Could not start process instance", MessageBoxButton.OK, MessageBoxImage.Error); } }