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

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