# Flowable dynamic value in http task not working 6.8.0

**URL:** <https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248>\
**Category:** Uncategorized\
**Created:** [February 20, 2023, 9:41pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248 "2023-02-20T21:41:12Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venkata](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@Venkata](https://forum.flowable.org/u/Venkata)\
**Post date:** [February 20, 2023, 9:41pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/1 "2023-02-20T21:41:12Z")

</div>

When Iam using flowable version 6.7.2 it is working perfectly fine with below scenario  
my delegate class Iam setting a service url like below execution.setVaraible(“url”, [http://localhost/restApi](http://localhost/restApi)) and in my http task in flowable ui Iam using request url as  
\<flowable:field name=“requestUrl”\>

```
      <flowable:expression><![CDATA[${url}]]></flowable:expression>

    </flowable:field>

```

But when I upgraded the version to 6.8.0 Iam getting null value in my http task

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [February 24, 2023, 1:54pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/2 "2023-02-24T13:54:08Z")

</div>

Hey @Venkata,

Can you please provide a minimal reproducible example showing this problem? I do not see a reason why this wouldn’t work.

Cheers,  
Filip

---

<div class="post-metadata">

**Author:** ![Venkata](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@Venkata](https://forum.flowable.org/u/Venkata)\
**Post date:** [February 24, 2023, 2:38pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/3 "2023-02-24T14:38:22Z")

</div>

Thanks @filiphr for your response.

In my delegate class, iam using execution.setVaraible(“url”, [http://localhost/restApi](http://localhost/restApi));  
in my flowable using below in process work flow.

```xml
  <serviceTask id="assignuser" name="assignuser" flowable:parallelInSameTransaction="true" flowable:type="http">
      <extensionElements>
        <flowable:field name="requestMethod">
          <flowable:string><![CDATA[GET]]></flowable:string>
        </flowable:field>
        <flowable:field name="requestUrl">
          <flowable:expression><![CDATA[${url}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="requestHeaders">
          <flowable:string><![CDATA[content-type: application/json]]></flowable:string>
        </flowable:field>
      </extensionElements>
    </serviceTask>

```

This is working with version 6.7.2 but not with 6.8.0. Getting NPE when iam using the ${url}.

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [February 24, 2023, 5:05pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/4 "2023-02-24T17:05:16Z")

</div>

Can you please share your entire stacktrace that you are getting? The XML snippet you shared looks fine.

Cheers,  
Filip

---

<div class="post-metadata">

**Author:** ![Venkata](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@Venkata](https://forum.flowable.org/u/Venkata)\
**Post date:** [February 24, 2023, 5:48pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/5 "2023-02-24T17:48:20Z")

</div>

Here is the error details @filiphr

Error while closing command context.

java.lang.NullPointerException: null  
at java.util.concurrent.CompletableFuture.screenExecutor(Unknown Source) ~[na:1.8.0\_321]  
at java.util.concurrent.CompletableFuture.supplyAsync(Unknown Source) ~[na:1.8.0\_321]  
at org.flowable.common.engine.impl.async.DefaultAsyncTaskExecutor.submit(DefaultAsyncTaskExecutor.java:89) ~[flowable-engine-common-6.8.0.jar!/:6.8.0]  
at org.flowable.common.engine.impl.async.DefaultAsyncTaskInvoker.submit(DefaultAsyncTaskInvoker.java:40) ~[flowable-engine-common-6.8.0.jar!/:6.8.0]  
at org.flowable.http.common.impl.BaseHttpActivityDelegate.prepareAndExecuteRequest(BaseHttpActivityDelegate.java:223) ~[flowable-http-common-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.bpmn.http.DefaultBpmnHttpActivityDelegate.execute(DefaultBpmnHttpActivityDelegate.java:111) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.delegate.invocation.FutureJavaDelegateInvocation.invoke(FutureJavaDelegateInvocation.java:38) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.delegate.invocation.DelegateInvocation.proceed(DelegateInvocation.java:32) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.delegate.invocation.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:26) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.bpmn.behavior.ServiceTaskFutureJavaDelegateActivityBehavior.execute(ServiceTaskFutureJavaDelegateActivityBehavior.java:120) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.bpmn.helper.ClassDelegate.execute(ClassDelegate.java:194) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.agenda.ContinueProcessOperation.executeActivityBehavior(ContinueProcessOperation.java:298) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.agenda.ContinueProcessOperation.executeSynchronous(ContinueProcessOperation.java:175) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.agenda.ContinueProcessOperation.continueThroughFlowNode(ContinueProcessOperation.java:125) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.agenda.ContinueProcessOperation.run(ContinueProcessOperation.java:88) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.common.engine.impl.AbstractEngineConfiguration.lambda$new$0(AbstractEngineConfiguration.java:195) ~[flowable-engine-common-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:130) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:114) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:72) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:26) ~[flowable-engine-6.8.0.jar!/:6.8.0]  
at org.flowable.common.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53) ~[flowable-engine-common-6.8.0.jar!/:6.8.0]  
at org.flowable.common.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:105) ~[flowable-engine-common-6.8.0.jar!/:6.8.0]  
at org.flowable.common.spring.SpringTransactionInterceptor.lambda$execute$0(SpringTransactionInterceptor.java:57) [flowable-spring-common-6.8.0.jar!/:6.8.0]  
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) ~[spring-tx-5.3.24.jar!/:5.3.24]  
at org.flowable.common.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:57) [flowable-spring-common-6.8.0.jar!/:6.8.0]

