Service Task#
A service task calls a service, a method of the application's services, or a connector, a REST API the administrator added (see Connectors).
In Process definition (.bpmn file), use implementation attribute to define name of JavaScript/TypeScript Method to perform the Task:
<bpmn:serviceTask id="serviceTask" name="Service Task" implementation="service1">
...
</bpmn:serviceTask>
class AppServices {
async service1(item,input) {
seq++;
await delay(3000 -(seq * 100) , 'test');
item.log("SERVICE 1" + item.token.currentNode.id);
}
}