HttpTask extends WorkflowSystemTask { @Override public boolean execute(Workflow workflow, Task task, WorkflowExecutor executor) { return false; } @Inject  HttpTask(RestClientManager restClientManager,
					Configuration config,
					ObjectMapper objectMapper);  HttpTask(String name,
					RestClientManager restClientManager,
					Configuration config,
					ObjectMapper objectMapper); @Override void start(Workflow workflow, Task task, WorkflowExecutor executor); @Override boolean execute(Workflow workflow, Task task, WorkflowExecutor executor); @Override void cancel(Workflow workflow, Task task, WorkflowExecutor executor); @Override boolean isAsync(); @Override int getRetryTimeInSecond(); static final String REQUEST_PARAMETER_NAME; static final String NAME; }
@Test public void testExecute() { Task task = new Task(); Input input = new Input(); input.setUri("http: input.setMethod("GET"); task.getInputData().put(HttpTask.REQUEST_PARAMETER_NAME, input); task.setStatus(Status.SCHEDULED); task.setScheduledTime(0); boolean executed = httpTask.execute(workflow, task, workflowExecutor); assertFalse(executed); }