Blame SOURCES/0225-workflows-add-workflow-for-adding-data-to-existing-c.patch

e7f1a6
From 08cde7d66147769cd160630e0bac4fae93db3ada Mon Sep 17 00:00:00 2001
e7f1a6
From: Matej Habrnal <mhabrnal@redhat.com>
e7f1a6
Date: Thu, 31 Aug 2017 12:56:36 +0200
e7f1a6
Subject: [PATCH] workflows: add workflow for adding data to existing case
e7f1a6
e7f1a6
Change behavior of -t parameter in reporter-rhtsupport.
e7f1a6
e7f1a6
If option -t without support case ID is used and problem data in DIR was never
e7f1a6
reported to RHTSupport, you will ask to enter case ID to which you want to
e7f1a6
upload the FILEs. If the data in DIR was reported, the case ID is obtained from
e7f1a6
'reported_to' element in problem dir. In this case, you will be asked if you
e7f1a6
want to attach the data to the support case or you want to change the support
e7f1a6
case ID.
e7f1a6
e7f1a6
Related to #1395285
e7f1a6
e7f1a6
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
e7f1a6
e7f1a6
Conflicts:
e7f1a6
	po/POTFILES.in
e7f1a6
	src/plugins/rhtsupport_event.conf
e7f1a6
	src/workflows/Makefile.am
e7f1a6
---
e7f1a6
 doc/reporter-rhtsupport.txt                        |  3 +-
e7f1a6
 po/POTFILES.in                                     |  8 +++
e7f1a6
 src/plugins/Makefile.am                            |  2 +
e7f1a6
 src/plugins/report_RHTSupport_AddData.xml.in       | 18 ++++++
e7f1a6
 src/plugins/reporter-rhtsupport.c                  | 67 +++++++++++++++++-----
e7f1a6
 src/plugins/rhtsupport_event.conf                  |  4 ++
e7f1a6
 src/workflows/Makefile.am                          | 16 ++++++
e7f1a6
 src/workflows/report_rhel_add_data.conf            | 27 +++++++++
e7f1a6
 src/workflows/workflow_RHELAddDataCCpp.xml.in      | 11 ++++
e7f1a6
 src/workflows/workflow_RHELAddDataJava.xml.in      | 11 ++++
e7f1a6
 .../workflow_RHELAddDataKerneloops.xml.in          | 11 ++++
e7f1a6
 src/workflows/workflow_RHELAddDataLibreport.xml.in | 10 ++++
e7f1a6
 src/workflows/workflow_RHELAddDataPython.xml.in    | 11 ++++
e7f1a6
 src/workflows/workflow_RHELAddDatavmcore.xml.in    | 12 ++++
e7f1a6
 src/workflows/workflow_RHELAddDataxorg.xml.in      | 10 ++++
e7f1a6
 15 files changed, 205 insertions(+), 16 deletions(-)
e7f1a6
 create mode 100644 src/plugins/report_RHTSupport_AddData.xml.in
e7f1a6
 create mode 100644 src/workflows/report_rhel_add_data.conf
e7f1a6
 create mode 100644 src/workflows/workflow_RHELAddDataCCpp.xml.in
e7f1a6
 create mode 100644 src/workflows/workflow_RHELAddDataJava.xml.in
e7f1a6
 create mode 100644 src/workflows/workflow_RHELAddDataKerneloops.xml.in
e7f1a6
 create mode 100644 src/workflows/workflow_RHELAddDataLibreport.xml.in
e7f1a6
 create mode 100644 src/workflows/workflow_RHELAddDataPython.xml.in
e7f1a6
 create mode 100644 src/workflows/workflow_RHELAddDatavmcore.xml.in
e7f1a6
 create mode 100644 src/workflows/workflow_RHELAddDataxorg.xml.in
