Skip to content

[bug]: failed to create approval task #5264

Description

@marijahorvat171

Describe the bug

Failed to create approval task in main branch in workflow.

Stack trace:
java.lang.IllegalStateException: Should not be here
at com.bytechef.atlas.coordinator.job.JobExecutor.execute(JobExecutor.java:73)
at com.bytechef.atlas.coordinator.task.completion.DefaultTaskCompletionHandler.handle(DefaultTaskCompletionHandler.java:135)
at com.bytechef.atlas.coordinator.task.completion.TaskCompletionHandlerChain.handle(TaskCompletionHandlerChain.java:36)
at com.bytechef.task.dispatcher.on.error.completition.OnErrorTaskCompletionHandler.handle(OnErrorTaskCompletionHandler.java:135)
at com.bytechef.atlas.coordinator.task.completion.TaskCompletionHandlerChain.handle(TaskCompletionHandlerChain.java:36)
at com.bytechef.atlas.coordinator.TaskCoordinator.onTaskExecutionCompleteEvent(TaskCoordinator.java:238)
at com.bytechef.atlas.coordinator.config.TaskCoordinatorMessageBrokerConfigurerConfiguration$TaskCoordinatorDelegate.lambda$onTaskExecutionCompleteEvent$1(TaskCoordinatorMessageBrokerConfigurerConfiguration.java:142)
at com.bytechef.message.event.tracing.MessageEventTracing.runWithTraceContext(MessageEventTracing.java:66)
at com.bytechef.atlas.coordinator.config.TaskCoordinatorMessageBrokerConfigurerConfiguration$TaskCoordinatorDelegate.lambda$onTaskExecutionCompleteEvent$0(TaskCoordinatorMessageBrokerConfigurerConfiguration.java:140)
at com.bytechef.tenant.TenantContext.runWithTenantId(TenantContext.java:89)
at com.bytechef.atlas.coordinator.config.TaskCoordinatorMessageBrokerConfigurerConfiguration$TaskCoordinatorDelegate.onTaskExecutionCompleteEvent(TaskCoordinatorMessageBrokerConfigurerConfiguration.java:138)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.bytechef.message.broker.memory.listener.MemoryListenerEndpointRegistrar$MethodInvoker.invoke(MemoryListenerEndpointRegistrar.java:103)
at com.bytechef.message.broker.memory.listener.MemoryListenerEndpointRegistrar.lambda$registerListenerEndpoint$0(MemoryListenerEndpointRegistrar.java:50)
at com.bytechef.message.broker.memory.AsyncMessageBroker.lambda$send$0(AsyncMessageBroker.java:110)
at java.base/java.util.concurrent.ThreadPerTaskExecutor$TaskRunner.run(ThreadPerTaskExecutor.java:291)
at java.base/java.lang.VirtualThread.run(VirtualThread.java:456)

Steps To Reproduce

  1. Import following workflow in Bytechef and following object in Liferay.
  2. Deploy workflow and copy webhook URL and set it in object actions in Liferay.
  3. In Liferay in Control Panel -> Users you will find Application Forms and fill that form to start a workflow.
  4. Do the approval task to complete the workflow.
  5. Fill the form once again using the same account number (this way the workflow will enter the main branch.)
  6. Under Executions you should see the failure of creation Account Manager Review approval task.

Onboarding Demo (2).json
Object_Folder_OnboardingDemo_56369_20260618162028665.json

Expected behavior

I expected that Account Manager approval task will be created and that I will have a checkbox with title Approve this account. After checking it, the workflow should continue successfully.

Version

1

OS

Ubuntu

Browser

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

backendConcerning any and all backend issuesbugSomething isn't working

Type

Fields

No fields configured for Bug.

Projects

Status
✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions