Netflix/conductor

Conductor Java SDK cannot create a HTTP task with asyncComplete = true

tianxie opened this issue · 0 comments

Describe the bug
I didn't see a asyncComplete field defined in com.netflix.conductor.sdk.workflow.def.tasks.Http class, so I cannot create an asyncComplete enabled HTTP task.

I think com.netflix.conductor.sdk.workflow.def.tasks.Event may have the same issue.

Details
Conductor version: 3.15.0
Conductor Java SDK version: 3.15.0

Additional context
Currently, I can only define a AsyncHttp class like this to bypass this issue:

import com.netflix.conductor.common.metadata.workflow.WorkflowTask;
import com.netflix.conductor.sdk.workflow.def.tasks.Http;

public class AsyncHttp extends Http {

    public AsyncHttp(String taskReferenceName) {
        super(taskReferenceName);
    }

    protected void updateWorkflowTask(WorkflowTask workflowTask) {
//        workflowTask.getInputParameters().put("http_request", super.getHttpRequest());
        workflowTask.setAsyncComplete(true);
    }
}