Changes
This commit is contained in:
parent
777fe5c951
commit
99753ad177
File diff suppressed because it is too large
Load Diff
|
|
@ -100,6 +100,7 @@ const formentitys = {
|
||||||
{ key: 'status', title: 'Status', type: 'select', required: true, values: STATUS },
|
{ key: 'status', title: 'Status', type: 'select', required: true, values: STATUS },
|
||||||
{ key: 'metric_submission', title: 'Metric Submission', type: 'yesno', required: true },
|
{ key: 'metric_submission', title: 'Metric Submission', type: 'yesno', required: true },
|
||||||
{ key: 'metric_authkey', title: 'Auth Key', type: 'text', required: true },
|
{ key: 'metric_authkey', title: 'Auth Key', type: 'text', required: true },
|
||||||
|
{ key: 'metric_ready_on_submit', title: 'Metric Ready On Submit', type: 'yesno', required: true, default: 'no' },
|
||||||
{ key: 'manager_de_roles', title: 'Manager Data Entry Roles', type: 'multiselect', values: roles },
|
{ key: 'manager_de_roles', title: 'Manager Data Entry Roles', type: 'multiselect', values: roles },
|
||||||
{
|
{
|
||||||
key: 'manager_data_child_type',
|
key: 'manager_data_child_type',
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ const workflows = {
|
||||||
{ key: 'entity', title: 'Entity', type: 'text' },
|
{ key: 'entity', title: 'Entity', type: 'text' },
|
||||||
{ key: 'run_on', title: 'Run on', type: 'text' },
|
{ key: 'run_on', title: 'Run on', type: 'text' },
|
||||||
{ key: 'published_version', title: 'Published', type: 'text' },
|
{ key: 'published_version', title: 'Published', type: 'text' },
|
||||||
|
{ key: 'processing', title: 'Processing', type: 'text' },
|
||||||
{ key: 'status', title: 'Status', type: 'text' },
|
{ key: 'status', title: 'Status', type: 'text' },
|
||||||
],
|
],
|
||||||
formFields: async () => {
|
formFields: async () => {
|
||||||
|
|
@ -65,6 +66,7 @@ const workflows = {
|
||||||
default: 'insert',
|
default: 'insert',
|
||||||
showIf: { entity: 'form_submission' },
|
showIf: { entity: 'form_submission' },
|
||||||
},
|
},
|
||||||
|
{ key: 'processing', title: 'Processing', type: 'yesno', required: true, default: 'yes' },
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
beforeForm: (item) => ({
|
beforeForm: (item) => ({
|
||||||
|
|
@ -73,6 +75,7 @@ const workflows = {
|
||||||
description: item.description || '',
|
description: item.description || '',
|
||||||
form_id: item.form_id || '',
|
form_id: item.form_id || '',
|
||||||
run_on: item.id ? (item.run_on || '') : (item.run_on || 'insert'),
|
run_on: item.id ? (item.run_on || '') : (item.run_on || 'insert'),
|
||||||
|
processing: item.processing === 'no' ? 'no' : 'yes',
|
||||||
}),
|
}),
|
||||||
duplicateItem: async (row) => {
|
duplicateItem: async (row) => {
|
||||||
const response = await signedGet('workflow', 'workflow_definition/get_one', { id: row.id });
|
const response = await signedGet('workflow', 'workflow_definition/get_one', { id: row.id });
|
||||||
|
|
@ -84,6 +87,7 @@ const workflows = {
|
||||||
entity: item.entity || 'manual',
|
entity: item.entity || 'manual',
|
||||||
form_id: item.entity === 'form_submission' ? item.form_id || '' : '',
|
form_id: item.entity === 'form_submission' ? item.form_id || '' : '',
|
||||||
...(item.entity === 'form_submission' ? { run_on: item.run_on || '' } : {}),
|
...(item.entity === 'form_submission' ? { run_on: item.run_on || '' } : {}),
|
||||||
|
processing: item.processing === 'no' ? 'no' : 'yes',
|
||||||
nodes: item.nodes || [],
|
nodes: item.nodes || [],
|
||||||
edges: item.edges || [],
|
edges: item.edges || [],
|
||||||
layout: item.layout || {},
|
layout: item.layout || {},
|
||||||
|
|
@ -99,6 +103,7 @@ const workflows = {
|
||||||
} else if (!payload.run_on) {
|
} else if (!payload.run_on) {
|
||||||
delete payload.run_on;
|
delete payload.run_on;
|
||||||
}
|
}
|
||||||
|
payload.processing = payload.processing === 'no' ? 'no' : 'yes';
|
||||||
return payload;
|
return payload;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue