Creating spring cloud data flow Task in pcf using UI - spring-cloud-dataflow

I am using following spring doc and try to create Task using UI in PCF however UI is not available in my PCF, How to enable UI on PCF ?
- https://dataflow.spring.io/docs/batch-developer-guides/getting-started/task/

You may want to update the description with what version of SCDF is in use, and how you have provisioned SCDF on PCF.
That said, it could be that you have explicitly disabled the Task's feature-toggle, so please verify the feature-toggles either from the About tab on the Dashboard or from the SCDF's http://<SCDF_CF_ROUTE/about endpoint.
UI:
About Endpoint:
You can learn more about the feature-toggles from the reference guide.

Related

CORS Spring Cloud Data Flow

How to enable CORS in spring cloud dataflow to make it api accessible from external web app like angular?
Cross Origin Resource Sharing is not supported out of the box in SCDF.
But, Spring Cloud Data Flow server application is a Spring Boot app and can be customized and extended.
You could add global CORS configuration to SCDF custom application. For information on how to do this, you can refer to Spring Boot documentation.
You can also check the sample here on how to customize SCDF server application.

Is it possible to customize Spring Cloud Data Flow dashboard/ admin user interface?

Is there a recommended way to customize the user interface of Spring Cloud Data Flow?
I am trying to find a way to change the text of the dashboard, colors and logos.
I found the GitHub repo for the UI on https://cloud.spring.io/spring-cloud-dataflow-ui/
But I cannot understand how to integrate that with my backend because the APIs and docs are not provided. Neither style guides nor backend logic.
The Spring Cloud Data Flow UI is tightly coupled to the Spring Cloud Data Flow server (as one of the REST clients of the SCDF server) and hence it is not designed to be customizable or extensible. All the documentation we have for the SCDF UI is pertinent to the SCDF use cases only.

Spring Cloud Dataflow REST API: deploying Spring Batch-specific REST API and Console standalone?

I need a Spring Batch Admin-like application to embed in my own SB-powered Spring Boot application.
The Spring website says it's deprecated and been moved to the Spring Attic. They recommend making use of Spring Cloud Dataflow Console.
I investigated this, and it appears that there is a lot of additional functionality I don't need -- all I want to do is inspect and retry batch job executions.
Is there a means of getting only this functionality, short of carving out the Jobs controllers out of the REST API implementation, and building my own admin screens?
Yes, it is possible; however, you'd still have to use SCDF to gain access to the REST-APIs.
Once when you have SCDF running, you'd get access to the Task/Batch-job specific REST endpoints and that you can use in your custom dashboard tooling.

Spring Cloud data flow does not show Spring cloud task execution details

The Spring cloud dataflow documentation mentions
When executing tasks externally (i.e. command line) and you wish for Spring Cloud Data Flow to show the TaskExecutions in its UI, be sure that common datasource settings are shared among the both. By default Spring Cloud Task will use a local H2 instance and the execution will not be recorded to the database used by Spring Cloud Data Flow.
I am new to Spring cloud dataflow and spring cloud task. Can somebody help me how to setup a common datasource for both. For my development purpose I'm using the embedded H2 database. Can I use the embedded one to see task execution details in Spring Flo/Dashboard?
A common "datasource" must be shared between Spring Cloud Data Flow (SCDF) and your Spring Cloud Task (SCT) applications in order to track and monitor task executions. If the datasource is not shared, both SCDF and SCT applications by default use a individual H2 database. And because they are on different databases, the task-executions in SCDF won't have visibility to independent execution history of SCT microservice applications.
Make sure to supply common DB properties to both. In your case, you can supply the same H2 DB properties. It is as simple as Spring Boot DB property overrides.

Is it possible to use spring cloud dataflow ui for commercial use if yes then how it is possible?

and is there any way to deploy and modify existing code for stream-cloud-data flow UI alone?
Spring Cloud Data Flow is covered by the liberal Apache License, Version 2.0. Therefore, yes, you can use the Spring Cloud Data Flow Dashboard (UI) commercially.
For more information, please see:
https://www.apache.org/licenses/LICENSE-2.0
https://en.wikipedia.org/wiki/Apache_License

Resources