diff --git a/src/api/ADempiere/dictionary/workflow.js b/src/api/ADempiere/dictionary/workflow.js
new file mode 100644
index 00000000..ca42e4c2
--- /dev/null
+++ b/src/api/ADempiere/dictionary/workflow.js
@@ -0,0 +1,41 @@
+// ADempiere-Vue (Frontend) for ADempiere ERP & CRM Smart Business Solution
+// Copyright (C) 2017-Present E.R.P. Consultores y Asociados, C.A.
+// Contributor(s): Yamel Senih ysenih@erpya.com www.erpya.com
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+
+// Get Instance for connection
+import { request } from '@/utils/ADempiere/request'
+
+/**
+ * Request dictionary workflow metadata
+ * @param {string} uuid universally unique identifier
+ * @param {number} id, identifier
+ */
+export function requestWorkflowMetadata({
+ uuid,
+ id
+}) {
+ return request({
+ url: '/dictionary/workflow',
+ method: 'get',
+ params: {
+ uuid,
+ id
+ }
+ })
+ .then(workflowResponse => {
+ const { convertWorkflow } = require('@/utils/ADempiere/apiConverts/dictionary.js')
+ return convertWorkflow(workflowResponse)
+ })
+}
diff --git a/src/api/ADempiere/workflow.js b/src/api/ADempiere/workflow.js
index 52241e95..5239ecce 100644
--- a/src/api/ADempiere/workflow.js
+++ b/src/api/ADempiere/workflow.js
@@ -117,3 +117,29 @@ export function workflowActivities({
}
})
}
+// GET Workflows
+/**
+ * Request Document Status List
+ * @param {string} tableName
+ * @param {number} pageSize
+ * @param {string} pageToken
+ */
+export function getWorkflow({
+ tableName,
+ pageSize,
+ pageToken
+}) {
+ return request({
+ url: '/workflow/workflows',
+ method: 'get',
+ params: {
+ table_name: tableName,
+ // Page Data
+ pageToken,
+ pageSize
+ }
+ })
+ .then(listWorkflowActivities => {
+ return listWorkflowActivities
+ })
+}
diff --git a/src/components/ADempiere/Badge/index.vue b/src/components/ADempiere/Badge/index.vue
index 56cb4669..0857f315 100644
--- a/src/components/ADempiere/Badge/index.vue
+++ b/src/components/ADempiere/Badge/index.vue
@@ -69,7 +69,16 @@ export default {
},
computed: {
getRecordNotification() {
- return this.$store.getters.getNotificationProcess
+ return this.$store.getters.getNotificationProcess.map(item => {
+ if (item.typeActivity) {
+ return {
+ ...item,
+ name: item.name + ' ' + item.quantityActivities
+ }
+ } else {
+ return item
+ }
+ })
}
},
watch: {
diff --git a/src/components/ADempiere/Form/WorkflowActivity/index.vue b/src/components/ADempiere/Form/WorkflowActivity/index.vue
index 893e31e6..9f145b79 100644
--- a/src/components/ADempiere/Form/WorkflowActivity/index.vue
+++ b/src/components/ADempiere/Form/WorkflowActivity/index.vue
@@ -45,37 +45,12 @@
-
-
-