REST call to find executions waiting to be triggered

I have a Service Task that is triggerable. But I am seeing this error when trying to trigger that execution: org.flowable.common.engine.api.FlowableException: UserTask should not be signalled before complete

I think the ServiceTask has completed execution but how can I tell when the flowable engine is waiting for it to be triggered? I have the executionId.

Hi jmb,

org.flowable.common.engine.api.FlowableException: UserTask should not be signalled before complete

Are you triggering user task or service task? The log says that UserTask is triggered.

Regards
Martin

The executionId I’m using is for a Java Service Task. If I trigger it manually I don’t get this error. It seems that my code is trying to trigger the service before flowable is ready - don’t know why the error says UserTask.

Could you prepare simple jUnit test for your case?

Martin