The following explains the SpringTransactionIntegrationTest of the core codebase step by step. Below is the Spring configuration file that we use in this example (you can find it in SpringTransactionIntegrationTest-context.xml). The section shown below contains the dataSource, transactionManager, processEngine and the process engine services.When passing the DataSource to the SpringProcessEngineConfiguration (using property “dataSource”), the ASEE Flow engine uses a org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy internally, which wraps the passed DataSource. This is done to make sure the SQL connections retrieved from the DataSource and the Spring transactions play well together. This implies that it’s no longer needed to proxy the dataSource yourself in Spring configuration, although it’s still allowed to pass a TransactionAwareDataSourceProxy into the SpringProcessEngineConfiguration. In this case no additional wrapping will occur.Make sure when declaring a TransactionAwareDataSourceProxy in Spring configuration yourself, that you don’t use it for resources that are already aware of Spring-transactions (e.g., DataSourceTransactionManager and JPATransactionManager need the un-proxied dataSource).
The processEngineConfiguration attributes transactionManager and dataSource must be configured consistently,
i.e. the transactionManager bean must actually manage the data source. If that is not the case, the process engine will use auto-commit mode for the data source connection, potentially leading to inconsistencies in the database.
The remainder of that Spring configuration file contains the beans and configuration that we’ll use in this particular example:
First, the application context is created with any of the Spring ways to do that. In this example you could use a classpath XML resource to configure our Spring application context:
ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("mytest/SpringTransactionIntegrationTest-context.xml");
Then we can get the service beans and invoke methods on them. The ProcessEngineFactoryBean will have added an extra interceptor to the services that applies Propagation.REQUIRED transaction semantics on the engine service methods. So, for example, we can use the repositoryService to deploy a process like this:
The other way around also works. In this case, the Spring transaction will be around the userBean.hello() method and the engine service method invocation will join that same transaction.
The UserBean looks like this. Remember from above in the Spring bean configuration we injected the repositoryService into the userBean.
public class UserBean { // injected by Spring private RuntimeService runtimeService; @Transactional public void hello() { // here you can do transactional stuff in your domain model // and it will be combined in the same transaction as // the startProcessInstanceByKey to the RuntimeService runtimeService.startProcessInstanceByKey("helloProcess"); } public void setRuntimeService(RuntimeService runtimeService) { this.runtimeService = runtimeService; }}
Using Inner Spring Transactions
When engine API calls are executed in the Spring context, Spring doesn’t
make it transparent to the Process Engine when nested API calls need to
be executed in a separate transaction (the Propagation.REQUIRES_NEW
transaction behavior). This doesn’t play well with how the Process Engine
Context is used to separate transaction data described in detail in
Transactions and the Process Engine Context.
Due to this, if the inner transaction fails, the changes made by the engine
API calls are still committed to the ASEE Flow database.A solution for this is to explicitly declare to the Process Engine that
a new Process Engine Context is to be created, where all the following
Engine API calls will store their changes for the database. In case the
inner transaction fails, the changes in this new Process Engine Context
will be reverted.The Process Engine Context must be declared whenever a Spring
Propagation.REQUIRES_NEW inner transaction is defined in an already
running transaction.
Example
In the following code-snippet, we can see a Spring Propagation.REQUIRED
transaction, defined on the execute method, and a Spring Propagation.REQUIRES_NEW
transaction, defined on the InnerProcessServiceImpl#startInnerProcess method.
The InnerProcessServiceImpl#startInnerProcess method is called through
the execute method, resulting in an inner transaction.We can also assume
that, in the startProcessInstanceByKey engine API call, some custom code
continues to execute in the inner transaction, and throws an exception.
In a case like this one, since Spring doesn’t make the Process Engine aware that the startProcessInstanceByKey
engine API call is executed in a new, inner transaction, when the custom code
fails, the Spring inner transaction will be rolled back, but the data
from the started Process Instance data will be committed with the outer
transaction.The described problem can be solved through the static methods of the
org.camunda.bpm.engine.context.ProcessEngineContext class. First, we
call the ProcessEngineContext.requiresNew() method to declare that a
new Context is required. Finally, we call the ProcessEngineContext.clear()
method to clear the declaration for a new Process Engine Context. This
is important since a new Process Engine Context will be declared for each
following engine API call until the ProcessEngineContext#clear method
is called.Using a try-finally block is recommended to ensure that the ProcessEngineContext
static methods are called and cleared even in the presence of exceptions.
Below, you can find the solution applied to the startProcessInstanceByKey
engine API call of the example above:
try { // declare new Process Engine Context ProcessEngineContext.requiresNew(); // call engine APIs execution.getProcessEngineServices() .getRuntimeService() .startProcessInstanceByKey("EXAMPLE_PROCESS");} finally { // clear declaration for new Process Engine Context ProcessEngineContext.clear();}
{"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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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":"user-guide/spring-framework-integration/transactions","slug":"/user-guide/spring-framework-integration/transactions","pageMetadata":{"title":"Spring Transaction Integration","sidebarTitle":"Transactions","description":null,"href":"/user-guide/spring-framework-integration/transactions"},"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`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`transaction-integration-by-example`,children:`Transaction Integration by Example`}),`\n`,_jsxs(_components.p,{children:[`The following explains the `,_jsx(_components.a,{href:`https://github.com/camunda/camunda-bpm-platform/blob/7.24.0/engine-spring/core/src/test/java/org/camunda/bpm/engine/spring/test/transaction/SpringTransactionIntegrationTest.java`,children:`SpringTransactionIntegrationTest`}),` of the core codebase step by step. Below is the Spring configuration file that we use in this example (you can find it in `,_jsx(_components.a,{href:`https://github.com/camunda/camunda-bpm-platform/blob/7.24.0/engine-spring/core/src/test/resources/org/camunda/bpm/engine/spring/test/transaction/SpringTransactionIntegrationTest-context.xml`,children:`SpringTransactionIntegrationTest-context.xml`}),`). The section shown below contains the `,_jsx(_components.code,{children:`dataSource`}),`, `,_jsx(_components.code,{children:`transactionManager`}),`, `,_jsx(_components.code,{children:`processEngine`}),` and the process engine services.`]}),`\n`,_jsxs(_components.p,{children:[`When passing the DataSource to the `,_jsx(_components.code,{children:`SpringProcessEngineConfiguration`}),` (using property “dataSource”), the ASEE Flow engine uses a `,_jsx(_components.code,{children:`org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy`}),` internally, which wraps the passed DataSource. This is done to make sure the SQL connections retrieved from the DataSource and the Spring transactions play well together. This implies that it’s no longer needed to proxy the dataSource yourself in Spring configuration, although it’s still allowed to pass a `,_jsx(_components.code,{children:`TransactionAwareDataSourceProxy`}),` into the `,_jsx(_components.code,{children:`SpringProcessEngineConfiguration`}),`. In this case no additional wrapping will occur.`]}),`\n`,_jsxs(_components.p,{children:[`Make sure when declaring a `,_jsx(_components.code,{children:`TransactionAwareDataSourceProxy`}),` in Spring configuration yourself, that you don’t use it for resources that are already aware of Spring-transactions (e.g., `,_jsx(_components.code,{children:`DataSourceTransactionManager`}),` and `,_jsx(_components.code,{children:`JPATransactionManager`}),` need the un-proxied dataSource).`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`36`,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:`36`,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:`beans`}),_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://www.springframework.org/schema/beans\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` xmlns:context`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http://www.springframework.org/schema/context\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` xmlns:tx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http://www.springframework.org/schema/tx\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_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:` xsi:schemaLocation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd\"`}),_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:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`bean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dataSource\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` class`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"org.springframework.jdbc.datasource.SimpleDriverDataSource\"`}),_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:`property`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"driverClass\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"org.h2.Driver\"`}),_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:`property`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"url\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"jdbc:h2:mem:camunda;DB_CLOSE_DELAY=1000\"`}),_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:`property`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"username\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sa\"`}),_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:`property`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"password\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_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:`bean`}),_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:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`bean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"transactionManager\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` class`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"org.springframework.jdbc.datasource.DataSourceTransactionManager\"`}),_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:`property`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dataSource\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` ref`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dataSource\"`}),_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:`bean`}),_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:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`bean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"processEngineConfiguration\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` class`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration\"`}),_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:`property`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dataSource\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` ref`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dataSource\"`}),_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:`property`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"transactionManager\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` ref`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"transactionManager\"`}),_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:`property`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"databaseSchemaUpdate\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"true\"`}),_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:`property`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"jobExecutorActivate\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"false\"`}),_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:`bean`}),_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:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`bean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"processEngine\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` class`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"org.camunda.bpm.engine.spring.ProcessEngineFactoryBean\"`}),_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:`property`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"processEngineConfiguration\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` ref`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"processEngineConfiguration\"`}),_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:`bean`}),_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:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`bean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"repositoryService\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` factory-bean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"processEngine\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` factory-method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"getRepositoryService\"`}),_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:`bean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"runtimeService\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` factory-bean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"processEngine\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` factory-method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"getRuntimeService\"`}),_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:`bean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"taskService\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` factory-bean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"processEngine\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` factory-method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"getTaskService\"`}),_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:`bean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"historyService\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` factory-bean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"processEngine\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` factory-method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"getHistoryService\"`}),_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:`bean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"managementService\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` factory-bean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"processEngine\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` factory-method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"getManagementService\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\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\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`beans`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`processEngineConfiguration`}),` attributes `,_jsx(_components.code,{children:`transactionManager`}),` and `,_jsx(_components.code,{children:`dataSource`}),` must be configured consistently,\ni.e. the `,_jsx(_components.code,{children:`transactionManager`}),` bean must actually manage the data source. If that is not the case, the process engine will use auto-commit mode for the data source connection, potentially leading to inconsistencies in the database.`]})}),`\n`,_jsx(_components.p,{children:`The remainder of that Spring configuration file contains the beans and configuration that we’ll use in this particular example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,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:`11`,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:`beans`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\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\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`tx:annotation-driven`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` transaction-manager`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"transactionManager\"`}),_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:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`bean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"userBean\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` class`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"org.camunda.bpm.engine.spring.test.UserBean\"`}),_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:`property`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"runtimeService\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` ref`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"runtimeService\"`}),_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:`bean`}),_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:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`bean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"printer\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` class`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"org.camunda.bpm.engine.spring.test.Printer\"`}),_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:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`beans`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`First, the application context is created with any of the Spring ways to do that. In this example you could use a classpath XML resource to configure our Spring application context:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`ClassPathXmlApplicationContext`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` applicationContext`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` ClassPathXmlApplicationContext`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mytest/SpringTransactionIntegrationTest-context.xml\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`or, since it is a test:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`ContextConfiguration`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"classpath:mytest/SpringTransactionIntegrationTest-context.xml\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Then we can get the service beans and invoke methods on them. The ProcessEngineFactoryBean will have added an extra interceptor to the services that applies `,_jsx(_components.code,{children:`Propagation.REQUIRED`}),` transaction semantics on the engine service methods. So, for example, we can use the repositoryService to deploy a process like this:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`RepositoryService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repositoryService`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (RepositoryService) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`applicationContext`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getBean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"repositoryService\"`}),_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:`String`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` deploymentId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` repositoryService`})]}),`\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:`createDeployment`}),_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:`addClasspathResource`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mytest/hello.bpmn20\"`}),_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:`addClasspathResource`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mytest/hello.png\"`}),_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:`deploy`}),_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:`getId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The other way around also works. In this case, the Spring transaction will be around the `,_jsx(_components.code,{children:`userBean.hello()`}),` method and the engine service method invocation will join that same transaction.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`UserBean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` userBean`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (UserBean) `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`applicationContext`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getBean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"userBean\"`}),_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\":`#9CDCFE`},children:`userBean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`hello`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`UserBean`}),` looks like this. Remember from above in the Spring bean configuration we injected the repositoryService into the userBean.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,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:`17`,children:[_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:` UserBean`}),_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:` // injected by Spring`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` RuntimeService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` runtimeService`}),_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\":`#D4D4D4`},children:` @`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`Transactional`})]}),`\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\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` hello`}),_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:` // here you can do transactional stuff in your domain model`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // and it will be combined in the same transaction as`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // the startProcessInstanceByKey to the RuntimeService`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` runtimeService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`startProcessInstanceByKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"helloProcess\"`}),_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`}),`\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\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setRuntimeService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`RuntimeService`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` runtimeService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`runtimeService`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` runtimeService;`})]}),`\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:`2`,id:`using-inner-spring-transactions`,children:`Using Inner Spring Transactions`}),`\n`,_jsxs(_components.p,{children:[`When engine API calls are executed in the Spring context, Spring doesn’t\nmake it transparent to the Process Engine when nested API calls need to\nbe executed in a separate transaction (the `,_jsx(_components.code,{children:`Propagation.REQUIRES_NEW`}),`\ntransaction behavior). This doesn’t play well with how the Process Engine\nContext is used to separate transaction data described in detail in\n`,_jsx(_components.a,{href:`/user-guide/process-engine/transactions-in-processes#transactions-and-the-process-engine-context`,children:`Transactions and the Process Engine Context`}),`.\nDue to this, if the inner transaction fails, the changes made by the engine\nAPI calls are still committed to the ASEE Flow database.`]}),`\n`,_jsx(_components.p,{children:`A solution for this is to explicitly declare to the Process Engine that\na new Process Engine Context is to be created, where all the following\nEngine API calls will store their changes for the database. In case the\ninner transaction fails, the changes in this new Process Engine Context\nwill be reverted.`}),`\n`,_jsxs(_components.p,{children:[`The Process Engine Context must be declared whenever a Spring\n`,_jsx(_components.code,{children:`Propagation.REQUIRES_NEW`}),` inner transaction is defined in an already\nrunning transaction.`]}),`\n`,_jsx(Heading,{level:`3`,id:`example`,children:`Example`}),`\n`,_jsxs(_components.p,{children:[`In the following code-snippet, we can see a Spring `,_jsx(_components.code,{children:`Propagation.REQUIRED`}),`\ntransaction, defined on the `,_jsx(_components.code,{children:`execute`}),` method, and a Spring `,_jsx(_components.code,{children:`Propagation.REQUIRES_NEW`}),`\ntransaction, defined on the `,_jsx(_components.code,{children:`InnerProcessServiceImpl#startInnerProcess`}),` method.\nThe `,_jsx(_components.code,{children:`InnerProcessServiceImpl#startInnerProcess`}),` method is called through\nthe `,_jsx(_components.code,{children:`execute`}),` method, resulting in an inner transaction.We can also assume\nthat, in the `,_jsx(_components.code,{children:`startProcessInstanceByKey`}),` engine API call, some custom code\ncontinues to execute in the inner transaction, and throws an exception.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,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:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`Transactional`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`value`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"transactionManager\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`propagation`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Propagation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`REQUIRED`}),_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:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` execute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`DelegateExecution`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` execution) throws Exception {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_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\":`#9CDCFE`},children:` innerProcessService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`startInnerProcess`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(execution);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Exception`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` ex`}),_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:` // noop`})}),`\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`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* InnerProcessService implementation */`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`@`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`Service`})]}),`\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:` InnerProcessServiceImpl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` implements`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` InnerProcessService`}),_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\":`#D4D4D4`},children:` @`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`Override`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` @`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`Transactional`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`value`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"transactionManager\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`propagation`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Propagation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`REQUIRES_NEW`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`rollbackFor`}),_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:`Throwable`}),_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:`})`})]}),`\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\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` startInnerProcess`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`DelegateExecution`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` execution`}),_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:` execution`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getProcessEngineServices`}),_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:`getRuntimeService`}),_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:`startProcessInstanceByKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EXAMPLE_PROCESS\"`}),_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:` // custom code continues`})}),`\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`,_jsxs(_components.p,{children:[`In a case like this one, since Spring doesn’t make the Process Engine aware that the `,_jsx(_components.code,{children:`startProcessInstanceByKey`}),`\nengine API call is executed in a new, inner transaction, when the custom code\nfails, the Spring inner transaction will be rolled back, but the data\nfrom the started Process Instance data will be committed with the outer\ntransaction.`]}),`\n`,_jsxs(_components.p,{children:[`The described problem can be solved through the static methods of the\n`,_jsx(_components.code,{children:`org.camunda.bpm.engine.context.ProcessEngineContext`}),` class. First, we\ncall the `,_jsx(_components.code,{children:`ProcessEngineContext.requiresNew()`}),` method to declare that a\nnew Context is required. Finally, we call the `,_jsx(_components.code,{children:`ProcessEngineContext.clear()`}),`\nmethod to clear the declaration for a new Process Engine Context. This\nis important since a new Process Engine Context will be declared for each\nfollowing engine API call until the `,_jsx(_components.code,{children:`ProcessEngineContext#clear`}),` method\nis called.`]}),`\n`,_jsxs(_components.p,{children:[`Using a `,_jsx(_components.code,{children:`try-finally`}),` block is recommended to ensure that the `,_jsx(_components.code,{children:`ProcessEngineContext`}),`\nstatic methods are called and cleared even in the presence of exceptions.\nBelow, you can find the solution applied to the `,_jsx(_components.code,{children:`startProcessInstanceByKey`}),`\nengine API call of the example above:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,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:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // declare new Process Engine Context`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ProcessEngineContext`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`requiresNew`}),_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:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // call engine APIs`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` execution`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getProcessEngineServices`}),_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:`getRuntimeService`}),_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:`startProcessInstanceByKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EXAMPLE_PROCESS\"`}),_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\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`finally`}),_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:` // clear declaration for new Process Engine Context`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ProcessEngineContext`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`clear`}),_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`]})})})]})}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":"Spring Transaction Integration","sidebarTitle":"Transactions","description":null,"href":"/user-guide/spring-framework-integration/transactions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Transaction Integration by Example","slug":"transaction-integration-by-example","depth":2,"children":[]},{"title":"Using Inner Spring Transactions","slug":"using-inner-spring-transactions","depth":2,"children":[{"title":"Example","slug":"example","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/aseeflow/adc7e16456bb6574/reference/dmn/decision-table/img/map.js"],"subdomain":"aseeflow","siteName":"ASEE Flow","title":"Spring Transaction Integration - ASEE Flow","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"2.x":{"href":"/user-guide/spring-framework-integration/transactions","matchLevel":0},"1.x":{"href":"/1.x/user-guide/spring-framework-integration/transactions","matchLevel":1}},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T17:36:09.282Z","originalFileLocation":"user-guide/spring-framework-integration/transactions.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=\"Spring Transaction Integration - 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/user-guide/spring-framework-integration/transactions\">\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=Spring+Framework+Integration\u0026amp;title=Spring+Transaction+Integration\u0026amp;theme=eb766351d1c6850fee809491\u0026amp;signature=c1562c20b846fe88f0c61ef31a411bb489ea96a95c85a0215c1d0546b33e04c4\">\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=\"Spring Transaction Integration - ASEE Flow\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aseeflow.mintlify.site/_mintlify/api/og/v2?division=Spring+Framework+Integration\u0026amp;title=Spring+Transaction+Integration\u0026amp;theme=eb766351d1c6850fee809491\u0026amp;signature=c1562c20b846fe88f0c61ef31a411bb489ea96a95c85a0215c1d0546b33e04c4\">\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/user-guide/spring-framework-integration/transactions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/user-guide/spring-framework-integration/transactions.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/user-guide/spring-framework-integration/transactions#webpage\",\"url\":\"https://docs.aseeflow.org/user-guide/spring-framework-integration/transactions\",\"name\":\"Spring Transaction Integration\",\"dateModified\":\"2026-11-04T17:36:09.282Z\",\"isPartOf\":{\"@id\":\"https://docs.aseeflow.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aseeflow.org/user-guide/spring-framework-integration/transactions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aseeflow.org/user-guide/spring-framework-integration/transactions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"User Guide\",\"item\":\"https://docs.aseeflow.org/user-guide\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spring Framework Integration\",\"item\":\"https://docs.aseeflow.org/user-guide/spring-framework-integration\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Spring Transaction Integration\",\"item\":\"https://docs.aseeflow.org/user-guide/spring-framework-integration/transactions\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.aseeflow.org/user-guide/spring-framework-integration/transactions#article\",\"headline\":\"Spring Transaction Integration\",\"name\":\"Spring Transaction Integration\",\"url\":\"https://docs.aseeflow.org/user-guide/spring-framework-integration/transactions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aseeflow.org/user-guide/spring-framework-integration/transactions#webpage\"},\"dateModified\":\"2026-11-04T17:36:09.282Z\",\"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":"/user-guide/spring-framework-integration/transactions.md","siteName":"ASEE Flow","nav":{"global":null,"versions":[{"version":"2.x","default":true,"tag":"Latest","tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":"/get-started"}]},{"tab":"Introduction","pages":[{"title":"Introduction","href":"/introduction"}]},{"tab":"User Guide","groups":[{"group":"User Guide","root":{"title":"User Guide","href":"/user-guide"},"pages":[{"group":"Process Engine","root":{"title":"Process Engine","href":"/user-guide/process-engine"},"pages":[{"title":"Process Engine Bootstrapping","href":"/user-guide/process-engine/process-engine-bootstrapping"},{"title":"Process Engine API","href":"/user-guide/process-engine/process-engine-api"},{"title":"Process Engine Concepts","href":"/user-guide/process-engine/process-engine-concepts"},{"title":"Process Variables","href":"/user-guide/process-engine/variables"},{"title":"Process Instance Modification","href":"/user-guide/process-engine/process-instance-modification"},{"title":"Process Instance Restart","href":"/user-guide/process-engine/process-instance-restart"},{"title":"Delegation Code","href":"/user-guide/process-engine/delegation-code"},{"group":"Expression Language","root":{"title":"Expression Language","href":"/user-guide/process-engine/expression-language"},"pages":[{"title":"Friendly Enough Expression Language","href":"/user-guide/process-engine/expression-language/friendly-enough-expression-language"},{"title":"Unified Expression Language","href":"/user-guide/process-engine/expression-language/unified-expression-language"}]},{"title":"Scripting","href":"/user-guide/process-engine/scripting"},{"title":"Templating","href":"/user-guide/process-engine/templating"},{"title":"Custom Code \u0026 Security","href":"/user-guide/process-engine/securing-custom-code"},{"title":"External Tasks","href":"/user-guide/process-engine/external-tasks"},{"title":"Connectors","href":"/user-guide/process-engine/connectors"},{"title":"Process Versioning","href":"/user-guide/process-engine/process-versioning"},{"title":"Process Instance Migration","href":"/user-guide/process-engine/process-instance-migration"},{"group":"Database","root":{"title":"Database","href":"/user-guide/process-engine/database"},"pages":[{"title":"Database Schema","href":"/user-guide/process-engine/database/database-schema"},{"title":"Database Configuration","href":"/user-guide/process-engine/database/database-configuration"},{"title":"Microsoft SQL Server and Azure SQL Database Configuration","href":"/user-guide/process-engine/database/mssql-configuration"},{"title":"MySQL Database Configuration","href":"/user-guide/process-engine/database/mysql-configuration"},{"title":"Performance","href":"/user-guide/process-engine/database/performance"}]},{"group":"History","root":{"title":"History","href":"/user-guide/process-engine/history"},"pages":[{"title":"History configuration","href":"/user-guide/process-engine/history/history-configuration"},{"title":"User operation log","href":"/user-guide/process-engine/history/user-operation-log"},{"title":"History cleanup","href":"/user-guide/process-engine/history/history-cleanup"},{"title":"Custom implementation","href":"/user-guide/process-engine/history/custom-implementation"}]},{"title":"Deployment Cache","href":"/user-guide/process-engine/deployment-cache"},{"title":"Password Hashing","href":"/user-guide/process-engine/password-hashing"},{"title":"Password Policy","href":"/user-guide/process-engine/password-policy"},{"title":"Transactions in Processes","href":"/user-guide/process-engine/transactions-in-processes"},{"title":"The Job Executor","href":"/user-guide/process-engine/the-job-executor"},{"title":"Multi-Tenancy","href":"/user-guide/process-engine/multi-tenancy"},{"title":"Id Generators","href":"/user-guide/process-engine/id-generator"},{"title":"Metrics","href":"/user-guide/process-engine/metrics"},{"title":"Incidents","href":"/user-guide/process-engine/incidents"},{"title":"Process Engine Plugins","href":"/user-guide/process-engine/process-engine-plugins"},{"title":"Identity Service","href":"/user-guide/process-engine/identity-service"},{"title":"Authorization Service","href":"/user-guide/process-engine/authorization-service"},{"title":"Deployments","href":"/user-guide/process-engine/deployments"},{"title":"Process Diagram Visualization","href":"/user-guide/process-engine/process-diagram-api"},{"title":"Time zones","href":"/user-guide/process-engine/time-zones"},{"group":"Decisions","root":{"title":"Decisions in the Process Engine","sidebarTitle":"Overview","href":"/user-guide/process-engine/decisions"},"pages":[{"title":"Configure the DMN engine","sidebarTitle":"Configuration","href":"/user-guide/process-engine/decisions/configuration"},{"title":"Decisions in the Process Engine Repository","sidebarTitle":"Repository","href":"/user-guide/process-engine/decisions/repository"},{"title":"Decision Service in the Process Engine","sidebarTitle":"Decision Service","href":"/user-guide/process-engine/decisions/decision-service"},{"title":"Invoke Decisions from Processes and Cases","sidebarTitle":"Decisions in BPMN \u0026 CMMN","href":"/user-guide/process-engine/decisions/bpmn-cmmn"},{"title":"History for DMN Decisions","sidebarTitle":"History","href":"/user-guide/process-engine/decisions/history"}]},{"title":"Batch","href":"/user-guide/process-engine/batch"},{"title":"Batch operations","href":"/user-guide/process-engine/batch-operations"},{"title":"Error Handling","href":"/user-guide/process-engine/error-handling"},{"title":"Diagnostics data","href":"/user-guide/process-engine/diagnostics-data"}]},{"group":"Process Applications","root":{"title":"Process Applications","sidebarTitle":"Overview","href":"/user-guide/process-applications"},"pages":[{"title":"The Process Application class","href":"/user-guide/process-applications/the-process-application-class"},{"title":"The processes.xml Deployment Descriptor","href":"/user-guide/process-applications/the-processes-xml-deployment-descriptor"},{"title":"Process Application Event Listeners","href":"/user-guide/process-applications/process-application-event-listeners"},{"title":"Process Application Resource Access","href":"/user-guide/process-applications/process-application-resources"}]},{"group":"Runtime Container Integration","root":{"title":"Runtime Container Integration","href":"/user-guide/runtime-container-integration"},"pages":[{"title":"ASEE Flow Services","href":"/user-guide/runtime-container-integration/bpm-platform-services"},{"title":"JNDI Bindings for ASEE Flow Services","href":"/user-guide/runtime-container-integration/jndi-bindings-for-bpmn-platform-services"},{"title":"Apache Tomcat Integration","sidebarTitle":"Apache Tomcat","href":"/user-guide/runtime-container-integration/tomcat"},{"title":"The ASEE Flow WildFly Subsystem","sidebarTitle":"WildFly","href":"/user-guide/runtime-container-integration/jboss"},{"title":"Job Execution with Managed Resources","href":"/user-guide/runtime-container-integration/job-execution-with-managed-resources"}]},{"title":"ASEE Flow Run","href":"/user-guide/aseeflow-bpm-run"},{"group":"Spring Framework Integration","root":{"title":"Spring Framework Integration","sidebarTitle":"Overview","href":"/user-guide/spring-framework-integration"},"pages":[{"title":"Process Engine Configuration","sidebarTitle":"Bootstrapping","description":null,"href":"/user-guide/spring-framework-integration/configuration"},{"title":"Spring Transaction Integration","sidebarTitle":"Transactions","href":"/user-guide/spring-framework-integration/transactions"},{"title":"Automatic Resource Deployment","sidebarTitle":"Deployment","description":null,"href":"/user-guide/spring-framework-integration/deployment"},{"title":"Spring Beans in Processes","sidebarTitle":"Spring Bean Resolving","href":"/user-guide/spring-framework-integration/expressions"},{"title":"Spring-Based Testing","sidebarTitle":"Testing","href":"/user-guide/spring-framework-integration/testing"}]},{"group":"Spring Boot Integration","root":{"title":"Spring Boot Integration","sidebarTitle":"Overview","href":"/user-guide/spring-boot-integration"},"pages":[{"title":"Spring Boot Version Compatibility","sidebarTitle":"Version Compatibility","href":"/user-guide/spring-boot-integration/version-compatibility"},{"title":"Process Engine Configuration","sidebarTitle":"Configuration","href":"/user-guide/spring-boot-integration/configuration"},{"title":"REST API","href":"/user-guide/spring-boot-integration/rest-api"},{"title":"Web applications","sidebarTitle":"Web Applications","href":"/user-guide/spring-boot-integration/webapps"},{"title":"Process applications","sidebarTitle":"Process Applications","href":"/user-guide/spring-boot-integration/process-applications"},{"title":"Spring Eventing Bridge","href":"/user-guide/spring-boot-integration/the-spring-event-bridge"},{"title":"Developing and Testing Spring Boot Applications","sidebarTitle":"Developing and Testing","href":"/user-guide/spring-boot-integration/develop-and-test"},{"title":"Spring Security OAuth2 Integration","href":"/user-guide/spring-boot-integration/spring-security"}]},{"group":"Quarkus Integration","root":{"title":"Quarkus Integration","sidebarTitle":"Overview","href":"/user-guide/quarkus-integration"},"pages":[{"title":"Quarkus Version Compatibility","sidebarTitle":"Version Compatibility","href":"/user-guide/quarkus-integration/version-compatibility"},{"title":"Engine CDI Integration","href":"/user-guide/quarkus-integration/cdi-integration"},{"title":"Quarkus Extension Configuration","sidebarTitle":"Configuration","href":"/user-guide/quarkus-integration/configuration"},{"title":"Resource Deployments","href":"/user-guide/quarkus-integration/deployments"}]},{"group":"CDI and Java EE Integration","root":{"title":"CDI and Java EE Integration","sidebarTitle":"Overview","href":"/user-guide/cdi-java-ee-integration"},"pages":[{"title":"JTA Transaction Integration","href":"/user-guide/cdi-java-ee-integration/jta-transaction-integration"},{"title":"Expression Resolving","href":"/user-guide/cdi-java-ee-integration/expression-resolving"},{"title":"Contextual Programming Model","href":"/user-guide/cdi-java-ee-integration/contextual-programming-model"},{"title":"Built-In Beans","href":"/user-guide/cdi-java-ee-integration/built-in-beans"},{"title":"CDI Event Bridge","href":"/user-guide/cdi-java-ee-integration/the-cdi-event-bridge"}]},{"group":"Testing","root":{"title":"Testing","sidebarTitle":"Overview","href":"/user-guide/testing"},"pages":[{"title":"Assert Examples","href":"/user-guide/testing/assert-examples"}]},{"group":"Model API","root":{"title":"Model API","href":"/user-guide/model-api"},"pages":[{"group":"BPMN Model API","root":{"title":"BPMN Model API","href":"/user-guide/model-api/bpmn-model-api"},"pages":[{"title":"Read a Model","href":"/user-guide/model-api/bpmn-model-api/read-a-model"},{"title":"Create a Model","href":"/user-guide/model-api/bpmn-model-api/create-a-model"},{"title":"Delegation Code","href":"/user-guide/model-api/bpmn-model-api/delegation-code"},{"title":"Fluent Builder API","href":"/user-guide/model-api/bpmn-model-api/fluent-builder-api"},{"title":"Repository Service","href":"/user-guide/model-api/bpmn-model-api/respository-service"},{"title":"Extension Elements","href":"/user-guide/model-api/bpmn-model-api/extension-elements"}]},{"group":"CMMN Model API","root":{"title":"CMMN Model API","href":"/user-guide/model-api/cmmn-model-api"},"pages":[{"title":"Read a Model","href":"/user-guide/model-api/cmmn-model-api/read-a-model"},{"title":"Create a Model","href":"/user-guide/model-api/cmmn-model-api/create-a-model"},{"title":"Delegation Code","href":"/user-guide/model-api/cmmn-model-api/delegation-code"},{"title":"Repository Service","href":"/user-guide/model-api/cmmn-model-api/repository-service"},{"title":"Extension Elements","href":"/user-guide/model-api/cmmn-model-api/extension-elements"},{"title":"Limitations","href":"/user-guide/model-api/cmmn-model-api/limitations"}]},{"group":"DMN Model API","root":{"title":"DMN Model API","href":"/user-guide/model-api/dmn-model-api"},"pages":[{"title":"Read a Model","href":"/user-guide/model-api/dmn-model-api/read-a-model"},{"title":"Create a Model","href":"/user-guide/model-api/dmn-model-api/create-a-model"},{"title":"Repository Service","href":"/user-guide/model-api/dmn-model-api/repository-service"},{"title":"Extension Attributes","href":"/user-guide/model-api/dmn-model-api/extension-attributes"}]}]},{"group":"Data Formats (XML, JSON, Other)","root":{"title":"Data Formats (XML, JSON, Other)","sidebarTitle":"Overview","href":"/user-guide/data-formats"},"pages":[{"title":"Configuring Spin Integration","href":"/user-guide/data-formats/configuring-spin-integration"},{"title":"Data Formats in Processes","href":"/user-guide/data-formats/data-formats-in-processes"},{"title":"XML","href":"/user-guide/data-formats/xml"},{"title":"JSON","href":"/user-guide/data-formats/json"}]},{"group":"User Task Forms","root":{"title":"User Task Forms","sidebarTitle":"Overview","href":"/user-guide/task-forms"},"pages":[{"title":"JSF Task Forms","href":"/user-guide/task-forms/jsf-task-forms"}]},{"title":"Logging","href":"/user-guide/logging"},{"group":"DMN Engine","root":{"title":"DMN Engine","sidebarTitle":"Overview","href":"/user-guide/dmn-engine"},"pages":[{"title":"Embedding the DMN Engine","sidebarTitle":"Embed","href":"/user-guide/dmn-engine/embed"},{"title":"Evaluating Decisions using the DMN Engine API","sidebarTitle":"Evaluate Decisions","href":"/user-guide/dmn-engine/evaluate-decisions"},{"title":"Expressions in the DMN Engine","sidebarTitle":"Expressions","href":"/user-guide/dmn-engine/expressions-and-scripts"},{"group":"FEEL Engine","root":{"title":"FEEL Engine","sidebarTitle":"Overview","href":"/user-guide/dmn-engine/feel"},"pages":[{"title":"FEEL Engine Type Handling","sidebarTitle":"Type Handling","href":"/user-guide/dmn-engine/feel/type-handling"},{"title":"FEEL Engine Custom Functions","sidebarTitle":"Custom Functions","href":"/user-guide/dmn-engine/feel/custom-functions"},{"title":"FEEL Engine Spin Integration","sidebarTitle":"Spin Integration","href":"/user-guide/dmn-engine/feel/spin-integration"},{"title":"FEEL Engine Legacy Behavior","sidebarTitle":"Legacy Behavior","href":"/user-guide/dmn-engine/feel/legacy-behavior"}]},{"title":"Data Types in the DMN Engine","sidebarTitle":"Data Types","href":"/user-guide/dmn-engine/data-types"},{"title":"Testing Decisions with the DMN Engine","sidebarTitle":"Testing","href":"/user-guide/dmn-engine/testing"}]},{"title":"Security Instructions","href":"/user-guide/security"},{"group":"External Task Client","root":{"title":"External Task Client","sidebarTitle":"Overview","href":"/user-guide/ext-client"},"pages":[{"title":"External Task Client Spring Boot Starter","sidebarTitle":"Spring Boot Starter","href":"/user-guide/ext-client/spring-boot-starter"},{"title":"Version Compatibility","href":"/user-guide/ext-client/compatibility-matrix"}]}]}]},{"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/user-guide/spring-framework-integration/transactions"}]}]},"basePath":"","title":"Spring Transaction Integration - ASEE Flow","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":[],"chunks":[]}