Class GetAnalysisTask
java.lang.Object
com.redhat.parodos.workflow.task.BaseWorkFlowTask
com.redhat.parodos.workflow.task.infrastructure.BaseInfrastructureWorkFlowTask
com.redhat.parodos.tasks.migrationtoolkit.GetAnalysisTask
- All Implemented Interfaces:
WorkFlowTask,com.redhat.parodos.workflows.work.Work,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
GetAnalysisTask gets analysis task from the MTA. This task returns the
taskgroup details, including state of the analysis task and the url of the report if
the task is in state succeeded.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.redhat.parodos.tasks.migrationtoolkit.MTATaskGroupClient -
Constructor Summary
ConstructorsConstructorDescriptionGetAnalysisTask(URI serverURL, String bearerToken, Consumer<Message> messageConsumer) -
Method Summary
Modifier and TypeMethodDescriptioncom.redhat.parodos.workflows.work.WorkReportexecute(com.redhat.parodos.workflows.work.WorkContext workContext) @NonNull List<WorkParameter>Methods inherited from class com.redhat.parodos.workflow.task.infrastructure.BaseInfrastructureWorkFlowTask
getTypeMethods inherited from class com.redhat.parodos.workflow.task.BaseWorkFlowTask
addParameter, getAllParameters, getMainExecutionId, getName, getOptionalParameterValue, getProjectId, getRequiredParameterValue, getWorkFlowCheckers, setBeanName, setWorkFlowCheckersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.redhat.parodos.workflow.task.WorkFlowTask
getAsJsonSchema, getWorkFlowTaskOutputs
-
Field Details
-
mtaClient
protected com.redhat.parodos.tasks.migrationtoolkit.MTATaskGroupClient mtaClient
-
-
Constructor Details
-
GetAnalysisTask
-
-
Method Details
-
getWorkFlowTaskParameters
-
execute
public com.redhat.parodos.workflows.work.WorkReport execute(com.redhat.parodos.workflows.work.WorkContext workContext) - Parameters:
workContext- optional context values: serverURL, and bearerToken for the mtaClient.
-