In this section, you’ll learn how to create your first BPMN 2.0 process with the Camunda Modeler and how to execute automated steps. Start by opening the Camunda Modeler.
Create a new BPMN diagram
Create a new BPMN diagram by clicking File > New File > BPMN Diagram (Camunda Platform).
Start with a simple process
Double-click the start event. A text box opens. Name the start event Payment Retrieval Requested.
When editing labels, you can add line breaks using Shift + Enter.
Click the start event. From its context menu, select the activity shape (rounded rectangle). It is placed automatically on the canvas; drag it to your preferred position. Name it Charge Credit Card. Change the activity type to Service Task by clicking the activity shape and using the wrench button.Add an end event named Payment Received.
Configure the service task
There are different ways to execute service tasks with ASEE Flow. In this guide, we’ll use the external task pattern. Open the properties panel in the Camunda Modeler and click the service task you just created. Change the Implementation to External and use charge-card as the Topic.
Configure properties for execution
Because we’re modeling an executable process, we should give it an ID and set the isExecutable property to true. On the right-hand side of the canvas you find the properties panel. When you click empty space on the canvas, the panel displays the properties of the process itself.First, configure an ID for the process. Type payment-retrieval in the Id field. The ID is used by the process engine as an identifier for the executable process; it’s best practice to set it to a human-readable name.Second, type Payment Retrieval in the Name field.Finally, make sure the Executable checkbox is checked. If you don’t check this box, the process definition is ignored by the process engine.
Save the BPMN diagram
When you’re done, save your changes by clicking File > Save File As…. In the dialog, navigate to a folder of your choice and save the diagram as something like payment.bpmn.
After modeling the process, we want to execute some business logic. ASEE Flow lets you implement your business logic in different languages — choose whichever suits your project best. In this quick start, we’ll show you how to use ready-to-go task clients in:
ASEE Flow Run secures the engine REST API by default — the distribution bundles WebAdmin. The workers below connect to /engine-rest without credentials, so against a default Run distribution they receive 401.WebAdmin’s REST security can’t be turned off, so give the worker an engine user’s credentials. In Run’s default form mode the REST API accepts HTTP Basic; for this local quick start, use the default configuration’s demo / demo user:
Java — add .addInterceptor(new BasicAuthProvider("demo", "demo")) to the client builder (org.camunda.bpm.client.interceptor.auth.BasicAuthProvider).
JavaScript — import BasicAuthInterceptor from camunda-external-task-client-js and add interceptors: new BasicAuthInterceptor({ username: "demo", password: "demo" }) to the client’s config.
For a secured deployment, authenticate the worker to match your configured authentication mode, with a user of its own.
If you prefer a different programming language, you can also use the REST API to access API operations over HTTP.
a) Using Java
In this section, you’ll implement an external task worker in Java.
An IDE for Java projects (for example IntelliJ IDEA, Eclipse, or VS Code)
Create a new Maven project
Start by creating a new Maven project in your IDE — a simple project (you can skip archetype selection).
Configure the Maven coordinates and, since we’re setting up a JAR project, set Packaging to jar.
You can also create the project directly from the pom.xml shown below.
Add the external task client dependency
Set up the Maven dependency to the external task client. Your pom.xml should look like this:
Next, create an ExternalTaskClient that subscribes to the charge-card topic. When the process engine encounters a service task configured to be externally handled, it creates an external task instance that our handler reacts to. We use long polling in the client to make communication more efficient.Create a package, for example org.camunda.bpm.getstarted.chargecard, and add a Java class such as ChargeCardWorker:
package org.camunda.bpm.getstarted.chargecard;import java.util.logging.Logger;import java.awt.Desktop;import java.net.URI;import org.camunda.bpm.client.ExternalTaskClient;public class ChargeCardWorker { private final static Logger LOGGER = Logger.getLogger(ChargeCardWorker.class.getName()); public static void main(String[] args) { ExternalTaskClient client = ExternalTaskClient.create() .baseUrl("http://localhost:8080/engine-rest") .asyncResponseTimeout(10000) // long polling timeout .build(); // subscribe to an external task topic as specified in the process client.subscribe("charge-card") .lockDuration(1000) // the default lock duration is 20 seconds, but you can override this .handler((externalTask, externalTaskService) -> { // Put your business logic here // Get a process variable String item = externalTask.getVariable("item"); Integer amount = externalTask.getVariable("amount"); LOGGER.info("Charging credit card with an amount of '" + amount + "'€ for the item '" + item + "'..."); // Complete the task externalTaskService.complete(externalTask); }) .open(); }}
Run the worker
Run the Java application by right-clicking the ChargeCardWorker class and choosing Run as Java. Keep the worker running throughout this quick start guide.
Add the following "type" field to your package.json:
{ "main": "index.js", "type": "module", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }}
Add the external task client JS library
npm install camunda-external-task-client-jsnpm install -D open
Implement the Node.js script
Create an ExternalTaskClient that subscribes to the charge-card topic. Create a JavaScript file such as worker.js:
import { Client, logger } from 'camunda-external-task-client-js';// configuration for the Client:// - 'baseUrl': url to the Process Engine// - 'logger': utility to automatically log important events// - 'asyncResponseTimeout': long polling timeout (then a new request will be issued)const config = { baseUrl: 'http://localhost:8080/engine-rest', use: logger, asyncResponseTimeout: 10000 };// create a Client instance with custom configurationconst client = new Client(config);// subscribe to the topic: 'charge-card'client.subscribe('charge-card', async function({ task, taskService }) { // Put your business logic here // Get a process variable const amount = task.variables.get('amount'); const item = task.variables.get('item'); console.log(`Charging credit card with an amount of ${amount}€ for the item '${item}'...`); // Complete the task await taskService.complete(task);});
Run the Node.js script
node ./worker.js
Keep the worker running throughout this quick start guide.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ASEE Flow","colors":{"primary":"#1d1d1b","light":"#e8e8e6","dark":"#1d1d1b"},"logo":{"light":"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/ASEEFlowAsset%202logo.svg?fit=max\u0026auto=format\u0026n=ZCa-DtOfmgFUtZwy\u0026q=85\u0026s=4f27f54801dcb0858ec1ef607934b046","dark":"https://mintcdn.com/aseeflow/OpLRJy6TPnBLn55c/logo/aseeflow-logo-dark.svg?fit=max\u0026auto=format\u0026n=OpLRJy6TPnBLn55c\u0026q=85\u0026s=532de8ebeab30eed0009cd0a581d4ac2","href":"/"},"favicon":"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/favicon.ico?fit=max\u0026auto=format\u0026n=ZCa-DtOfmgFUtZwy\u0026q=85\u0026s=f9caefb68514e68e8312efc299b039fa","appearance":{"default":"light"},"navbar":{"primary":{"type":"button","label":"Get Started","href":"/get-started"}},"footer":{"socials":{}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aseeflow","hasAudioNarration":false,"actualSubdomain":"aseeflow","customDomains":["docs.aseeflow.org"],"gitSource":{"type":"github","owner":"aseeflow","repo":"aseeflow-mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10ee949ffae5051c416b08"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b053270310cc7c2ea501bfb","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"Reference","count":2156},{"language":"default","tag":"REST API","count":818},{"language":"default","tag":"OpenAPI","count":800},{"language":"default","tag":"User Guide","count":552},{"language":"default","tag":"Web Applications","count":184},{"language":"default","tag":"Process Engine","count":108},{"language":"default","tag":"Process Definition","count":92},{"language":"default","tag":"Get Started","count":76},{"language":"default","tag":"BPMN 2.0","count":72},{"language":"default","tag":"Installation","count":64}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".bpmn-symbol-container.implemented svg [stroke=\"#333333\"],.bpmn-events .implemented svg [stroke=\"#333333\"]{stroke:#f47b20}.bpmn-symbol-container.implemented svg [fill=\"#333333\"],.bpmn-events .implemented svg [fill=\"#333333\"]{fill:#f47b20}.bpmn-symbols div:not([class]){display:contents}.bpmn-symbol-container{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;vertical-align:top;text-align:center;width:8.5rem;margin:0.75rem 0.5rem}.bpmn-symbol-container a{font-size:0.85rem}.bpmn-pool-lane{position:relative;display:inline-flex;vertical-align:top;margin:0.75rem 0.5rem}.bpmn-pool-lane>.bpmn-symbol-container{width:auto;margin:0}.bpmn-pool-lane>.bpmn-lane-overlay{position:absolute;top:0;left:24px;z-index:2}.bpmn-events td{text-align:center;vertical-align:middle}.bpmn-events td:first-child{text-align:left;white-space:nowrap}.label-warning,.label-implemented{display:inline;padding:0.2em 0.6em 0.3em;font-size:0.85em;font-weight:700;line-height:1;color:#fff;background-color:#f47b20;border-radius:0.25em;white-space:nowrap}"}]}
{"page":{"pagePath":"get-started/quick-start/service-task","slug":"/get-started/quick-start/service-task","pageMetadata":{"title":"Executing automated steps","sidebarTitle":"2. Executable Process","description":null,"href":"/get-started/quick-start/service-task"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,OptimizedImage,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`In this section, you’ll learn how to create your first BPMN 2.0 process with the Camunda Modeler and how to execute automated steps. Start by opening the Camunda Modeler.`}),`\n`,_jsx(Heading,{level:`2`,id:`create-a-new-bpmn-diagram`,children:`Create a new BPMN diagram`}),`\n`,_jsxs(_components.p,{children:[`Create a new BPMN diagram by clicking `,_jsx(_components.strong,{children:`File > New File > BPMN Diagram (Camunda Platform)`}),`.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-new-bpmn-diagram.png?fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=27aefe246cb4f35f73615590d55e948c`,alt:`Create a new BPMN diagram`,\"data-og-width\":`1200`,width:`1200`,\"data-og-height\":`873`,height:`873`,\"data-path\":`get-started/quick-start/img/modeler-new-bpmn-diagram.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-new-bpmn-diagram.png?w=280\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=047c39b0aa092e61c2c6d57bfaafec1c 280w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-new-bpmn-diagram.png?w=560\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=a74f5e88f8887e6cd3819b32467ed3be 560w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-new-bpmn-diagram.png?w=840\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=a4a6577d0d9de256c2e81597c3bcbe63 840w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-new-bpmn-diagram.png?w=1100\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=f2c6c067d089a1f4819b5e59ae480694 1100w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-new-bpmn-diagram.png?w=1650\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=6dd64f41e21f59a165c0c15ce4935f04 1650w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-new-bpmn-diagram.png?w=2500\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=51582139296933de7bce69f877b90d69 2500w`}),`\n`,_jsx(Heading,{level:`2`,id:`start-with-a-simple-process`,children:`Start with a simple process`}),`\n`,_jsxs(_components.p,{children:[`Double-click the start event. A text box opens. Name the start event `,_jsx(_components.em,{children:`Payment Retrieval Requested`}),`.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`When editing labels, you can add line breaks using `,_jsx(_components.code,{children:`Shift + Enter`}),`.`]})}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step1.png?fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=4e48e22d7ea4b241e557bfbb3c34c3d6`,alt:`Name the start event`,\"data-og-width\":`1200`,width:`1200`,\"data-og-height\":`673`,height:`673`,\"data-path\":`get-started/quick-start/img/modeler-step1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step1.png?w=280\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=e79a2ca6095a7b2e5626dbeaa2e4f2cc 280w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step1.png?w=560\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=e1762f7c61fec2c410db5adaf6991b18 560w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step1.png?w=840\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=5d4599e5c4f71985d71215be800aa535 840w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=d0f1b49d5dd574a5043d222b3eb7839b 1100w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=6334bc63c935d1ae60652cbb1c64ccde 1650w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=5fe32364556853146f6a9f8496396a95 2500w`}),`\n`,_jsxs(_components.p,{children:[`Click the start event. From its context menu, select the activity shape (rounded rectangle). It is placed automatically on the canvas; drag it to your preferred position. Name it `,_jsx(_components.em,{children:`Charge Credit Card`}),`. Change the activity type to `,_jsx(_components.em,{children:`Service Task`}),` by clicking the activity shape and using the wrench button.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step2.png?fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=9b249ca6b311130de48063dbc8f515f6`,alt:`Change the activity to a service task`,\"data-og-width\":`1200`,width:`1200`,\"data-og-height\":`673`,height:`673`,\"data-path\":`get-started/quick-start/img/modeler-step2.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step2.png?w=280\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=aa2d1a62ffcc79374b60c622127d149d 280w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step2.png?w=560\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=25aa8549ae2e67c3e71ffc849a3f2070 560w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step2.png?w=840\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=170c03de15b73aee0a2d2a22c59b434f 840w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step2.png?w=1100\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=61d3b5bf1034fd1b0842c15936bbeba8 1100w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step2.png?w=1650\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=03afdb0e824e5188aa40cb55f88ef89b 1650w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step2.png?w=2500\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=4579aaa3961063567a8d1b6dce8aaa13 2500w`}),`\n`,_jsxs(_components.p,{children:[`Add an end event named `,_jsx(_components.em,{children:`Payment Received`}),`.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step3.png?fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=e7d24ae9e4bd32f45ddedd3f2e0b0b2c`,alt:`Add an end event`,\"data-og-width\":`1200`,width:`1200`,\"data-og-height\":`673`,height:`673`,\"data-path\":`get-started/quick-start/img/modeler-step3.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step3.png?w=280\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=45594e08d40395ad9ee054ee53cbcd67 280w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step3.png?w=560\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=aa5beddc5accd21b3e64405133f80736 560w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step3.png?w=840\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=6c7b71238480055c9c4be3d8bc21701c 840w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step3.png?w=1100\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=21be229214d4915764dd08a8619905a1 1100w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step3.png?w=1650\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=b1a0628dbb87658818d4a1a25149bcb3 1650w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step3.png?w=2500\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=dbd438208efdfc68f9a1be3498cc4cff 2500w`}),`\n`,_jsx(Heading,{level:`2`,id:`configure-the-service-task`,children:`Configure the service task`}),`\n`,_jsxs(_components.p,{children:[`There are different ways to `,_jsx(_components.a,{href:`/reference/bpmn20/tasks/service-task`,children:`execute service tasks`}),` with ASEE Flow. In this guide, we’ll use the `,_jsx(_components.a,{href:`/user-guide/process-engine/external-tasks`,children:`external task pattern`}),`. Open the properties panel in the Camunda Modeler and click the service task you just created. Change the `,_jsx(_components.strong,{children:`Implementation`}),` to `,_jsx(_components.code,{children:`External`}),` and use `,_jsx(_components.code,{children:`charge-card`}),` as the `,_jsx(_components.strong,{children:`Topic`}),`.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step4.png?fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=9e6f2389485e81e5a6df78bb058f0519`,alt:`Configure the service task`,\"data-og-width\":`1200`,width:`1200`,\"data-og-height\":`673`,height:`673`,\"data-path\":`get-started/quick-start/img/modeler-step4.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step4.png?w=280\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=9c6b9ab583ec1b2da04006f886ef40ac 280w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step4.png?w=560\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=81dc31882623d670bebed4453e181cdc 560w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step4.png?w=840\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=233af3b3b812bb51594412d88a0bd17c 840w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step4.png?w=1100\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=89281df0523e8bcb0edee0084495d36d 1100w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step4.png?w=1650\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=0c71d292ec074c4c9b31d0f449b7226c 1650w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step4.png?w=2500\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=e87a995eae939562504c0ba458b25937 2500w`}),`\n`,_jsx(Heading,{level:`2`,id:`configure-properties-for-execution`,children:`Configure properties for execution`}),`\n`,_jsxs(_components.p,{children:[`Because we’re modeling an executable process, we should give it an `,_jsx(_components.em,{children:`ID`}),` and set the `,_jsx(_components.code,{children:`isExecutable`}),` property to `,_jsx(_components.code,{children:`true`}),`. On the right-hand side of the canvas you find the properties panel. When you click empty space on the canvas, the panel displays the properties of the process itself.`]}),`\n`,_jsxs(_components.p,{children:[`First, configure an ID for the process. Type `,_jsx(_components.em,{children:`payment-retrieval`}),` in the `,_jsx(_components.em,{children:`Id`}),` field. The ID is used by the process engine as an identifier for the executable process; it’s best practice to set it to a human-readable name.`]}),`\n`,_jsxs(_components.p,{children:[`Second, type `,_jsx(_components.em,{children:`Payment Retrieval`}),` in the `,_jsx(_components.em,{children:`Name`}),` field.`]}),`\n`,_jsxs(_components.p,{children:[`Finally, make sure the `,_jsx(_components.em,{children:`Executable`}),` checkbox is checked. If you don’t check this box, the process definition is ignored by the process engine.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step5.png?fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=6d831a28b8beca13435ed9e18878ba90`,alt:`Configure process properties`,\"data-og-width\":`1200`,width:`1200`,\"data-og-height\":`673`,height:`673`,\"data-path\":`get-started/quick-start/img/modeler-step5.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step5.png?w=280\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=1d7c9bb8cfac80ae4c341e1954849dd0 280w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step5.png?w=560\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=e94a135e70802d667fc53725f87a2e62 560w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step5.png?w=840\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=ae22469edc0c831466edbf3d0e920a92 840w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step5.png?w=1100\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=e005b51138fc72a73afd93954104b10a 1100w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step5.png?w=1650\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=ca54cda61e4e069187fecd18ff9d8d9d 1650w, https://mintcdn.com/aseeflow/nrz9o5m15i2WLCpp/get-started/quick-start/img/modeler-step5.png?w=2500\u0026fit=max\u0026auto=format\u0026n=nrz9o5m15i2WLCpp\u0026q=85\u0026s=f1ac13cb2df76596d97dfef8c7b1010b 2500w`}),`\n`,_jsx(Heading,{level:`2`,id:`save-the-bpmn-diagram`,children:`Save the BPMN diagram`}),`\n`,_jsxs(_components.p,{children:[`When you’re done, save your changes by clicking `,_jsx(_components.strong,{children:`File > Save File As…`}),`. In the dialog, navigate to a folder of your choice and save the diagram as something like `,_jsx(_components.code,{children:`payment.bpmn`}),`.`]}),`\n`,_jsxs(Note,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Catch up: get the sources of Step-1`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` clone`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://github.com/aseeflow/aseeflow-get-started-quickstart.git`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Step-1`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Or `,_jsxs(_components.a,{href:`https://github.com/aseeflow/aseeflow-get-started-quickstart/archive/Step-1.zip`,children:[`download as a `,_jsx(_components.code,{children:`.zip`})]}),`.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`implement-an-external-task-worker`,children:`Implement an external task worker`}),`\n`,_jsx(_components.p,{children:`After modeling the process, we want to execute some business logic. ASEE Flow lets you implement your business logic in different languages — choose whichever suits your project best. In this quick start, we’ll show you how to use ready-to-go task clients in:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`#a-using-java`,children:`Java`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`#b-using-javascript-nodejs`,children:`JavaScript (Node.js)`})}),`\n`]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`ASEE Flow Run secures the engine REST API by default`}),` — the distribution bundles `,_jsx(_components.a,{href:`/webadmin`,children:`WebAdmin`}),`. The workers below connect to `,_jsx(_components.code,{children:`/engine-rest`}),` without credentials, so against a default Run distribution they receive `,_jsx(_components.code,{children:`401`}),`.`]}),_jsxs(_components.p,{children:[`WebAdmin’s REST security can’t be turned off, so give the worker an engine user’s credentials. In Run’s default `,_jsx(_components.code,{children:`form`}),` mode the REST API accepts HTTP Basic; for this local quick start, use the default configuration’s `,_jsx(_components.code,{children:`demo`}),` / `,_jsx(_components.code,{children:`demo`}),` user:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Java`}),` — add `,_jsx(_components.code,{children:`.addInterceptor(new BasicAuthProvider(\"demo\", \"demo\"))`}),` to the client builder (`,_jsx(_components.code,{children:`org.camunda.bpm.client.interceptor.auth.BasicAuthProvider`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`JavaScript`}),` — import `,_jsx(_components.code,{children:`BasicAuthInterceptor`}),` from `,_jsx(_components.code,{children:`camunda-external-task-client-js`}),` and add `,_jsx(_components.code,{children:`interceptors: new BasicAuthInterceptor({ username: \"demo\", password: \"demo\" })`}),` to the client’s `,_jsx(_components.code,{children:`config`}),`.`]}),`\n`]}),_jsxs(_components.p,{children:[`For a secured deployment, authenticate the worker to match your configured `,_jsx(_components.a,{href:`/webadmin/authentication`,children:`authentication mode`}),`, with a user of its own.`]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If you prefer a different programming language, you can also use the `,_jsx(_components.a,{href:`/user-guide/process-engine/external-tasks`,children:`REST API`}),` to access API operations over HTTP.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`a-using-java`,children:`a) Using Java`}),`\n`,_jsx(_components.p,{children:`In this section, you’ll implement an external task worker in Java.`}),`\n`,_jsx(Heading,{level:`3`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsx(_components.p,{children:`Make sure you have the following tools installed:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`JDK 17, 21, or 25 (see `,_jsx(_components.a,{href:`/introduction/supported-environments`,children:`supported environments`}),`)`]}),`\n`,_jsx(_components.li,{children:`An IDE for Java projects (for example IntelliJ IDEA, Eclipse, or VS Code)`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`create-a-new-maven-project`,children:`Create a new Maven project`}),`\n`,_jsxs(_components.p,{children:[`Start by creating a new Maven project in your IDE — a simple project (you can skip archetype selection).\nConfigure the Maven coordinates and, since we’re setting up a JAR project, set `,_jsx(_components.strong,{children:`Packaging`}),` to `,_jsx(_components.code,{children:`jar`}),`.\nYou can also create the project directly from the `,_jsx(_components.code,{children:`pom.xml`}),` shown below.`]}),`\n`,_jsx(Heading,{level:`3`,id:`add-the-external-task-client-dependency`,children:`Add the external task client dependency`}),`\n`,_jsxs(_components.p,{children:[`Set up the Maven dependency to the external task client. Your `,_jsx(_components.code,{children:`pom.xml`}),` should look like this:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`32`,language:`xml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`xml`,children:_jsxs(_components.code,{language:`xml`,numberOfLines:`32`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`project`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` xmlns`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http://maven.apache.org/POM/4.0.0\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` xmlns:xsi`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http://www.w3.org/2001/XMLSchema-instance\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`\txsi:schemaLocation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`modelVersion`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`4.0.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`modelVersion`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`org.aseeflow.bpm.getstarted`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`charge-card-worker`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`0.0.1-SNAPSHOT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`properties`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`aseeflow.external-task-client.version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`2.1.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`aseeflow.external-task-client.version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`maven.compiler.source`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`11`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`maven.compiler.source`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`maven.compiler.target`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`11`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`maven.compiler.target`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`properties`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependencies`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`org.aseeflow.bpm`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`aseeflow-external-task-client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:\"${aseeflow.external-task-client.version}\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`org.slf4j`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`slf4j-simple`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`1.7.36`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`jakarta.xml.bind`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`jakarta.xml.bind-api`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\t\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`4.0.2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\t\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\t\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependencies`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`project`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`add-the-java-class`,children:`Add the Java class`}),`\n`,_jsxs(_components.p,{children:[`Next, create an `,_jsx(_components.code,{children:`ExternalTaskClient`}),` that subscribes to the `,_jsx(_components.code,{children:`charge-card`}),` topic. When the process engine encounters a service task configured to be externally handled, it creates an external task instance that our handler reacts to. We use `,_jsx(_components.a,{href:`/user-guide/process-engine/external-tasks`,children:`long polling`}),` in the client to make communication more efficient.`]}),`\n`,_jsxs(_components.p,{children:[`Create a package, for example `,_jsx(_components.code,{children:`org.camunda.bpm.getstarted.chargecard`}),`, and add a Java class such as `,_jsx(_components.code,{children:`ChargeCardWorker`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`35`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`35`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`package`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` org.camunda.bpm.getstarted.chargecard;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` java.util.logging.Logger;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` java.awt.Desktop;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` java.net.URI;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` org.camunda.bpm.client.ExternalTaskClient;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ChargeCardWorker`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` final`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` static`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` Logger`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` LOGGER`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Logger`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getLogger`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ChargeCardWorker`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`class`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` static`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[] `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`args`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` ExternalTaskClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ExternalTaskClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`baseUrl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http://localhost:8080/engine-rest\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`asyncResponseTimeout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// long polling timeout`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`build`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // subscribe to an external task topic as specified in the process`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"charge-card\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`lockDuration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// the default lock duration is 20 seconds, but you can override this`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`handler`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((externalTask, externalTaskService) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Put your business logic here`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Get a process variable`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` item`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` externalTask`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getVariable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"item\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` Integer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` amount`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` externalTask`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getVariable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` LOGGER`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`info`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Charging credit card with an amount of '\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` amount `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"'€ for the item '\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` item `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"'...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Complete the task`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` externalTaskService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`complete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(externalTask);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`run-the-worker`,children:`Run the worker`}),`\n`,_jsxs(_components.p,{children:[`Run the Java application by right-clicking the `,_jsx(_components.code,{children:`ChargeCardWorker`}),` class and choosing `,_jsx(_components.strong,{children:`Run as Java`}),`. Keep the worker running throughout this quick start guide.`]}),`\n`,_jsx(Heading,{level:`3`,id:`next-step`,children:`Next step`}),`\n`,_jsxs(_components.p,{children:[`Once your worker is running, `,_jsx(_components.a,{href:`/get-started/quick-start/deploy`,children:`continue to deploy your process and start some instances`}),`.`]}),`\n`,_jsxs(Note,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Catch up: get the sources of Step-2a`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` clone`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://github.com/aseeflow/aseeflow-get-started-quickstart.git`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Step-2a`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Or `,_jsxs(_components.a,{href:`https://github.com/aseeflow/aseeflow-get-started-quickstart/archive/Step-2a.zip`,children:[`download as a `,_jsx(_components.code,{children:`.zip`})]}),`.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`b-using-javascript-node-js`,children:`b) Using JavaScript (Node.js)`}),`\n`,_jsx(_components.p,{children:`In this section, you’ll implement an external task worker in Node.js.`}),`\n`,_jsx(Heading,{level:`3`,id:`prerequisites-2`,children:`Prerequisites`}),`\n`,_jsx(_components.p,{children:`Make sure you have the following tools installed:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Node.js >= v16 (`,_jsx(_components.a,{href:`https://nodejs.org/en/download/`,children:`download here`}),`)`]}),`\n`,_jsx(_components.li,{children:`An editor for JavaScript files`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`create-a-new-node-js-project`,children:`Create a new Node.js project`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` charge-card-worker`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./charge-card-worker`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` init`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -y`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`enable-es-modules`,children:`Enable ES modules`}),`\n`,_jsxs(_components.p,{children:[`Add the following `,_jsx(_components.code,{children:`\"type\"`}),` field to your `,_jsx(_components.code,{children:`package.json`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"main\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"index.js\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"module\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"scripts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"test\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"echo `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Error: no test specified`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \u0026\u0026 exit 1\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`add-the-external-task-client-js-library`,children:`Add the external task client JS library`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` camunda-external-task-client-js`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -D`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` open`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`implement-the-node-js-script`,children:`Implement the Node.js script`}),`\n`,_jsxs(_components.p,{children:[`Create an `,_jsx(_components.code,{children:`ExternalTaskClient`}),` that subscribes to the `,_jsx(_components.code,{children:`charge-card`}),` topic. Create a JavaScript file such as `,_jsx(_components.code,{children:`worker.js`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`24`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`24`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`logger`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'camunda-external-task-client-js'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// configuration for the Client:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// - 'baseUrl': url to the Process Engine`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// - 'logger': utility to automatically log important events`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// - 'asyncResponseTimeout': long polling timeout (then a new request will be issued)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`baseUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'http://localhost:8080/engine-rest'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`use:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` logger`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`asyncResponseTimeout:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 10000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` };`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// create a Client instance with custom configuration`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// subscribe to the topic: 'charge-card'`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'charge-card'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`task`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`taskService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Put your business logic here`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Get a process variable`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` amount`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` task`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`variables`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'amount'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` item`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` task`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`variables`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'item'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Charging credit card with an amount of \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`amount`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`€ for the item '`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`item`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"'...`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Complete the task`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` taskService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`complete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`task`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`run-the-node-js-script`,children:`Run the Node.js script`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`node`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ./worker.js`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Keep the worker running throughout this quick start guide.`}),`\n`,_jsx(Heading,{level:`3`,id:`next-step-2`,children:`Next step`}),`\n`,_jsxs(_components.p,{children:[`Once your worker is running, `,_jsx(_components.a,{href:`/get-started/quick-start/deploy`,children:`continue to deploy your process and start some instances`}),`.`]}),`\n`,_jsxs(Note,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Catch up: get the sources of Step-2b`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` clone`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://github.com/aseeflow/aseeflow-get-started-quickstart.git`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Step-2b`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Or `,_jsxs(_components.a,{href:`https://github.com/aseeflow/aseeflow-get-started-quickstart/archive/Step-2b.zip`,children:[`download as a `,_jsx(_components.code,{children:`.zip`})]}),`.`]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Executing automated steps","sidebarTitle":"2. Executable Process","description":null,"href":"/get-started/quick-start/service-task"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create a new BPMN diagram","slug":"create-a-new-bpmn-diagram","depth":2,"children":[]},{"title":"Start with a simple process","slug":"start-with-a-simple-process","depth":2,"children":[]},{"title":"Configure the service task","slug":"configure-the-service-task","depth":2,"children":[]},{"title":"Configure properties for execution","slug":"configure-properties-for-execution","depth":2,"children":[]},{"title":"Save the BPMN diagram","slug":"save-the-bpmn-diagram","depth":2,"children":[]},{"title":"Implement an external task worker","slug":"implement-an-external-task-worker","depth":2,"children":[]},{"title":"a) Using Java","slug":"a-using-java","depth":2,"children":[{"title":"Prerequisites","slug":"prerequisites","depth":3,"children":[]},{"title":"Create a new Maven project","slug":"create-a-new-maven-project","depth":3,"children":[]},{"title":"Add the external task client dependency","slug":"add-the-external-task-client-dependency","depth":3,"children":[]},{"title":"Add the Java class","slug":"add-the-java-class","depth":3,"children":[]},{"title":"Run the worker","slug":"run-the-worker","depth":3,"children":[]},{"title":"Next step","slug":"next-step","depth":3,"children":[]}]},{"title":"b) Using JavaScript (Node.js)","slug":"b-using-javascript-node-js","depth":2,"children":[{"title":"Prerequisites","slug":"prerequisites-2","depth":3,"children":[]},{"title":"Create a new Node.js project","slug":"create-a-new-node-js-project","depth":3,"children":[]},{"title":"Enable ES modules","slug":"enable-es-modules","depth":3,"children":[]},{"title":"Add the external task client JS library","slug":"add-the-external-task-client-js-library","depth":3,"children":[]},{"title":"Implement the Node.js script","slug":"implement-the-node-js-script","depth":3,"children":[]},{"title":"Run the Node.js script","slug":"run-the-node-js-script","depth":3,"children":[]},{"title":"Next step","slug":"next-step-2","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/aseeflow/adc7e16456bb6574/reference/dmn/decision-table/img/map.js"],"subdomain":"aseeflow","siteName":"ASEE Flow","title":"Executing automated steps - ASEE Flow","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"2.x":{"href":"/get-started/quick-start/service-task","matchLevel":0},"1.x":{"href":"/1.x/get-started/quick-start/service-task","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-11-23T17:31:50.894Z","originalFileLocation":"get-started/quick-start/service-task.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"ASEE Flow\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/x-icon\" sizes=\"180x180\" href=\"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=ZCa-DtOfmgFUtZwy\u0026amp;q=85\u0026amp;s=f9caefb68514e68e8312efc299b039fa\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"32x32\" href=\"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=ZCa-DtOfmgFUtZwy\u0026amp;q=85\u0026amp;s=f9caefb68514e68e8312efc299b039fa\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"16x16\" href=\"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=ZCa-DtOfmgFUtZwy\u0026amp;q=85\u0026amp;s=f9caefb68514e68e8312efc299b039fa\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=ZCa-DtOfmgFUtZwy\u0026amp;q=85\u0026amp;s=f9caefb68514e68e8312efc299b039fa\">\u003cmeta data-mint-head property=\"og:title\" content=\"Executing automated steps - ASEE Flow\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ASEE Flow\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.aseeflow.org/get-started/quick-start/service-task\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aseeflow.mintlify.site/_mintlify/api/og/v2?division=Quick+Start\u0026amp;title=Executing+automated+steps\u0026amp;theme=eb766351d1c6850fee809491\u0026amp;signature=a61c6ed95e5867239592b986168812eb4b5c1ba6ed8bc1290c57c94e2e51469c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Executing automated steps - ASEE Flow\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aseeflow.mintlify.site/_mintlify/api/og/v2?division=Quick+Start\u0026amp;title=Executing+automated+steps\u0026amp;theme=eb766351d1c6850fee809491\u0026amp;signature=a61c6ed95e5867239592b986168812eb4b5c1ba6ed8bc1290c57c94e2e51469c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/aseeflow/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ASEE Flow\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1d1d1b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.aseeflow.org/get-started/quick-start/service-task\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/get-started/quick-start/service-task.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.aseeflow.org/#organization\",\"name\":\"ASEE Flow\",\"url\":\"https://docs.aseeflow.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/ASEEFlowAsset%202logo.svg?fit=max\u0026auto=format\u0026n=ZCa-DtOfmgFUtZwy\u0026q=85\u0026s=4f27f54801dcb0858ec1ef607934b046\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.aseeflow.org#website\",\"name\":\"ASEE Flow\",\"url\":\"https://docs.aseeflow.org\",\"publisher\":{\"@id\":\"https://docs.aseeflow.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.aseeflow.org/get-started/quick-start/service-task#webpage\",\"url\":\"https://docs.aseeflow.org/get-started/quick-start/service-task\",\"name\":\"Executing automated steps\",\"dateModified\":\"2026-11-23T17:31:50.894Z\",\"isPartOf\":{\"@id\":\"https://docs.aseeflow.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aseeflow.org/get-started/quick-start/service-task#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aseeflow.org/get-started/quick-start/service-task#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get Started\",\"item\":\"https://docs.aseeflow.org/get-started\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quick Start\",\"item\":\"https://docs.aseeflow.org/get-started/quick-start\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Executing automated steps\",\"item\":\"https://docs.aseeflow.org/get-started/quick-start/service-task\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.aseeflow.org/get-started/quick-start/service-task#article\",\"headline\":\"Executing automated steps\",\"name\":\"Executing automated steps\",\"url\":\"https://docs.aseeflow.org/get-started/quick-start/service-task\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aseeflow.org/get-started/quick-start/service-task#webpage\"},\"dateModified\":\"2026-11-23T17:31:50.894Z\",\"publisher\":{\"@id\":\"https://docs.aseeflow.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.aseeflow.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ASEE Flow\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ASEE Flow\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/get-started/quick-start/service-task.md","siteName":"ASEE Flow","nav":{"global":null,"versions":[{"version":"2.x","default":true,"tag":"Latest","tabs":[{"tab":"Get Started","groups":[{"group":"Get Started","root":{"title":"Get Started","sidebarTitle":"Overview","href":"/get-started"},"pages":[{"group":"Quick Start","pages":[{"title":"Get started with ASEE Flow","sidebarTitle":"Quick Start","href":"/get-started/quick-start"},{"title":"Download and Installation","sidebarTitle":"1. Download \u0026 Installation","description":null,"href":"/get-started/quick-start/install"},{"title":"Executing automated steps","sidebarTitle":"2. Executable Process","href":"/get-started/quick-start/service-task"},{"title":"Deploy the Process","sidebarTitle":"3. Deploy the Process","description":null,"href":"/get-started/quick-start/deploy"},{"title":"Add a User Task to the Process","sidebarTitle":"4. Involve Humans","href":"/get-started/quick-start/user-task"},{"title":"Add Gateways to the Process","sidebarTitle":"5. Make It Dynamic","href":"/get-started/quick-start/gateway"},{"title":"Leverage Business Rules","sidebarTitle":"6. Decision Automation","href":"/get-started/quick-start/decision-automation"}]},{"group":"DMN","root":{"title":"Get Started with DMN","sidebarTitle":"Overview","href":"/get-started/dmn"},"pages":[{"title":"Download and Installation","sidebarTitle":"1. Download and Installation","href":"/get-started/dmn/install"},{"title":"Set Up a Java Project for DMN","sidebarTitle":"2. Project Setup","href":"/get-started/dmn/project-setup"},{"title":"Create a DMN Decision Table","sidebarTitle":"3. Create a Decision Table","href":"/get-started/dmn/model"},{"title":"Evaluate, Deploy, and Test the Decision Table","sidebarTitle":"4. Evaluate and Deploy","href":"/get-started/dmn/deploy"},{"title":"Model, Evaluate, and Deploy a Decision Requirements Graph","sidebarTitle":"5. Decision Requirements Graph","href":"/get-started/dmn/drg"}]},{"group":"Spring Boot","root":{"title":"Get Started with Spring Boot","sidebarTitle":"Overview","href":"/get-started/spring-boot"},"pages":[{"title":"Set Up a Spring Boot Project","sidebarTitle":"1. Project Setup","href":"/get-started/spring-boot/project-setup"},{"title":"Configure a Spring Boot Project","sidebarTitle":"2. Configuration","href":"/get-started/spring-boot/configuration"},{"title":"Model a BPMN 2.0 Process","sidebarTitle":"3. Model a Process","href":"/get-started/spring-boot/model"}]},{"title":"Apache Maven Coordinates","sidebarTitle":"Apache Maven Coordinates","href":"/get-started/apache-maven"}]}]},{"tab":"Introduction","pages":[{"title":"Introduction","href":"/introduction"}]},{"tab":"User Guide","pages":[{"title":"User Guide","href":"/user-guide"}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/reference"}]},{"tab":"Installation","pages":[{"title":"Installation","href":"/installation"}]},{"tab":"Modeler","pages":[{"title":"Modeler","href":"/modeler"}]},{"tab":"WebAdmin","pages":[{"title":"WebAdmin","href":"/webadmin"}]},{"tab":"Web Applications","pages":[{"title":"Web Applications","href":"/webapps"}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/examples"}]},{"tab":"Update \u0026 Migration","pages":[{"title":"Update \u0026 Migration","href":"/update"}]},{"tab":"Security","pages":[{"title":"Security","href":"/security"}]}]},{"version":"1.x","pages":[{"title":"1.x","href":"/1.x/get-started/quick-start/service-task"}]}]},"basePath":"","title":"Executing automated steps - ASEE Flow","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-DJOZ-2Ph.js","lightbox-handle-r17bVUz3.js"]}