e7f1a6
e7f1a6
diff --git a/doc/reporter-rhtsupport.txt b/doc/reporter-rhtsupport.txt
e7f1a6
index 66e5bed..2e779bc 100644
e7f1a6
--- a/doc/reporter-rhtsupport.txt
e7f1a6
+++ b/doc/reporter-rhtsupport.txt
e7f1a6
@@ -28,7 +28,8 @@ If not specified, CONFFILE defaults to /etc/libreport/plugins/rhtsupport.conf.
e7f1a6
 
e7f1a6
 Option -t uploads FILEs to the already created case on RHTSupport site.
e7f1a6
 The case ID is retrieved from directory specified by -d DIR.
e7f1a6
-If problem data in DIR was never reported to RHTSupport, upload will fail.
e7f1a6
+If problem data in DIR was never reported to RHTSupport, you will be asked
e7f1a6
+to enter case ID to which you want to upload the FILEs.
e7f1a6
 
e7f1a6
 Option -tCASE uploads FILEs to the case CASE on RHTSupport site.
e7f1a6
 -d DIR is ignored.
e7f1a6
diff --git a/po/POTFILES.in b/po/POTFILES.in
e7f1a6
index 4246e06..9f972ae 100644
e7f1a6
--- a/po/POTFILES.in
e7f1a6
+++ b/po/POTFILES.in
e7f1a6
@@ -42,6 +42,7 @@ src/plugins/report_Kerneloops.xml.in
e7f1a6
 src/plugins/report_Logger.xml.in
e7f1a6
 src/plugins/report_Mailx.xml.in
e7f1a6
 src/plugins/report_RHTSupport.xml.in
e7f1a6
+src/plugins/report_RHTSupport_AddData.xml.in
e7f1a6
 src/plugins/report_Uploader.xml.in
e7f1a6
 src/plugins/report_uReport.xml.in
e7f1a6
 src/plugins/report_EmergencyAnalysis.xml.in
e7f1a6
@@ -73,6 +74,13 @@ src/workflows/workflow_RHELvmcore.xml.in
e7f1a6
 src/workflows/workflow_RHELxorg.xml.in
e7f1a6
 src/workflows/workflow_RHELLibreport.xml.in
e7f1a6
 src/workflows/workflow_RHELJava.xml.in
e7f1a6
+src/workflows/workflow_RHELAddDataCCpp.xml.in
e7f1a6
+src/workflows/workflow_RHELAddDataJava.xml.in
e7f1a6
+src/workflows/workflow_RHELAddDataKerneloops.xml.in
e7f1a6
+src/workflows/workflow_RHELAddDataLibreport.xml.in
e7f1a6
+src/workflows/workflow_RHELAddDataPython.xml.in
e7f1a6
+src/workflows/workflow_RHELAddDatavmcore.xml.in
e7f1a6
+src/workflows/workflow_RHELAddDataxorg.xml.in
e7f1a6
 src/workflows/workflow_RHELBugzillaCCpp.xml.in
e7f1a6
 src/workflows/workflow_RHELBugzillaKerneloops.xml.in
e7f1a6
 src/workflows/workflow_RHELBugzillaPython.xml.in
e7f1a6
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
e7f1a6
index 8e1a166..c5e8ec1 100644
e7f1a6
--- a/src/plugins/Makefile.am
e7f1a6
+++ b/src/plugins/Makefile.am
e7f1a6
@@ -62,6 +62,7 @@ dist_events_DATA = $(reporters_events) \
e7f1a6
     report_Logger.xml \
e7f1a6
     report_Mailx.xml \
e7f1a6
     report_RHTSupport.xml \
e7f1a6
+    report_RHTSupport_AddData.xml \
e7f1a6
     report_Kerneloops.xml \
e7f1a6
     report_Uploader.xml \
e7f1a6
     report_EmergencyAnalysis.xml
e7f1a6
@@ -96,6 +97,7 @@ EXTRA_DIST = $(reporters_extra_dist) \
e7f1a6
     report_Logger.xml.in \
e7f1a6
     report_Mailx.xml.in \
