You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
639 B
25 lines
639 B
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, |
|
|
|
} |