(projectId, location)
| 29 | // const location = 'us-central1'; |
| 30 | |
| 31 | async function listWorkflows(projectId, location) { |
| 32 | const [workflows] = await client.listWorkflows({ |
| 33 | parent: client.locationPath(projectId, location), |
| 34 | }); |
| 35 | for (const workflow of workflows) { |
| 36 | console.info(`name: ${workflow.name}`); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | listWorkflows(projectId, location).catch(err => { |
| 41 | console.error(err.message); |