e7f1a6
     report_RHTSupport.xml.in \
e7f1a6
+    report_RHTSupport_AddData.xml.in \
e7f1a6
     report_Kerneloops.xml.in \
e7f1a6
     report_Uploader.xml.in \
e7f1a6
     report_EmergencyAnalysis.xml.in
e7f1a6
diff --git a/src/plugins/report_RHTSupport_AddData.xml.in b/src/plugins/report_RHTSupport_AddData.xml.in
e7f1a6
new file mode 100644
e7f1a6
index 0000000..b4aa7e1
e7f1a6
--- /dev/null
e7f1a6
+++ b/src/plugins/report_RHTSupport_AddData.xml.in
e7f1a6
@@ -0,0 +1,18 @@
e7f1a6
+
e7f1a6
+<event>
e7f1a6
+    <_name>Red Hat Customer Support</_name>
e7f1a6
+    <_description>Attach the data to existing Red Hat support case</_description>
e7f1a6
+
e7f1a6
+    <requires-items>package</requires-items>
e7f1a6
+    <requires-details>yes</requires-details>
e7f1a6
+    <exclude-items-by-default>event_log</exclude-items-by-default>
e7f1a6
+    <exclude-items-always></exclude-items-always>
e7f1a6
+    <exclude-binary-items>no</exclude-binary-items>
e7f1a6
+    <include-items-by-default></include-items-by-default>
e7f1a6
+    <minimal-rating>0</minimal-rating>
e7f1a6
+    <gui-review-elements>yes</gui-review-elements>
e7f1a6
+
e7f1a6
+    <options>
e7f1a6
+        <import-event-options event="report_RHTSupport"/>
e7f1a6
+    </options>
e7f1a6
+</event>
e7f1a6
diff --git a/src/plugins/reporter-rhtsupport.c b/src/plugins/reporter-rhtsupport.c
e7f1a6
index 14b3864..dc0d04e 100644
e7f1a6
--- a/src/plugins/reporter-rhtsupport.c
e7f1a6
+++ b/src/plugins/reporter-rhtsupport.c
e7f1a6
@@ -44,6 +44,8 @@
e7f1a6
 
e7f1a6
 #define ABRT_ELEMENTS_KB_ARTICLE "https://access.redhat.com/articles/2134281"
e7f1a6
 
e7f1a6
+#define RHTSUPPORT_CASE_URL_PATH "cases"
e7f1a6
+
e7f1a6
 #define QUERY_HINTS_IF_SMALLER_THAN  (8*1024*1024)
e7f1a6
 
e7f1a6
 static void ask_rh_credentials(char **login, char **password);
e7f1a6
@@ -449,6 +451,32 @@ void prepare_ureport_configuration(const char *urcfile,
e7f1a6
     }
e7f1a6
 }
e7f1a6
 
e7f1a6
+static char *create_case_url(char *url, const char *case_no)
e7f1a6
+{
e7f1a6
+    char *url1 = concat_path_file(url, RHTSUPPORT_CASE_URL_PATH);
e7f1a6
+    free(url);
e7f1a6
+    url = concat_path_file(url1, case_no);
e7f1a6
+    free(url1);
e7f1a6
+
e7f1a6
+    return url;
e7f1a6
+}
e7f1a6
+
e7f1a6
+static char *ask_case_no_create_url(char *url)
e7f1a6
+{
e7f1a6
+    char *msg = xasprintf(_("Please enter customer case number to which you want to attach the data:"));
e7f1a6
+    char *case_no = ask(msg);
e7f1a6
+    free(msg);
e7f1a6
+    if (case_no == NULL || case_no[0] == '\0')
e7f1a6
+    {
e7f1a6
+        set_xfunc_error_retval(EXIT_CANCEL_BY_USER);
e7f1a6
+        error_msg_and_die(_("Can't continue without RHTSupport case number"));
e7f1a6
+    }
e7f1a6
+    char *new_url = create_case_url(url, (const char *)case_no);
e7f1a6
+    free(case_no);
e7f1a6
+
e7f1a6
+    return new_url;
e7f1a6
+}
e7f1a6
+
e7f1a6
 int main(int argc, char **argv)
