Implement a service task
Prerequisites​
- Web Modeler or Desktop Modeler
Implement a service task​
Use this process model for the tutorial.
- Web Modeler
- Desktop Modeler
Take the following steps:
- In a diagram, open the breadcrumb menu and choose Replace via Upload. Then, select a file from your computer.
Alternatively, you can drag and drop the file onto the canvas.
This process includes a service task and an XOR gateway.
Select the service task and fill in the properties.
Set the Type to
test-worker
.
Deploy the new process using the Deploy Diagram button.
Make sure you have created a client and connected a cluster.
- This process includes a service task and an XOR gateway. Select the service task and fill in the properties.
- Set the Type to
test-worker
.
- Deploy the new process.
Now, you can connect a worker for the configured service task:
zbctl create worker test-worker --handler "echo {\"return\":\"Pong\"}"