Merge branch 'main' of https://git.sitenevis.com/mhpaymard/workflowTester
commit
99c19b6b83
2 changed files with 53 additions and 2 deletions
@ -0,0 +1,25 @@ |
|||||||
|
const getAllProcesses = async (workflow,query = {}) => { |
||||||
|
const processes = await bpmsDB.bpms_process.findAll({ |
||||||
|
where: { |
||||||
|
workflowId: workflow.id, |
||||||
|
subFlowId: null, |
||||||
|
...query |
||||||
|
// type:{
|
||||||
|
// [Op.in]:[0,1]
|
||||||
|
// }
|
||||||
|
}, |
||||||
|
order: [ |
||||||
|
['id', 'ASC'] |
||||||
|
], |
||||||
|
attributes: [ |
||||||
|
"id", "pid", "link", "type", "name", "conditions", "subFlowPid", "subFlowId" |
||||||
|
], |
||||||
|
raw: true |
||||||
|
}); |
||||||
|
return processes; |
||||||
|
} |
||||||
|
|
||||||
|
module.exports = { |
||||||
|
getAllProcesses, |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue