Class SecureAPIGetTestTask
- java.lang.Object
-
- com.redhat.parodos.workflow.task.BaseWorkFlowTask
-
- com.redhat.parodos.workflow.task.infrastructure.BaseInfrastructureWorkFlowTask
-
- com.redhat.parodos.examples.simple.task.SecureAPIGetTestTask
-
- All Implemented Interfaces:
WorkFlowTask,Work,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
@Component public class SecureAPIGetTestTask extends BaseInfrastructureWorkFlowTask
An example of a task that calls a Rest Endpoint with a BasicAuth Header- Author:
- Luke Shannon (Github: lshannon), Annel Ketcha (Github: anludke)
-
-
Constructor Summary
Constructors Constructor Description SecureAPIGetTestTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkReportexecute(WorkContext workContext)Executed by the InfrastructureTask engine as part of the WorkflowList<WorkFlowTaskOutput>getWorkFlowTaskOutputs()List<WorkFlowTaskParameter>getWorkFlowTaskParameters()-
Methods inherited from class com.redhat.parodos.workflow.task.infrastructure.BaseInfrastructureWorkFlowTask
getType
-
Methods inherited from class com.redhat.parodos.workflow.task.BaseWorkFlowTask
getName, getOptionalParameterValue, getRequiredParameterValue, getWorkFlowCheckers, setBeanName, setWorkFlowCheckers
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.redhat.parodos.workflow.task.WorkFlowTask
getAsJsonSchema
-
-
-
-
Field Detail
-
SECURED_URL
public static final String SECURED_URL
- See Also:
- Constant Field Values
-
USERNAME
public static final String USERNAME
- See Also:
- Constant Field Values
-
PASSWORD
public static final String PASSWORD
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public WorkReport execute(WorkContext workContext)
Executed by the InfrastructureTask engine as part of the Workflow
-
getWorkFlowTaskParameters
public List<WorkFlowTaskParameter> getWorkFlowTaskParameters()
-
getWorkFlowTaskOutputs
public List<WorkFlowTaskOutput> getWorkFlowTaskOutputs()
-
-