-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzaakbehandelingsproces.js
44 lines (38 loc) · 1.42 KB
/
zaakbehandelingsproces.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const { Client, logger } = require("camunda-external-task-client-js");
const config = { baseUrl: "http://localhost:8080/engine-rest", use: logger, asyncResponseTimeout: 10000 };
const client = new Client(config);
client.subscribe("zaak-accepteren-aanvraag", async function({ task, taskService }) {
// Put your business logic
// complete the task
await taskService.complete(task);
});
client.subscribe("zaak-beoordelen-aanvraag", async function({ task, taskService }) {
// Put your business logic
// complete the task
await taskService.complete(task);
});
client.subscribe("zaak-besluiten", async function({ task, taskService }) {
// Put your business logic
// complete the task
await taskService.complete(task);
});
client.subscribe("zaak-registratie", async function({ task, taskService }) {
// Put your business logic
// complete the task
await taskService.complete(task);
});
client.subscribe("zaak-toetsen", async function({ task, taskService }) {
// Put your business logic
// complete the task
await taskService.complete(task);
});
client.subscribe("zaak-toewijzen", async function({ task, taskService }) {
// Put your business logic
// complete the task
await taskService.complete(task);
});
client.subscribe("zaak-leveren", async function({ task, taskService }) {
// Put your business logic
// complete the task
await taskService.complete(task);
});