---

<div class="post-metadata">

**Author:** ![Venkata](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@Venkata](https://forum.flowable.org/u/Venkata)\
**Post date:** [March 9, 2023, 4:31pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/6 "2023-03-09T16:31:19Z")

</div>

@filiphr Did you get a chance check on this?

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [March 10, 2023, 6:21am UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/7 "2023-03-10T06:21:36Z")

</div>

The null pointer seems to be coming due to the executor service being null. How are you creating the engine? Can you please share a minimal reproducible project?

---

<div class="post-metadata">

**Author:** ![balajisundarajan8](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@balajisundarajan8](https://forum.flowable.org/u/balajisundarajan8)\
**Post date:** [March 4, 2024, 6:32pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/8 "2024-03-04T18:32:37Z")

</div>

@Venkata / @filiphr Any update on this issue. When we try to upgrade from 6.7.0 to 6.8.0 same issue appears.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/6/6cee3a74ef6ec0b3847faffb48f76111e415aa6c.png)

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [March 4, 2024, 6:46pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/9 "2024-03-04T18:46:38Z")

</div>

@balajisundarajan8 there are some open questions from me see [Flowable dynamic value in http task not working 6.8.0 - #7 by filiphr](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/7).

If you provide those details I might be able to help more

---

<div class="post-metadata">

**Author:** ![balajisundarajan8](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@balajisundarajan8](https://forum.flowable.org/u/balajisundarajan8)\
**Post date:** [March 4, 2024, 6:53pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/10 "2024-03-04T18:53:16Z")

</div>

Can you please check below code snippet @filiphr . will this help …

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/5/5ed9fdf5333945dfc86f7b3a251a7eb09e2f5803.png)

---

<div class="post-metadata">

**Author:** ![balajisundarajan8](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@balajisundarajan8](https://forum.flowable.org/u/balajisundarajan8)\
**Post date:** [March 4, 2024, 8:16pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/11 "2024-03-04T20:16:45Z")

</div>

Hi @filiphr when i change parallelInSameTransaction to false http task is invoking. Any suggestion ?

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/2/220c2b91580671399c7450829c472c22824e38df.png)

---

<div class="post-metadata">

**Author:** ![balajisundarajan8](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@balajisundarajan8](https://forum.flowable.org/u/balajisundarajan8)\
**Post date:** [March 4, 2024, 8:40pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/12 "2024-03-04T20:40:50Z")

</div>

Hi @filiphr can you share any sample for this scenario **Add dedicated task executor for the task invoker. This is fixing an issue with a potential deadlock when using the “true parallel” HTTP task feature**

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [March 5, 2024, 7:21am UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/13 "2024-03-05T07:21:24Z")

</div>

> [@balajisundarajan8](#):
>
> can you share any sample for this scenario **Add dedicated task executor for the task invoker. This is fixing an issue with a potential deadlock when using the “true parallel” HTTP task feature**

The stacktrace you shared is not related to this deadlock.

The code you shared isn’t helping much. Are you using our Spring Boot Starters or you are creating your own `ProcessEngineConfiguration` bean?

---

<div class="post-metadata">

**Author:** ![balajisundarajan8](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@balajisundarajan8](https://forum.flowable.org/u/balajisundarajan8)\
**Post date:** [March 5, 2024, 7:44am UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/14 "2024-03-05T07:44:40Z")

</div>

@filiphr we are using Default ProcessEngineConfiguration  
\<serviceTask id=“sendmailrecipient” name=“assignment” **flowable:parallelInSameTransaction=“true”** flowable:type=“http”\>. when we change this highlighted flag to false it is working in 6.8.0, if it is true then fails.

Do we need to provide any custom logic ?

Same issue mentioned here [HTTP task execute parallel in same transaction not working in 6.8.0](https://forum.flowable.org/t/http-task-execute-parallel-in-same-transaction-not-working-in-6-8-0/10397)

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [March 5, 2024, 8:14am UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/15 "2024-03-05T08:14:10Z")

</div>

> [@balajisundarajan8](#):
>
> we are using Default ProcessEngineConfiguration

What does this mean? Are you using our Spring Boot starters or not? How does your maven / gradle config look like?

> [@balajisundarajan8](#):
>
> flowable:parallelInSameTransaction=“true”

That change is only hiding the original problem, the fact that your engine configuration looks like isn’t properly configured, or you are starting a process before the entire engine has been fully booted up.

---

<div class="post-metadata">

**Author:** ![CElbersen](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@CElbersen](https://forum.flowable.org/u/CElbersen)\
**Post date:** [March 5, 2024, 8:18am UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/16 "2024-03-05T08:18:01Z")

</div>

I’m not affiliated with [balajisundarajan8](https://forum.flowable.org/u/balajisundarajan8) so not answering the question for him.

I have the same issue (6.8.0) and created a reproducable scenario with the flowable docker image for 6.8 on dockerhub. See this topic: [HTTP task execute parallel in same transaction not working in 6.8.0 - #4 by CElbersen](https://forum.flowable.org/t/http-task-execute-parallel-in-same-transaction-not-working-in-6-8-0/10397/4)  
If I’m not mistaken that image uses spring boot.

I’ve also tested this with an image running longer than 1 hour.

I did not yet try it with 6.8.1.

---

<div class="post-metadata">

**Author:** ![balajisundarajan8](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@balajisundarajan8](https://forum.flowable.org/u/balajisundarajan8)\
**Post date:** [March 5, 2024, 9:52am UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/17 "2024-03-05T09:52:44Z")

</div>

@filiphr yes we are using Spring Boot and flowable app deployed to PCF instance. Starting the process, after flowable app up & running in CF.

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [June 11, 2024, 3:03pm UTC](https://forum.flowable.org/t/flowable-dynamic-value-in-http-task-not-working-6-8-0/10248/18 "2024-06-11T15:03:50Z")

</div>

Hey @CElbersen and @balajisundarajan8,

I’m happy to say that we found the root cause for this issue and this has been fixed with [Make sure DefaultAsyncTaskExecutor is started · flowable/flowable-engine@03d8680 · GitHub](https://github.com/flowable/flowable-engine/commit/03d8680cab866a55fb144d9d2d2b4b0f08c2a21e).

Cheers,  
Filip