e7f1a6
 {
e7f1a6
     abrt_init(argv);
e7f1a6
@@ -484,7 +512,8 @@ int main(int argc, char **argv)
e7f1a6
         "\n"
e7f1a6
         "Option -t uploads FILEs to the already created case on RHTSupport site.\n"
e7f1a6
         "The case ID is retrieved from directory specified by -d DIR.\n"
e7f1a6
-        "If problem data in DIR was never reported to RHTSupport, upload will fail.\n"
e7f1a6
+        "If problem data in DIR was never reported to Red Hat Support, you will be asked\n"
e7f1a6
+        "to enter case ID to which you want to upload the FILEs.\n"
e7f1a6
         "\n"
e7f1a6
         "Option -tCASE uploads FILEs to the case CASE on RHTSupport site.\n"
e7f1a6
         "-d DIR is ignored."
e7f1a6
@@ -586,24 +615,32 @@ int main(int argc, char **argv)
e7f1a6
         {
e7f1a6
             /* -t: extract URL where we previously reported it */
e7f1a6
             report_result_t *reported_to = get_reported_to(dump_dir_name);
e7f1a6
-            if (!reported_to || !reported_to->url)
e7f1a6
-                error_msg_and_die("Can't attach: problem data in '%s' "
e7f1a6
-                        "was not reported to RHTSupport and therefore has no URL",
e7f1a6
-                        dump_dir_name);
e7f1a6
-            //log("URL:'%s'", reported_to->url);
e7f1a6
-            //log("MSG:'%s'", reported_to->msg);
e7f1a6
-            free(url);
e7f1a6
-            url = reported_to->url;
e7f1a6
-            reported_to->url = NULL;
e7f1a6
-            free_report_result(reported_to);
e7f1a6
+            if (reported_to && reported_to->url)
e7f1a6
+            {
e7f1a6
+                free(url);
e7f1a6
+                url = reported_to->url;
e7f1a6
+                reported_to->url = NULL;
e7f1a6
+                free_report_result(reported_to);
e7f1a6
+                char *msg = xasprintf(
e7f1a6
+                    _("We found a similar Red Hat support case %s. "
e7f1a6
+                      "Do you want to attach the data to the case? "
e7f1a6
+                      "Otherwise, you will have to enter the existing "
e7f1a6
+                      "Red Hat support case number."), url);
e7f1a6
+                int yes = ask_yes_no(msg);
e7f1a6
+                free(msg);
e7f1a6
+                if (!yes)
e7f1a6
+                    url = ask_case_no_create_url(url);
e7f1a6
+            }
e7f1a6
+            else
e7f1a6
+            {
e7f1a6
+                log("Problem was not reported to RHTSupport.");
e7f1a6
+                url = ask_case_no_create_url(url);
e7f1a6
+            }
e7f1a6
         }
e7f1a6
         else
e7f1a6
         {
e7f1a6
             /* -tCASE */
e7f1a6
-            char *url1 = concat_path_file(url, "cases");
e7f1a6
-            free(url);
e7f1a6
-            url = concat_path_file(url1, case_no);
e7f1a6
-            free(url1);
e7f1a6
+            url = create_case_url(url, case_no);
e7f1a6
         }
e7f1a6
 
e7f1a6
         if (*argv)
e7f1a6
diff --git a/src/plugins/rhtsupport_event.conf b/src/plugins/rhtsupport_event.conf
e7f1a6
index f6a9d47..cc2f05d 100644
e7f1a6
--- a/src/plugins/rhtsupport_event.conf
e7f1a6
+++ b/src/plugins/rhtsupport_event.conf
e7f1a6
@@ -1,3 +1,7 @@
e7f1a6
 EVENT=report_RHTSupport
e7f1a6
     # Submit an uReport and create a case in Red Hat Customer Portal
e7f1a6
     reporter-rhtsupport -u
e7f1a6
+
e7f1a6
+EVENT=report_RHTSupport_AddData
e7f1a6
+    # Attach data to a case in Red Hat Customer Portal
e7f1a6
+    reporter-rhtsupport -t
e7f1a6
diff --git a/src/workflows/Makefile.am b/src/workflows/Makefile.am
e7f1a6
index 72502ca..e853030 100644
e7f1a6
--- a/src/workflows/Makefile.am
e7f1a6
+++ b/src/workflows/Makefile.am
e7f1a6
@@ -15,6 +15,13 @@ dist_workflows_DATA = \
e7f1a6
     workflow_RHELxorg.xml \
e7f1a6
     workflow_RHELLibreport.xml \
e7f1a6
     workflow_RHELJava.xml \
e7f1a6
+    workflow_RHELAddDataCCpp.xml \
e7f1a6
+    workflow_RHELAddDataJava.xml \
e7f1a6
+    workflow_RHELAddDataKerneloops.xml \
e7f1a6
+    workflow_RHELAddDataLibreport.xml \
e7f1a6
+    workflow_RHELAddDataPython.xml \
e7f1a6
+    workflow_RHELAddDatavmcore.xml \
e7f1a6
+    workflow_RHELAddDataxorg.xml \
e7f1a6
     workflow_uReport.xml \
e7f1a6
     workflow_Mailx.xml \
e7f1a6
     workflow_MailxCCpp.xml \
e7f1a6
@@ -43,6 +50,7 @@ workflowsdefdir = $(WORKFLOWS_DEFINITION_DIR)
e7f1a6
 dist_workflowsdef_DATA =\
e7f1a6
     report_fedora.conf \
e7f1a6
     report_rhel.conf \
e7f1a6
+    report_rhel_add_data.conf \
e7f1a6
     report_uReport.conf \
e7f1a6
     report_mailx.conf \
e7f1a6
     report_logger.conf \
e7f1a6
@@ -72,6 +80,14 @@ EXTRA_DIST = \
e7f1a6
     workflow_RHELxorg.xml.in \
e7f1a6
     workflow_RHELLibreport.xml.in \
e7f1a6
     workflow_RHELJava.xml.in \
e7f1a6
+    workflow_RHELAddDataCCpp.xml.in \
e7f1a6
+    workflow_RHELAddDataJava.xml.in \
e7f1a6
+    workflow_RHELAddDataKerneloops.xml.in \
e7f1a6
+    workflow_RHELAddDataLibreport.xml.in \
e7f1a6
+    workflow_RHELAddDataPython.xml.in \
e7f1a6
+    workflow_RHELAddDatavmcore.xml.in \
e7f1a6
+    workflow_RHELAddDataxorg.xml.in \
e7f1a6
+    workflow_uReport.xml.in \
e7f1a6
     workflow_Mailx.xml.in \
e7f1a6
     workflow_MailxCCpp.xml.in \
e7f1a6
     workflow_Upload.xml.in \
e7f1a6
diff --git a/src/workflows/report_rhel_add_data.conf b/src/workflows/report_rhel_add_data.conf
e7f1a6
new file mode 100644
e7f1a6
index 0000000..be8251e
e7f1a6
--- /dev/null
e7f1a6
+++ b/src/workflows/report_rhel_add_data.conf
e7f1a6
@@ -0,0 +1,27 @@
e7f1a6
+EVENT=workflow_RHELAddDataLibreport analyzer=libreport
e7f1a6
+# this is just a meta event which consists of other events
e7f1a6
+# the list is defined in the xml file
e7f1a6
+
e7f1a6
+EVENT=workflow_RHELAddDataCCpp type=CCpp
e7f1a6
+# this is just a meta event which consists of other events
e7f1a6
+# the list is defined in the xml file
e7f1a6
+
e7f1a6
+EVENT=workflow_RHELAddDataPython type=Python component!=anaconda
e7f1a6
+# this is just a meta event which consists of other events
e7f1a6
+# the list is defined in the xml file
e7f1a6
+
e7f1a6
+EVENT=workflow_RHELAddDataKerneloops type=Kerneloops
e7f1a6
+# this is just a meta event which consists of other events
e7f1a6
+# the list is defined in the xml file
e7f1a6
+
e7f1a6
+EVENT=workflow_RHELAddDatavmcore type=vmcore
e7f1a6
+# this is just a meta event which consists of other events
e7f1a6
+# the list is defined in the xml file
e7f1a6
+
e7f1a6
+EVENT=workflow_RHELAddDataxorg type=xorg
e7f1a6
+# this is just a meta event which consists of other events
e7f1a6
+# the list is defined in the xml file
e7f1a6
+
e7f1a6
+EVENT=workflow_RHELAddDataJava type=Java
e7f1a6
+# this is just a meta event which consists of other events
e7f1a6
+# the list is defined in the xml file
e7f1a6
diff --git a/src/workflows/workflow_RHELAddDataCCpp.xml.in b/src/workflows/workflow_RHELAddDataCCpp.xml.in
e7f1a6
new file mode 100644
e7f1a6
index 0000000..6d0f5e0
e7f1a6
--- /dev/null
e7f1a6
+++ b/src/workflows/workflow_RHELAddDataCCpp.xml.in
e7f1a6
@@ -0,0 +1,11 @@
e7f1a6
+
e7f1a6
+<workflow>
e7f1a6
+    <_name>Attach crash data to an existing Red Hat support case</_name>
e7f1a6
+    <_description>Provide Red Hat Support with crash details</_description>
e7f1a6
+    <priority>99</priority>
e7f1a6
+
e7f1a6
+    <events>
e7f1a6
+        <event>collect_*</event>
e7f1a6
+        <event>report_RHTSupport_AddData</event>
e7f1a6
+    </events>
e7f1a6
+</workflow>
e7f1a6
diff --git a/src/workflows/workflow_RHELAddDataJava.xml.in b/src/workflows/workflow_RHELAddDataJava.xml.in
e7f1a6
new file mode 100644
e7f1a6
index 0000000..6d0f5e0
e7f1a6
--- /dev/null
e7f1a6
+++ b/src/workflows/workflow_RHELAddDataJava.xml.in
e7f1a6
@@ -0,0 +1,11 @@
e7f1a6
+
e7f1a6
+<workflow>
e7f1a6
+    <_name>Attach crash data to an existing Red Hat support case</_name>
e7f1a6
+    <_description>Provide Red Hat Support with crash details</_description>
e7f1a6
+    <priority>99</priority>
e7f1a6
+
e7f1a6
+    <events>
e7f1a6
+        <event>collect_*</event>
e7f1a6
+        <event>report_RHTSupport_AddData</event>
e7f1a6
+    </events>
e7f1a6
+</workflow>
e7f1a6
diff --git a/src/workflows/workflow_RHELAddDataKerneloops.xml.in b/src/workflows/workflow_RHELAddDataKerneloops.xml.in
e7f1a6
new file mode 100644
e7f1a6
index 0000000..6d0f5e0
e7f1a6
--- /dev/null
e7f1a6
+++ b/src/workflows/workflow_RHELAddDataKerneloops.xml.in
e7f1a6
@@ -0,0 +1,11 @@
e7f1a6
+
e7f1a6
+<workflow>
e7f1a6
+    <_name>Attach crash data to an existing Red Hat support case</_name>
e7f1a6
+    <_description>Provide Red Hat Support with crash details</_description>
e7f1a6
+    <priority>99</priority>
e7f1a6
+
e7f1a6
+    <events>
e7f1a6
+        <event>collect_*</event>
e7f1a6
+        <event>report_RHTSupport_AddData</event>
e7f1a6
+    </events>
e7f1a6
+</workflow>
e7f1a6
diff --git a/src/workflows/workflow_RHELAddDataLibreport.xml.in b/src/workflows/workflow_RHELAddDataLibreport.xml.in
e7f1a6
new file mode 100644
e7f1a6
index 0000000..26dc4c9
e7f1a6
--- /dev/null
e7f1a6
+++ b/src/workflows/workflow_RHELAddDataLibreport.xml.in
e7f1a6
@@ -0,0 +1,10 @@
e7f1a6
+
e7f1a6
+<workflow>
e7f1a6
+    <_name>Attach crash data to an existing Red Hat support case</_name>
e7f1a6
+    <_description>Provide Red Hat Support with crash details</_description>
e7f1a6
+    <priority>99</priority>
e7f1a6
+
e7f1a6
+    <events>
e7f1a6
+        <event>report_RHTSupport_AddData</event>
e7f1a6
+    </events>
e7f1a6
+</workflow>
e7f1a6
diff --git a/src/workflows/workflow_RHELAddDataPython.xml.in b/src/workflows/workflow_RHELAddDataPython.xml.in
e7f1a6
new file mode 100644
e7f1a6
index 0000000..6d0f5e0
e7f1a6
--- /dev/null
e7f1a6
+++ b/src/workflows/workflow_RHELAddDataPython.xml.in
e7f1a6
@@ -0,0 +1,11 @@
e7f1a6
+
e7f1a6
+<workflow>
e7f1a6
+    <_name>Attach crash data to an existing Red Hat support case</_name>
e7f1a6
+    <_description>Provide Red Hat Support with crash details</_description>
e7f1a6
+    <priority>99</priority>
e7f1a6
+
e7f1a6
+    <events>
e7f1a6
+        <event>collect_*</event>
e7f1a6
+        <event>report_RHTSupport_AddData</event>
e7f1a6
+    </events>
e7f1a6
+</workflow>
e7f1a6
diff --git a/src/workflows/workflow_RHELAddDatavmcore.xml.in b/src/workflows/workflow_RHELAddDatavmcore.xml.in
e7f1a6
new file mode 100644
e7f1a6
index 0000000..79af822
e7f1a6
--- /dev/null
e7f1a6
+++ b/src/workflows/workflow_RHELAddDatavmcore.xml.in
e7f1a6
@@ -0,0 +1,12 @@
e7f1a6
+
e7f1a6
+<workflow>
e7f1a6
+    <_name>Attach crash data to an existing Red Hat support case</_name>
e7f1a6
+    <_description>Provide Red Hat Support with crash details</_description>
e7f1a6
+    <priority>99</priority>
e7f1a6
+
e7f1a6
+    <events>
e7f1a6
+        <event>collect_*</event>
e7f1a6
+        <event>analyze_VMcore</event>
e7f1a6
+        <event>report_RHTSupport_AddData</event>
e7f1a6
+    </events>
e7f1a6
+</workflow>
e7f1a6
diff --git a/src/workflows/workflow_RHELAddDataxorg.xml.in b/src/workflows/workflow_RHELAddDataxorg.xml.in
e7f1a6
new file mode 100644
e7f1a6
index 0000000..26dc4c9
e7f1a6
--- /dev/null
e7f1a6
+++ b/src/workflows/workflow_RHELAddDataxorg.xml.in
e7f1a6
@@ -0,0 +1,10 @@
e7f1a6
+
e7f1a6
+<workflow>
e7f1a6
+    <_name>Attach crash data to an existing Red Hat support case</_name>
e7f1a6
+    <_description>Provide Red Hat Support with crash details</_description>
e7f1a6
+    <priority>99</priority>
e7f1a6
+
e7f1a6
+    <events>
e7f1a6
+        <event>report_RHTSupport_AddData</event>
e7f1a6
+    </events>
e7f1a6
+</workflow>
e7f1a6
-- 
e7f1a6
1.8.3.1
e7f1a6