Skip to main content

Implement a service task

BeginnerTime estimate: 8 minutes

Prerequisites​

Implement a service task​

Use this process model for the tutorial.

Take the following steps:

  1. In a diagram, open the breadcrumb menu and choose Replace via Upload. Then, select a file from your computer. import diagram via replace

Alternatively, you can drag and drop the file onto the canvas. import diagram via drag and drop processId-cloud

This process includes a service task and an XOR gateway.

  1. Select the service task and fill in the properties.

  2. Set the Type to test-worker.

process-cloud

  1. Deploy the new process using the Deploy Diagram button.

  2. Make sure you have created a client and connected a cluster.

Now, you can connect a worker for the configured service task:

zbctl create worker test-worker --handler "echo {\"return\":\"Pong\"}"

Next steps​