parent
28a93b02f5
commit
3abe824840
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